A Linux system administrator has successfully used the lvextend command to increase the size of a logical volume. The logical volume is formatted with an XFS filesystem and is currently mounted at /data. To make the additional space usable, the filesystem itself must be expanded. Which of the following commands should the administrator use to accomplish this task?
The correct command is xfs_growfs /data. The xfs_growfs utility is specifically designed to grow an XFS filesystem, and it operates on the mount point of the filesystem.
resize2fs /dev/vg/lv is incorrect because it is used to resize ext2, ext3, and ext4 filesystems, not XFS.
xfs_repair /dev/vg/lv is incorrect as it is a utility used to check and repair a damaged XFS filesystem, which must be unmounted first. It does not resize the filesystem.
lvextend -L+5G /dev/vg/lv is incorrect because the scenario states that the logical volume has already been extended. This command modifies the block device (the logical volume), not the filesystem that resides on it.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is an XFS filesystem and how is it different from other filesystems like ext4?
Open an interactive chat with Bash
How does the `xfs_growfs` command work to expand a filesystem?
Open an interactive chat with Bash
Why can’t the `resize2fs` command be used for an XFS filesystem?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
System Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access