Re: filesystem dead, xfs_repair won't help

Emmanuel Florac
2017-04-11T12:00:07Z

[-- Attachment #1: Type: text/plain, Size: 977 bytes --]

Le Tue, 11 Apr 2017 14:40:15 +0300
Avi Kivity <avi@scylladb.com> écrivait:

> $ sudo xfs_db -c "sb 0" /tmp/fs
> xfs_db: /tmp/fs is not a valid XFS filesystem (unexpected SB magic
> number 0x5846534d)
> Use -F to force a read attempt.
> $ sudo xfs_db -F -c "sb 0" /tmp/fs
> xfs_db: /tmp/fs is not a valid XFS filesystem (unexpected SB magic
> number 0x5846534d)
> xfs_db: V1 inodes unsupported. Please try an older xfsprogs.

Oops, I forgot one important part, sorry, you must restore the
meta_dump to a file first:

xfs_mdrestore /tmp/fs /tmp/fsimage

then run xfs_db on the /tmp/fsimage:

xfs_db -c 'sb 0' -c 'p' /tmp/fsimage

--
------------------------------------------------------------------------
Emmanuel Florac | Direction technique
| Intellique
| <eflorac@intellique.com>
| +33 1 78 94 84 02
------------------------------------------------------------------------

[-- Attachment #2: Signature digitale OpenPGP --]
[-- Type: application/pgp-signature, Size: 181 bytes --]