xfs_mdrestore(8)
β¨ NAME β¨
okay so this is xfs_mdrestore(8) from the System Manager's Manual π and it's the tool that restores an XFS metadump image to a filesystem image π§
π SYNOPSIS π
xfs_mdrestore [ -gi ] [ -l logdev ] [ -r rtdev ] source target
xfs_mdrestore -i [ -l logdev ] [ -r rtdev ] source
xfs_mdrestore -V
π DESCRIPTION π
okay bestie, so xfs_mdrestore is a debugging tool π that takes a metadata image made by xfs_metadump(8) and puts it back into a filesystem. the source argument is where the metadump image lives, and the target argument is where the filesystem image is headed π¦
if the source is -, the metadata image gets read from stdin instead. this is so lowkey useful because you can pipe the output of another program, like a compression app, straight into xfs_mdrestore β¨ the target can be a file or a device, either one works π«Ά
π ngl this one is a big ol' warning: do NOT use xfs_mdrestore to restore metadata onto an existing filesystem unless you are 100% certain the target can be destroyed. like, full stop. don't be that girl π
πΈ OPTIONS πΈ
-gβ shows the restore progress on stdout π-iβ shows the metadump information on stdout π§Ύ if you don't give it a target, it exits right after showing the info. older metadumps may not include any descriptive info tho π-l logdevβ metadump v2 format can hold metadata dumped from an external log πͺ΅ in that case you have to give a device where the log device contents from the metadump file get copied to π-r rtdevβ restores the realtime device metadata onto this device π this is only required for a metadump in v2 format, so don't stress it otherwise π-Vβ prints the version number and exits π₯
π DIAGNOSTICS π
xfs_mdrestore returns an exit code of 0 if all the metadata is successfully restored, or 1 if an error occurs β so check that exit code, periodt π
π¦ SEE ALSO π¦
xfs_metadump(8), xfs_repair(8), xfs(5) β the squad you'll want to read next π«Ά
π BUGS π
bug reports go to linux-xfs@vger.kernel.org π¬ iykyk π
thanks for hanging with me bestie π«Ά xfs_mdrestore(8) π slay the filesystem responsibly β¨
π¦ 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
- 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 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