After expanding the underlying block device, which command grows the XFS filesystem mounted at /mnt/mydir?

Prepare for the Red Hat Certified Systems Admin Exam EX200. Enhance your skills with interactive quizzes, flashcards, and detailed explanations. Ace your certification exam today!

Multiple Choice

After expanding the underlying block device, which command grows the XFS filesystem mounted at /mnt/mydir?

Explanation:
Expanding an XFS filesystem is done online with xfs_growfs, which enlarges the filesystem to use any free space on its underlying block device. It operates on the mounted filesystem, so you provide the mount point, not the device path. In this case, xfs_growfs /mnt/mydir will extend the XFS filesystem mounted there to consume the newly available space. The other tools don’t fit here: resize2fs works only with ext2/3/4, growpart expands partitions (you’d often run it first if the partition hasn’t been enlarged yet), and then you’d still need xfs_growfs on the mount point to grow the XFS filesystem.

Expanding an XFS filesystem is done online with xfs_growfs, which enlarges the filesystem to use any free space on its underlying block device. It operates on the mounted filesystem, so you provide the mount point, not the device path. In this case, xfs_growfs /mnt/mydir will extend the XFS filesystem mounted there to consume the newly available space. The other tools don’t fit here: resize2fs works only with ext2/3/4, growpart expands partitions (you’d often run it first if the partition hasn’t been enlarged yet), and then you’d still need xfs_growfs on the mount point to grow the XFS filesystem.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy