nerdexam
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

  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 use: ext2online /dev/vo/myvol (Note: For ext4, use resize2fs /dev/vo/myvol; for XFS, use xfs_growfs /mount_point_of_myvol.)
  4. Verify the new size of the Logical Volume: lvdisplay /dev/vo/myvol
  5. 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.

Full RH302 Practice