Sunday, 13 November 2016

LVM (Logical Volume Manager)
It is a software which install by default when you install Linux.  LVM use to allocate disks, mirroring striping and resizing the logical volumes. LVM physical volume placed on block device which have two or more hard disk.
It’s a storage management system that manage the disk space for file system and data. Most important feature is that you can easily create resize and delete LVM partition without reboot the system.

We have three main thing to implement the LVM as shown in below diagram:-





























Physical Volume (PV)
Adding new Hardware is called physical volume.  Mean you adding a new disk storage.
Volume Group (VG)
Collection of Physical volume is called volume group.
Logical Volume (LV)
The space of volume group which is used to store the data called logical volume.

Implement the Logical Volume

Fisrt of all you have to create a partition with 8e type which define the LVM.
# fdisk /dev/sda
Press n for new partition now give here size according to your requirement.
Partition type 8e. press w for save.
# partproble /dev/sda

# pvcreate  /dev/sda1 /dev/sda2

# pvdisplay

#vgcreate vgname /dev/sda1

# vgdisplay

# lvcreate –size +10G –n <lv name>  < vg name>
You can use here another command also which define the label size
# lvcreate -l +<Lavel Value> -n <lv name> <vg name>

# lvdisplay

#df -h
to check the size of new logical volume

After that create format the LV to use.
# mkfs.ext4 /dev/vgname/lvname 

After that mount LV with a existing directory
# mount /dev/vgname/lvname /mountDIR
# mount 
to check the mount 


For More about LVM please see on next post.
For Video of LVM please see on https://www.youtube.com/channel/UCdgKsGClT_D4A7he99JbfZg

0 comments:

Post a Comment

Sample Text

Powered by Blogger.

Video

Popular Posts

Our Facebook Page