xfs
[Top] [All Lists]

Unable to mount and repair filesystems

To: "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
Subject: Unable to mount and repair filesystems
From: Gerard Beekmans <GBeekmans@xxxxxxxx>
Date: Thu, 29 Jan 2015 17:36:53 +0000
Accept-language: en-CA, en-US
Delivered-to: xfs@xxxxxxxxxxx
Thread-index: AdA76PstgYvQ3IMGTOi2marBUntUTg==
Thread-topic: Unable to mount and repair filesystems

Hi,

 

One of our VMware VMs crashed which has resulted in a few XFS filesystems unable to mount and be repaired.

 

Some VM details:

-          Distribution is CentOS 7

-          Partitions reside inside LVM

-          Tried CentOS provided xfsprogs-3.2.0-alpha2 as well as manually compiling 3.2.2

 

When attempting to mount:

 

[71895.922382] XFS (dm-9): Mounting Filesystem

[71895.994614] XFS (dm-9): Starting recovery (logdev: internal)

[71896.000910] XFS (dm-9): Metadata corruption detected at xfs_agf_read_verify+0x70/0x120 [xfs], block 0x753001

[71896.002304] XFS (dm-9): Unmount and run xfs_repair

[71896.003649] XFS (dm-9): First 64 bytes of corrupted metadata buffer:

[71896.005049] ffff8800b1200c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

[71896.006468] ffff8800b1200c10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

[71896.007799] ffff8800b1200c20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

[71896.009116] ffff8800b1200c30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

[71896.010482] XFS (dm-9): metadata I/O error: block 0x753001 ("xfs_trans_read_buf_map") error 117 numblks 1

mount: mount /dev/mapper/data-srv on /srv failed: Structure needs cleaning

 

 

xfs_repair:

 

xfs_repair /dev/mapper/data-srv

Phase 1 - find and verify superblock...

couldn't verify primary superblock - bad magic number !!!

 

attempting to find secondary superblock...

Found candidate secondary superblock…

Unable to verify superblock, continuing…

 

And on it goes until it eventually gives up.

 

There are two XFS partitions that are having these issues. The other 8 this VM has ended up repairing and mounting properly.

 

If there is anything I can do to fix these issues that would be appreciated. I have a bit of time before this VM needs to be up and running (which will involve formatting the filesystem and restoring from a backup). I’d love to help out the XFS project by providing any debug information you might find useful.

 

Regards,

 

Gerard Beekmans

 

<Prev in Thread] Current Thread [Next in Thread>