What is Logical Volume Manager (LVM) and what are the step to create LVM?

LVM stands for Logical Volume Manager. LVM, is a storage management solution that allows administrators to divide hard drive space into physical volumes (PV), which can then be combined into logical volume groups (VG), which are then divided into logical volumes (LV) on which the filesystem and mount point are created.

The steps to create LVM are:-

– Create physical volumes by “pvcreate” command
#pvcreate /dev/sda2

– Add physical volume to volume group by “vgcreate” command
#vgcreate VLG0 /dev/sda2

– Create logical volume from volume group by “lvcreate” command.
#lvcreate -L 1G -n LVM1 VLG0

Now create file system on /dev/sda2 partition by “mke2fs” command.
#mke2fs -j /dev/VLG0/LVM1

Leave a Reply