[Solved] LVM install: want to move /home and /var to its own volume

Forum rules
Before you post please read this
User avatar
caffewmilk
Level 1
Level 1
Posts: 8
Joined: Wed May 25, 2016 12:14 pm

[Solved] LVM install: want to move /home and /var to its own volume

Postby caffewmilk » Wed May 31, 2017 1:03 pm

Hi.

I used the LVM option during the installation of Mint. At the time it was not very clear how to add all 4 drives to the same PV(Physical Volume). Let alone how to create different VGs.

So the installation only ended up using one hard drive: /dev/sda. Later on I found online the commands to add the other 3 hard drives to the PV. Now they're all available through LVM.

I want to create 2 more partitions and move/use them for /var and /home.

Is moving /home to its own partition possible after the install? Or should I just do a fresh install and try to get LVM setup correctly with the partitions I need?

If this is all too much to be done with Mint, I'm considering using Ubuntu Server.

Thank you.
Last edited by caffewmilk on Thu Jun 01, 2017 4:07 pm, edited 1 time in total.
Linux Mint 18.1 MATE 64Bit
Dell PowerEdge T110, 4 HDDs: 150GB, 160GB, 250GB, 750GB
RAM: 2GB, nVidia 256MB video card
Intel Xeon Quad Core 2.6Ghz CPU

deepakdeshp
Level 8
Level 8
Posts: 2373
Joined: Sun Aug 09, 2015 10:00 am

Re: LVM install: want to move /home and /var to its own volume

Postby deepakdeshp » Wed May 31, 2017 2:50 pm

Please see https://www.digitalocean.com/community/ ... operations
Ubuntu server isn't a desktop and it has only command mode to be used in try. There is no Libre office ,browser or any gui based tool. So decide if you need a desktop or a server.

This should be available for Mint too

https://launchpad.net/ubuntu/xenial/+pa ... config-lvm
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 18 Cinnamon 64 bit with AMD processor .

User avatar
caffewmilk
Level 1
Level 1
Posts: 8
Joined: Wed May 25, 2016 12:14 pm

Re: LVM install: want to move /home and /var to its own volume

Postby caffewmilk » Wed May 31, 2017 9:51 pm

I downloaded the ubuntu server iso and created a VM with 4 hard drives to sort of mimic what I have on my server.

During the install I figured out what I did wrong for the LVM setup and I'm going to reinstall Mint on my server.

Basically, I forgot to create the MD device before doing al of the LVM stuff. Once I had the MD device created, everything else fell into place.

Thanks though.

P.S. I'm very familiar with the difference between the 2. I was just looking for a way to easily create the LVM system during install. Last time I had used Ubuntu Server, it was very easy to do an LVM install.
Linux Mint 18.1 MATE 64Bit
Dell PowerEdge T110, 4 HDDs: 150GB, 160GB, 250GB, 750GB
RAM: 2GB, nVidia 256MB video card
Intel Xeon Quad Core 2.6Ghz CPU

User avatar
caffewmilk
Level 1
Level 1
Posts: 8
Joined: Wed May 25, 2016 12:14 pm

Re: LVM install: want to move /home and /var to its own volume

Postby caffewmilk » Thu Jun 01, 2017 12:15 am

Well, I ended up scratching all that LVM setup idea.

Still, the ubuntu server partitioning tool shows/has more options for dealing with LVM than Mint's.

So during the Mint install, i decided to just use /dev/sda1 142GB for the root mount point and 4gb of swap.
/dev/sda is a Velociraptor drive so start times or reboots won't be so bad.

The rest:

/dev/sdb1 = /var 160GB
/dev/sdc1 = /home 750GB
/dev/sdd1 = /usr 250GB
Linux Mint 18.1 MATE 64Bit
Dell PowerEdge T110, 4 HDDs: 150GB, 160GB, 250GB, 750GB
RAM: 2GB, nVidia 256MB video card
Intel Xeon Quad Core 2.6Ghz CPU


Return to “Mounting Partitions”