Linux LVM – A Brief Introduction

Linux LVM – A Brief Introduction


We will figure out How to Setup Linux LVM (Logical Volume Manager) utilizing pvcreate, vgcreate, lvcreate directions. LVM stands for Logical Volume Manager. 
LVM used to Manage the Logical Volumes by Extend, Resize, Reduce, Rename,create preview thus numerous different highlights. 




Why we should use Logical Volume Manager (LVM)


As we previously talked about Linux LVM is utilized to Extend the Logical Volume Partition, Reduce the Partition, Resize the Partition, etc… Now you may imagine that Where we would required to Extend the Partition. Now we will take one simple example to understand the concept of lvm.

Suppose You have a server in your office with 350 GB Harddisk   and all users are saving their data in that server. Suddenly Harddisk got full and you have no Space left to storing data any more. In that condition we need to delete unwanted data to free the disk space.  If we configure LVM then we have an  option to extend disk size using lvm2 command .


 In this case if your 350 GB harddisk got full then you can take a New Harddisk and just connect it and Extend your current Partition online  using lvm2 utility without loosing any data . Shutdown is not required for this activity.




Logical volume manager,physical volume
Logical volume manager



Advantages of Linux LVM  


Linux LVM (Logical Volume Manager) equipped for perform beneath undertakings : 

·         we can extend Physical Volume, Volume Gruop, Logical Volume Size as per our requirement.

·      we can reduce  Physical Volume, Volume Gruop, Logical Volume Size as per our requirement .

·         we can resize  Physical Volume, Volume Gruop, Logical Volume Size as per our requirement.
·         shutdown is not required for this activity. 

·         No data loss take place.

·        Take depiction of Logical Volume utilizing Linux LVM Snapshot.  

How does LVM work


Now we are going to explain how lvm work.


To configure LVM, we need to change partition ID 8e using fdisk utility command.


First we need to create physical volume  After creating  of PVs, we need to  create Volumes Groups from the Physical volumes.

After creating volume group we can create Logical Volumes   from Volume Groups. 

If this article is helpful please share it.

SHARE

Admin

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment