Ubuntu Server Lvm

LVM or Logical Volume Manager will allow you to combine hard drive partitions and stretch a mount point over multiple partitions. For instance your /var mount point is restricted by hard drive space on hda, but you have a second hard drive hdb.  So you will partition /var structure using the remainder of hard drive and then partition space from hard drive B, which will combine the space together. In this guide I will be using the follow mount points:

  • /boot – Boot Partition ext3
  • / – Root Partition xfs
  • swap – Swap Space
  • /var – Variable Data Partition xfs

I will be using Ubuntu Server distro to create the lvm partition structure. Start the install Ubuntu server and go though the setup the normal way. As soon as you come to the partition disk section, you will want to create some space for the /boot mount point. I usually use 100mb, and you need to set the boot flag to on. See the image below.

Boot Filesystem ext3

After you create the /boot partition, you will then need to convert the remaining free space into an lvm.

Logical Volume Manager

Once the free space has been changed to lvm file type; see image below. Scroll to the the top so you can now setup your logical volume group.

Configure Logical Volume Manager

Type a name for you logical volume group, I choose to use lvm.

Create Lvm Group

Then select the hard drives that will consist of your logical volume group.

Select Hard Drives

After you have created you logical volume group, the next thing that you have to do is section off the logical volume group into logical volume partitions. These partitions will consist of you /, swap space and the /var directory.

Create Logical Volume

Type a name for the logical volume partition, for instance root for /, swap for swap and var for /var.

Roof Xfs

Then specify the amount of space you want to use for your root partition.


Then select the type of file system that you want to use for the partitions.

Set Filesystem

Once you are all set you should have something that resembles the picture below. If you want to add other partitions like /home, /opt, /tmp etc, simply create a name to identify the directory then section off the space, finally select the file system type and choose the mount point.

Finish Lvm Partition