Skip to contentSkip to conversation

emergency recovery

DISCUSSION jeff sacksteder 4 participants 8 messages Apr 10, 2008 – Apr 11, 2008 MD RAID

lore
Share & tools
lore
#0 lore raw

I have a root raid-5 set that has failed 2 disks simultaneously. This is catastrophically bad news. I'm not sure what happened, but the disks spin up and appear to function independently without problem. The superblocks are all out of sync if I look at them with mdadm examine.

It is essential that I not make this worse than it is. Is the information in the wiki current regarding recovery of failed arrays? Are there any other resources I should be looking at?

#1 lore raw
Quoted 1 line · jeff sacksteder

It is essential that I not make this worse than it is. Is the

Well, this in mind the first thing you should do is taking raw images from all the component drives before even thinking about any kind of recovery. Just to make sure you have more than one try when something goes wrong.

regards
Mario

Signature · 2 lines
The social dynamics of the net are a direct consequence of the fact that
nobody has yet developed a Remote Strangulation Protocol.  -- Larry Wall
#2 lore raw
Quoted 5 lines · Mario 'BitKoenig' Holbe
Quoted 2 lines · jeff sacksteder

It is essential that I not make this worse than it is. Is the

Quoted 9 lines

Well, this in mind the first thing you should do is taking raw images from all the component drives before even thinking about any kind of recovery. Just to make sure you have more than one try when something goes wrong.

regards
Mario

I have the same problem. Regarding raw images, I have one drive that has a periodic clicking and the other is fine (but stale by 1 event). What's the best way to make a raw image of a temperamental drive? I have an exact duplicate that I could image to.

thanks. john.

#4 lore raw
In reply to Mario 'BitKoenig' Holbe
Quoted 8 lines · Mario 'BitKoenig' Holbe
Quoted 2 lines · jeff sacksteder

It is essential that I not make this worse than it is. Is the

Well, this in mind the first thing you should do is taking raw images from all the component drives before even thinking about any kind of recovery.

Thanks. I'll try to use a fresh drive with a ddrescue(ed) image on it with the corrupt drive. I may do the same with the stale(evms terminology?) drive.

Do I need to dd image all 6 dives somewhere to be safe?

I want to force assemble 4 good +1stale +1 corrupt to a degraded raid5 array with 5 good +1 corrupt. I could avoid dd imaging the 4 good drives if I could mark these 4 drives read-only. Is that possible or with the forced assembly does it need to write new md meta data to all the drives and therefore need to modify these drives?

Tell me to start a new thread if this doesn't pertain to the OP's
question.

#5 lore raw

I have images of all 5 drives in my set. The set looks like this right now.

/dev/sda1 - active sync
/dev/sdb1 - faulty
/dev/sdc1 - faulty removed
/dev/sdd1 - active sync
/dev/sde1 - active sync

I am lead to believe that the way to proceed would be to force-assemble the array with mdadm. Should I start with 4 drives, or try to do all 5 at once? Which should I leave out?

#6 lore raw

I should also note that I'm doing this from a liveCD and though I have modprobe-ed the appropriate modules, I still don't see the node in /dev for md0.

#7 lore raw
Quoted 3 lines · jeff sacksteder

I should also note that I'm doing this from a liveCD and though I have modprobe-ed the appropriate modules, I still don't see the node in /dev for md0.

You can try doing an assemble with force after backing up whatever you feel you should (or can). Assuming you get an array at that point, you can do an information only file system check (fsck -n) to see what the state of the f/s might be. You can also run the 'check' action to see how unhappy mdadm thinks things are.

By that time you will have information to use or report back to the list for more ideas.

Signature · 3 lines
Bill Davidsen <[email protected]>
 "Woe unto the statesman who makes war without a reason that will still
 be valid when the war is over..." Otto von Bismark