Re: filesystem dead, xfs_repair won't help

Emmanuel Florac
2017-04-11T11:30:34Z

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

Le Tue, 11 Apr 2017 10:46:07 +0300
Avi Kivity <avi@scylladb.com> écrivait:

> $ sudo xfs_repair /dev/nvme0n1
> Phase 1 - find and verify superblock...
> couldn't verify primary superblock - not enough secondary superblocks
> with matching geometry !!!

Which version of xfs_repair is this?

Try to export the FS structure with xfs_metadump, something like

xfs_metadump /dev/nvme0n1 /some/file.dmp

And check the errors it reports, they may be informative.

In the case where metadump works out fine, you should then try to have a
look at the FS structure using the dump (to avoid wrecking it more that
it already is):

xfs_db -c "sb 0" /some/file.dmp

--
------------------------------------------------------------------------
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 --]