#LVM
- There are multiple physical disk in your system . use
lsblk
command to see it . Eg : /sda /sdb - Each of the physical disk has partition like /sda1 /sda2
- use any of the physical disk partition to create a phyical volume . we can use only one disk or more . To create a physical disk use :
pvcreate /dev/sdb
4.put these physical volume in the volume group by "vgcreate <vg-name> <physical-disk>
vgcreate test /dev/sda1 /dev/sda2
5.we can usepvdisplay
andvgdisplay
to see information about physical and volume group . similarly we can find information regarding volume group viavgscan
. - we will create a new logical volume from volume group .