Steps in Creating a logical volume
Create physical volume
pvcreate /dev/vdb1 /dev/vdb2
Create volume group
vgcreate vg01 /dev/vdb1 /dev/vdb2
Create logical volume
lvcreate -n lv01 -L 300M vg01
lvcreate -n lv01 -l 32 vg01
Show details of PV
pvdisplay
Show details of LV
lvdisplay
Show details of VG
vgdisplay
Add a new PV to VG
vgextend vg01 /dev/vdb3
extend the LV
lvextend -L +500M /dev/vg01/lv01
Extend an XFS FS to the LV size
xfs_growfs /mnt/data/
Extend an EXT4 FS to the LV size
resize2fs /dev/vg01/lv01
Extend the size of a LV
Extend Swap Space Logical Volumes
swapoff -v /dev/vg01/swap
lvextend -L +300M /dev/vg01/swap
mkswap /dev/vg01/swap
swapon /dev/vg01/swap
Reduce Volume Group Storage
pvmove /dev/vdb3
vgreduce vg01 /dev/vdb3
FS that support shrinking
ext3 ext4
FS that do not support shriking
GFS2 and XFS
Remove PV that is no longer required
lvremove /dev/vg01/lv01
Remove VG that is no longer needed
vgremove vg01
Remove PV that is no longer needed
pvremove /dev/vdb1 /dev/vdb2
Prepare FS for removal of volumes