xfs_freeze(8)
π NAME π
okay so bestie, this is xfs_freeze(8) from the System Manager's Manual π and it's basically how you pause an XFS filesystem and unpause it. The official name is xfs_freeze - suspend access to an XFS filesystem β¨
π§Ύ SYNOPSIS π§Ύ
xfs_freeze [ -f | -u ] mount-point
xfs_freeze -V
πΈ DESCRIPTION πΈ
okay so xfs_freeze suspends and resumes access to an XFS filesystem (see xfs(5)) π¦
it halts new access to the filesystem and creates a stable image on disk πΈ it's literally made for volume managers and hardware RAID devices that can make snapshots, so it's giving backup energy π
the mount-point argument is the pathname of the directory where the filesystem is mounted. no cap, the filesystem has to be mounted before you can freeze it (see mount(8)) π§
-fβ this one freezes the filesystem so nothing new can change it π§ all the ongoing transactions get to finish, new write system calls get halted, other calls that would modify the filesystem get halted too, and all the dirty data, metadata, and log info gets written to disk. any process trying to write to the frozen filesystem will just block and wait until it's unfrozen π-uβ this one un-freezes the filesystem so everything can go again π any filesystem modifications that got blocked by the freeze are unblocked and allowed to finish β¨-Vβ prints the version number and exits π
β οΈ bestie, unless you're using-V, you MUST pass either-for-u. no exceptions π
okay but here's the tea π« even after freezing, the on-disk filesystem can still have info about files that are in the middle of being unlinked. those files won't actually get unlinked until the filesystem is unfrozen or a clean mount of the snapshot is complete π₯Ί
π NOTES π
ngl this part is kind of a lot, but it's important π«Ά
a copy of a frozen XFS filesystem will usually have the same universally unique identifier (UUID) as the original, so it might be prevented from being mounted π the XFS nouuid mount option can be used to get around this issue π§
also, in Linux kernel version 2.6.29, the interface XFS uses to freeze and unfreeze got elevated to the VFS π which means this tool can now be used on lots of other Linux filesystems too. literally so iconic π
π¦ SEE ALSO π¦
bestie that's the whole thing, you're welcome π xfs_freeze(8) πβ¨
π¦ where this page comes from
- alpine 3.22: xfsprogs-doc 6.14.0-r0 Β· LGPL-2.1-or-later
- alpine 3.23: xfsprogs-doc 6.17.0-r0 Β· LGPL-2.1-or-later
- alpine 3.24: xfsprogs-doc 7.0.1-r0 Β· LGPL-2.1-or-later
- arch rolling: xfsprogs 7.2.0-1
- arch rolling: xfsprogs 7.2.1-1 Β· GPL-2.0-only AND LGPL-2.1-only
- centos-stream 10: xfsprogs 6.16.0-1.el10 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- centos-stream 9: xfsprogs 6.4.0-9.el9 Β· GPL+ and LGPLv2+
- centos-stream 9: xfsprogs 6.4.0-9.el9 Β· GPL+ and LGPLv2+
- debian bookworm: xfsprogs 6.1.0-1 Β· GPL-2.0-only
- debian trixie: xfsprogs 6.13.0-2+deb13u1 Β· GPL-2.0-only
- fedora 43: xfsprogs 6.15.0-3.fc43 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 43: xfsprogs 6.15.0-3.fc43 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs 6.18.0-2.fc44 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs 6.18.0-2.fc44 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs 7.1.1-1.fc44 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs 7.1.1-1.fc44 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- nixos 26.05: xfsprogs 6.19.0
- nixpkgs unstable: xfsprogs 7.2.1
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 Β· GPL-2.0-or-later
- ubuntu jammy: xfsprogs 5.13.0-1ubuntu2 Β· GPL-2.0-only
- ubuntu jammy: xfsprogs 5.13.0-1ubuntu2.1 Β· GPL-2.0-only
- ubuntu noble: xfsprogs 6.6.0-1ubuntu2 Β· GPL-2.0-only
- ubuntu noble: xfsprogs 6.6.0-1ubuntu2.1 Β· GPL-2.0-only
- ubuntu questing: xfsprogs 6.13.0-2ubuntu2 Β· GPL-2.0-only
- ubuntu resolute: xfsprogs 6.18.0-3 Β· GPL-2.0-only
- ubuntu stonking: xfsprogs 6.19.0-1 Β· GPL-2.0-only
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms