notebook/IT/linux/LVM.md
2021-04-20 23:13:14 +02:00

446 B

LVM

reduce logical volume

You must get a blank output from this command as below

lsof /home

Next un-mount the partition umount /home

check filesystem e2fsck -flinux show file syste /dev/mapper/arch-home

resize file system resize2fs /dev/mapper/arch-home 20G

reduce logical volume

lvreduce /dev/mapper/arch-home -L 20G

increase logical volume

lvextend -L +44G /dev/mapper/arch-root

resize2fs /dev/mapper/arch-root