System Management
After a power failure, an XFS filesystem on /dev/sdb1 fails to mount with the error "Structure needs cleaning". The filesystem is unmounted. Which command should the administrator run to repair it?
Show the answer
Correct answerB. xfs_repair /dev/sdb1
xfs_repair checks and repairs an unmounted XFS filesystem. fsck.xfs is tempting, but it is only a placeholder that performs no repair, so the damage remains. e2fsck works only on ext2/3/4, and xfs_growfs enlarges a mounted filesystem.