How to create a LVM Logical Volume in Linux

How to create a Logical Volume in Linux on LVM, lvm create logical volume in linux, create logical volume linux, creating logical volumes, create linux volumes

Are you looking for creating a logical volume in linux on lvm. Here we have described the  commands to create a logical volumes on Linux.

Prerequisites:
1. We should have enough free space on Volume group (VG) to create a Logical Volume. Refer this link to create a LVM Volume group in Linux. Use "vgs" command to confirm the free space available in volume group or not.

How to create a Logical Volumes

Use "lvcreate" command to create a logical volumes.
lvcreate -L 50G -n datalv datavg
Where,
-L to define the Logical volume size 50G.
-n to define the new logical volume name "datalv".
"datavg" is the volume group name.

Above command will create a logical volume "datalv" of 50G size under the volume group "datavg". Now create a filesystem and mount the logical volume. Refer this link to know the complete LVM Tutorial.

Use "lvs" command to confirm that logical volume is created or not.
How to create a Logical Volume in Linux on LVM, lvm create logical volume in linux, create logical volume linux, creating logical volumes, create linux volumes, how to create logical volume in rhel, lvcreate redhat
August 12, 2016

Post a Comment

[disqus][facebook][blogger]

Contact Form

Name

Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget