8.5. Repairing an XFS File System
xfs_repairutility is highly scalable and is designed to repair even very large file systems with many inodes efficiently. Unlike other Linux file systems,
xfs_repairdoes not run at boot time, even when an XFS file system was not cleanly unmounted. In the event of an unclean unmount,
xfs_repairsimply replays the log at mount time, ensuring a consistent file system.
xfs_repairutility cannot repair an XFS file system with a dirty log. To clear the log, mount and unmount the XFS file system. If the log is corrupt and cannot be replayed, use the
-Loption ("force log zeroing") to clear the log, that is,
xfs_repair -L /dev/device. Be aware that this may result in further corruption or data loss.