You are not logged in.

#1 2011-01-02 04:23:28

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 488

Rebuild XFS headers? (Superblock magic number 0)

I have 3 disk RAID5+LVM set up that I would like to try and recover. I cam home to find that one of the three disks in the RAID5 was inactive. So, here's what I did:

- Rebuild the array (OK!)
- Recreate the physical volumes using data from my LVM metadata backup (OK!)
- Rebuild the volume groups from LVM metadata backups (OK!)
- Try to mount XFS partitions (FAIL!)
- Try to run xfs_check (FAIL!)
- Try to run xfs_repair (FAIL!)

Ultimately, xfs_repair gave me the most information. It says that the superblock magic number is 0. Somehow that seems bad. Checking with hexdump, it seems like my files are all still there but that the header is toast. The first few hundred bytes of the block device are all zeros, but afterwards there are filenames and text strings.

It seems like the data is there and mostly intact. Is there a way to rebuild the XFS header? Almost everything on the array is of low value, but there are some photos which I would very much like recover.

Thanks!
-Sasha

Offline

Board footer

Powered by FluxBB