XK0-004 · Question #414
A Linux administrator added storage to an XFS-formatted filesystem at /dev/mapper/vgslash- lvLog device using the LVM tools. However, the additional space does not show up when the administrator…
The correct answer is A. Option A. After expanding an LVM logical volume, the XFS filesystem itself must be explicitly grown to recognize and use the newly allocated space.
Question
A Linux administrator added storage to an XFS-formatted filesystem at /dev/mapper/vgslash- lvLog device using the LVM tools. However, the additional space does not show up when the administrator runs the df - h command. Which of the following commands should the administrator run to resolve this issue?
Exhibit
Options
- AOption A
- BOption B
- COption C
- DOption D
How the community answered
(35 responses)- A86% (30)
- B3% (1)
- C3% (1)
- D9% (3)
Why each option
After expanding an LVM logical volume, the XFS filesystem itself must be explicitly grown to recognize and use the newly allocated space.
The xfs_growfs command resizes a mounted XFS filesystem to consume all available space on the underlying block device. After LVM tools extend the logical volume, the filesystem metadata remains unchanged until xfs_growfs is run against the mount point. Unlike ext4's resize2fs, xfs_growfs operates entirely online without unmounting the filesystem.
Option B does not invoke the XFS-specific grow utility required to update the filesystem's internal metadata after LVM expansion.
Option C does not perform the online filesystem resize step that makes newly allocated logical volume space visible to the running XFS filesystem.
Option D does not call xfs_growfs or any equivalent command that signals the XFS filesystem to expand into the added LVM space.
Concept tested: XFS online filesystem expansion after LVM resize
Source: https://www.man7.org/linux/man-pages/man8/xfs_growfs.8.html
Topics
Community Discussion
No community discussion yet for this question.
