Red_Hat
RH302 · Question #157
A Logical Volume named myvol is created under the vo volume group and is mounted. The initial size of this Logical Volume is 124MB. Successfully resize the Logical Volume to 245MB without losing any…
1. First, check the current size of the Logical Volume: lvdisplay /dev/vo/myvol 2. Increase the size of the Logical Volume by 121MB (from 124MB to 245MB): lvextend -L+121M /dev/vo/myvol 3. Extend the filesystem on the Logical Volume online. For ext2/ext3 filesystems, you might…
Storage management
Question
A Logical Volume named
myvol is created under the vo volume group and is mounted. The initial size of this Logical Volume is 124MB. Successfully resize the Logical Volume to 245MB without losing any data. A size between 240MB and 255MB will be acceptable.Explanation
- First, check the current size of the Logical Volume:
lvdisplay /dev/vo/myvol - Increase the size of the Logical Volume by 121MB (from 124MB to 245MB):
lvextend -L+121M /dev/vo/myvol - Extend the filesystem on the Logical Volume online. For
ext2/ext3filesystems, you might use:ext2online /dev/vo/myvol(Note: Forext4, useresize2fs /dev/vo/myvol; forXFS, usexfs_growfs /mount_point_of_myvol.) - Verify the new size of the Logical Volume:
lvdisplay /dev/vo/myvol - Verify that the filesystem size is updated online:
df -h /mount_point_of_myvol
Topics
#LVM#lvextend#logical volume resize#filesystem resize
Community Discussion
No community discussion yet for this question.