![]() |
Recovering mdadm superblocks
Hello everyone
I have a raid5 mdadm array which has four drives. My new motherboard has inexplicably cleared three of the super blocks, and I am now left with only one intact superblock. fdisk -l Code:
Disk /dev/sda: 20.4 GB, 20490559488 bytesCode:
mdadm: No md superblock detected on /dev/sdbCode:
mdadm: No md superblock detected on /dev/sdcCode:
mdadm: No md superblock detected on /dev/sddmdadm --examine /dev/sde Code:
/dev/sde:I have now moved the raid array back to the original file server, but the superblocks are still missing. I am able to assemble the array with only the one drive, but obviously the array cannot be started. I am also unsure about the order of the drives connected to the old server and I am worried that the drives are no longer connected in the same physical order that they originally were. I am hoping someone with more knowledge than myself can answer a few question: 1. Can this raid array be restored? I am confident that none of the actual data has been impacted, I have only lost my superblocks... 2. If I try to recreate the raid array using mdadm --create --assume-clean and the order of the devices is not the same as the original configuration, will mdadm erase the data on the drives? 3. If I were to buy four more identical drives to the ones that comprise the raid array, dd everything to the new drives, would I be able to test recreating the array on the new drives? 4. Is there anyway to recover data from a mdadm raid array without successfully recreating the array? I am sure the data is still there, I just can't construct the array. thanks in advance for any advice on how to proceed with this problem. |
(1) Looks like this fellow succeeded in fixing this with the -create option, so it's possible
http://episteme.arstechnica.com/eve/...m/697004072931 (2) I think so. (3) I think so, but what a pain! It'd be easier to rebuild the array and restore the data from backup. You do have a backup? (4) Probably not, if I were a forensics guy I'd probably do (3) and alternate the order of drives per (2) until success in (1) |
A damned windows installer ate the superblock on one of my drives. mostlyharmless you sir are a gentleman and a scholar, that link helped me save my RAID!
|
If you can get the UUID from one of the drives with mdadm --examine /dev/sd# then you can just do:
mdadm --assemble /dev/md# --uuid=<UUID> Here's an example where the root standalone hdd died but the arrays were intact and I had to format and reinstall on a new root hdd Code:
# mdadm --examine /dev/sda |
As it happens, I just this moment had a chance to give the UUID assemble a try after getting Meerkat running. Worked just as advertised, hat tip to you sir.
|
| All times are GMT -5. The time now is 05:17 AM. |