5 Freezing and Unfreezing an XFS File System

Use the xfs_freeze command to stop write operations when taking hardware-based snapshots of an XFS file system.

Note:

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

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.

  1. To freeze an XFS file system, use the -f option with the xfs_freeze command:
    sudo xfs_freeze -f /mnt
  2. To unfreeze an XFS file system, use the -u option with the xfs_freeze command:
    sudo xfs_freeze -u /mnt