• You are here:
  • »
  • lvm

lvm

This is an old revision of the document!


lvm

Resize

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/attic/storage/lvm.1565197603.txt.gz · Last modified: 2019/08/07 17:06 by eServices Greece