• You are here:
  • »
  • lvm

lvm

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

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

/home/www/sites/esgr.in/wiki/data/pages/storage/lvm.txt · Last modified: 2019/08/07 17:11 by eServices Greece