System information

# xfs_repai r /dev/device
The xfs_repai r utility is highly scalable and is designed to repair even very large file systems with
many inodes efficiently. Unlike other Linux file systems, xfs_repai r does not run at boot time, even
when an XFS file system was not cleanly unmounted. In the event of an unclean unmount,
xfs_repai r simply replays the log at mount time, ensuring a consistent file system.
Warning
The xfs_repai r 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. Be
aware that this may result in further corruption or data loss.
For more information about repairing an XFS file system, refer to man xfs_repai r.
8.6. Suspending an XFS File Syst em
To suspend or resume write activity to a file system, use xfs_freeze. Suspending write activity
allows hardware-based device snapshots to be used to capture the file system in a consistent state.
Note
The xfs_freeze utility is provided by the xfspro gs package, which is only available on
x86_64.
To suspend (that is, freeze) an XFS file system, use:
# xfs_freeze -f /mount/point
To unfreeze an XFS file system, use:
# xfs_freeze -u /mount/point
When taking an LVM snapshot, it is not necessary to use xfs_freeze to suspend the file system
first. Rather, the LVM management tools will automatically suspend the XFS file system before taking
the snapshot.
Note
The xfs_freeze utility can also be used to freeze or unfreeze an ext3, ext4, GFS2, XFS, and
BTRFS, file system. The syntax for doing so is the same.
For more information about freezing and unfreezing an XFS file system, refer to man xfs_freeze.
8.7. Backup and Rest orat ion of XFS File Syst ems
Red Hat Ent erprise Lin ux 6 St orage Admin ist rat io n G uide
4 6