This is a short one for how to repair a XFS filesystem, check out the more detailed one How to repair a XFS filesystem
To repair an XFS file system, use xfs_repair:
Before doing xfs_repair, umount the filesystem first
# umount /<filesystem>
# xfs_repair /dev/device
The xfs_repai rutility 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.
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_repai r -L /dev/device. Beaware that this may result in further corruption or data loss.