Freezing and Unfreezing an XFS File System

If you need to take a hardware-based snapshot of an XFS file system, you can temporarily stop write operations to it.

Note:

You don't need to explicitly suspend write operations if you use the lvcreate command to take an LVM snapshot.

To freeze an XFS file system, use the -f option with the xfs_freeze command:

sudo xfs_freeze -f /myxfs

To unfreeze an XFS file system, use the -u option with the xfs_freeze command:

sudo xfs_freeze -u /myxfs

Note:

You can also use the xfs_freeze command with btrfs, ext3, and ext4 file systems.

For more information, see the xfs_freeze(8) manual page.