System Management
An administrator is formatting a general-purpose data volume that may need to be made smaller later. Which filesystem choice supports this, and why?
Show the answer
Correct answerC. ext4, because resize2fs can shrink it while it is unmounted
AWhy not this: resize2fs can grow a mounted ext4 filesystem, but shrinking ext4 requires it to be unmounted.
BWhy not this: xfs_fsr defragments XFS files; it does not change the filesystem's size, and XFS cannot be shrunk.
CWhy this is right: Ext4 can be shrunk with resize2fs once it is unmounted, while XFS can only be grown.
DWhy not this: xfs_repair checks and repairs XFS metadata; it cannot shrink the filesystem.
XFS can be grown but cannot be shrunk, whereas ext4 can be shrunk while unmounted using resize2fs. Choosing XFS for a volume that may need to shrink would force a backup, recreate and restore.