====== lvm ======
===== Resize =====
==== Logical Volume ====
=== Increase Logical Volume Size ===
Increase by 1GB
lvextend -L +1G /dev/centos/home
=== Decrease Logical Volume Size ===
Decrease by 1GB
lvreduce -L 1G /dev/centos/var
=== Filesystem Resize ===
For ext3 & ext4
resize2fs /dev/centos/home
For xfs
xfs_growfs /dev/centos/home
===== VM Related =====
=== mount lvm disk on partition ===
kpartx -av /dev/volKVM/kvm106_img
mount /dev/mapper/volKVM-kvm106_img1 /mnt
=== unmount lvm disk ===
umount /mnt
kpartx -dv /dev/volKVM/kvm106_img