/ 레드햇

16.7 Shrinking an LVM Logical Volume

레드햇 rhcsa LVM Logical Volume Shrinking Logical Volume
https://4am.kr/16-7-shrinking-an-lvm-logical-volume/
df -h
mount | grep lvmylv
umount /moredata/
man -K resize
resize2fs --help
e2fsck -f /dev/vgmyvg/lvmylv
resize2fs /dev/vgmyvg/lvmylv 100M
lvreduce --help
lvreduce -L 102400K /dev/vgmyvg/lvmylv
y
mount -a
df -h
unmount /moredata/
lvreduce --help
lvreduce -L 50M -r /dev/vgmyvg/lvmylv
mount -a