nerdexam
Red_Hat

EX200 · Question #24

24. Adjust Logical Volume Size Adjust the size of the logical volume "vo" and its filesystem to 300 MiB, ensuring that the filesystem content remains unchanged. Note: Partition sizes rarely match…

The lvextend command is used to resize a logical volume to a specific size, automatically resizing the underlying filesystem simultaneously.

Submitted by haru.x· Apr 18, 2026Configure local storage

Question

  1. Adjust Logical Volume Size Adjust the size of the logical volume "vo" and its filesystem to 300 MiB, ensuring that the filesystem content remains unchanged. Note: Partition sizes rarely match the requested size exactly, so a range of 290 MiB to 310 MiB is acceptable. For ext4 filesystems, use resize2fs to take effect immediately; for xfs filesystems, use xfs_growfs to take effect immediately. Correct Answer: See the below explanation Explanation Explanation/Reference: Solution: # Scan logical volumes # Extend the logical volume. With -rL, the filesystem space is adjusted immediately after extending the volume. [root@node2 ~]# lvextend -rL 300M /dev/myvol/vo # Check the changes [root@node2 ~]# lsblk [root@node2 ~]# lvs # Verification [root@node2 ~]# df -h

Explanation

The lvextend command is used to resize a logical volume to a specific size, automatically resizing the underlying filesystem simultaneously.

Concept tested. Resizing logical volumes and filesystems

Reference. https://man7.org/linux/man-pages/man8/lvextend.8.html

Topics

#LVM#Logical Volume resizing#Filesystem resizing#lvextend

Community Discussion

No community discussion yet for this question.

Full EX200 Practice