This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== lvm ====== ===== Resize ===== ==== Logical Volume ==== === Increase Logical Volume Size === Increase by 1GB <sxh bash>lvextend -L +1G /dev/centos/home</sxh> === Decrease Logical Volume Size === Decrease by 1GB <sxh bash>lvreduce -L 1G /dev/centos/var</sxh> === Filesystem Resize === For ext3 & ext4 <sxh bash>resize2fs /dev/centos/home</sxh> For xfs <sxh bash>xfs_growfs /dev/centos/home</sxh> ===== VM Related ===== === mount lvm disk on partition === <sxh bash> kpartx -av /dev/volKVM/kvm106_img mount /dev/mapper/volKVM-kvm106_img1 /mnt </sxh> === unmount lvm disk === <sxh bash> umount /mnt kpartx -dv /dev/volKVM/kvm106_img </sxh>