You can Watch all our Tutorials and Training Videos for Free on ourYouTube Channel

How to Create LVM Logical Volume in Linux Easily

linux lvm commands, how to create lvm volume in linux, create lvm logical volume, create lvm volume on linux, lvm volume creation on linux
This post will show you How to Create LVM Logical Volume in Linux Easily.

How to Create LVM Logical Volume in Linux Easily


If you are 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 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.

Hope this post helped you to know How to Create LVM Logical Volume in Linux Easily.

Related Content on Linux might be useful to you to improve your Linux Skills.
Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.
whatsapp logo