A Linux system administrator has successfully extended a logical volume named /dev/vg_data/lv_apps using the lvextend command. The volume is formatted with the XFS filesystem and mounted at /apps. When checking with df -h, the administrator notices the size of the filesystem has not changed. Which of the following commands must be run to make the additional space available for use?
The correct command is xfs_growfs /apps. Expanding storage on LVM is a two-step process: first, the logical volume (the container) is extended with lvextend, and second, the filesystem inside the container is resized to use the new space. Since the filesystem is XFS, the xfs_growfs utility must be used. It is designed to grow a mounted XFS filesystem to fill the space of its underlying block device. resize2fs is incorrect as it is used for ext2, ext3, and ext4 filesystems. Using mkfs.xfs would be destructive, as it would create a new, empty filesystem, erasing all existing data. Running lvextend again with the --resizefs option is not the correct next step because the volume has already been extended; the pending task is to resize the filesystem itself.
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 the purpose of the xfs_growfs command, and why is it necessary?
Open an interactive chat with Bash
Why can't resize2fs be used for XFS filesystems?
Open an interactive chat with Bash
What happens if mkfs.xfs is run on an existing 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