System Management
A 30 GiB logical volume, /dev/vg_data/lv_data, holds a mounted ext4 filesystem. The volume group also contains other logical volumes and has unallocated extents. An administrator must give lv_data all remaining free space in the group and grow the filesystem, using one command and no unmounting. Which command BEST meets this requirement?
Show the answer
Correct answerA. lvextend -l +100%FREE -r /dev/vg_data/lv_data
+100%FREE adds every unallocated extent in the volume group, and -r resizes the filesystem in the same step. Omitting -r extends only the logical volume and leaves the ext4 filesystem at its old size.