Hello list-members,
using the xfs-filesystem (satisfied) for two years I ran in trouble. I had
to change some components in my home based fileserver - so the trouble
begun.
foreplay: I'm running two different ide-software-raids (4x40GB, 4x80GB) on
redhat (from 7.1 to 8.0) with xfs. Some weeks ago my bootdrive (scsi) failed
and I was unable to find an adequate replacement. So I decided to swap this
drive to ide, too. First I got a new Controller (HighPoint RocketRaid 404)
for the raiddrives so I could use the intermal IDE for the systemdrive.
I migrated all the stuff properly (doing a backup of all my data!) without
an error. On this point my trouble started. The machine crashed all the
time, losing connection to the new controller. So I had to compile a new
driver for the RocketRaid. This driver runs fine, but it maps all the
drive's to scsi (hde->sda,hdf->sdb...). I reinitialized my raid with the new
drives (I had to do this serveral times in the past and everything went
well), without a backup. Something went wrong, with the small one (4x40GB
Raid5), I'm unable to mount it. For the second Raid I did a backup (consider
to backup 240gig of data and the machine is crashing every 3-5 gig!). In
this case the migration from hdx->sdx went well. The torture of backup was
useless.
If I remember correct I wrote (late in the night) the grub bootloader to the
first 40gig-drive and therefore the superblock went to heaven, I suppose.
This was'n my intention!
I tried several times to repair the data via xfs_repair (including log
flushing). The effect is always the same "bad primary superblock - bad magic
number !!!" -> "attempting to find secondary superblock..." -> "found
candidate secondary superblock..." -> "unable to verify superblock,
continuing...". Xfs_repair finds about 15-20 secondary superblock won't do
anything else.
So I did a backup of the drive (dd) and formated it, copied the superblock
and restored my data. I had little hope, but I had to give a try :) So I
copied the new superblock to the raid (better an 'alien' superblock than no
superblock) and tried xfs_repair again.
I searched the web for several days, but found nothing useful (even in this
list :( ). Some points are the data is lost, someone could restore the
superblock...
I launched xfs_db, it starts with "unexpected XFS SB magic number
0x1f8b0800" what is my next step?
I'll try ANYTHING, it couldn't get worse and I have a backup of the broken
filesystem.
thanks in advance
Ralf Sparr
|