Skip to contentSkip to conversation

RAID5 and missing superblocks

DISCUSSION Aaron 2 participants 2 messages Jan 10, 2005 MD RAID

lore
Share & tools
lore

Aaron

author
#0 lore raw

I have a 3 disk RAID5 device that has had all 3 superblocks zeroed out (don't ask, it's hard enough to even admit it ...). The disks are healthy and the data is there, but is there any way to ever assemble the array again? I have tried the simple approaches with mdadm --assemble --force and raidstart with no luck.

Thanks,
Aaron

#1 lore raw

If you re-create the array with the same parameters as when it was built last, the data should still be there. But if you get 1 factor wrong, say good bye to your data.

The reason this works is simple...
On create, md does not write to the data blocks, just reads them to generate the parity blocks, which do get written. If the parity blocks get written to the same place as before, no problem. But if the parity is written to different blocks, some data will be over written. In your case, 1/2 of the data could be lost.

Well, I just had an idea. If you re-create your array but list 1 disk as missing, it can't re-build or re-sync. This will allow you to verify the data. If the data is bad/wrong, try again with different parameters. Once you are sure the data is good, add the last disk, then re-build will start.

Verify you data in a read only mode. If possible.

More info may help.
Run this command on each disk:
mdadm -D /dev/<device>

I don't know if the above will work without a superblock.

Waiting for a second opinion can't hurt! Just to be safe.

Guy

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Aaron
Sent: Sunday, January 09, 2005 8:40 PM
To: [email protected]
Subject: RAID5 and missing superblocks

I have a 3 disk RAID5 device that has had all 3 superblocks zeroed out (don't ask, it's hard enough to even admit it ...). The disks are healthy and the data is there, but is there any way to ever assemble the array again? I have tried the simple approaches with mdadm --assemble --force and raidstart with no luck.

Thanks,
Aaron

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html