3.5. Repairing an XFS File System
3.5. Repairing an XFS File System To repair an XFS file system, use xfs_repair : The xfs_repair utility is highly scalable and is designed to repair even very large file systems with many inodes efficiently. Unlike other Linux file systems, xfs_repair does not run at boot time, even when an XFS file system was not cleanly unmounted. In the event of an unclean unmount, xfs_repair simply replays the log at mount time, ensuring a consistent file system. Warning The xfs_repair utility 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 -L option ("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. For more information about repairing an XFS file system, see man xfs_repair .
xfs_repair /dev/device