Red_Hat
RH302 · Question #30
One Logical Volume is created named as myvol under vo volume group and is mounted. The initial size of that Logical Volume is 400MB. Make successfully that the size of Logical Volume 200MB without…
To reduce the size of a Logical Volume from 400MB to 200MB without losing data, you need to follow these steps: 1. First, check the current size of the Logical Volume: lvdisplay /dev/vo/myvol 2. Make sure that the filesystem is in a consistent state before reducing it. Unmount…
Storage management
Question
One Logical Volume is created named as myvol under vo volume group and is mounted. The initial size of that Logical Volume is 400MB. Make successfully that the size of Logical Volume 200MB without losing any data. The size of logical volume 200MB to 210MB will be acceptable.
Explanation
To reduce the size of a Logical Volume from 400MB to 200MB without losing data, you need to follow these steps:
- First, check the current size of the Logical Volume:
lvdisplay /dev/vo/myvol - Make sure that the filesystem is in a consistent state before reducing it. Unmount the filesystem if mounted and run
fsck:# fsck -f /dev/vo/myvol - Now, reduce the filesystem to 200MB:
# resize2fs /dev/vo/myvol 200M - It is now possible to reduce the logical volume:
# lvreduce /dev/vo/myvol -L 200M - Verify the size of the Logical Volume:
lvdisplay /dev/vo/myvol - Verify that the size is updated online:
df -h
Topics
#LVM#lvreduce#filesystem resize#logical volume shrink
Community Discussion
No community discussion yet for this question.