Skip to contentSkip to conversation

mdadm question

DISCUSSION Andreas John 2 participants 2 messages Aug 20, 2004 MD RAID

lore
Share & tools
lore
#0 lore raw

Hello!

I have a question about mdadm usage. One of me customers killed a raid5+1 by accidently removing an ide bus with two disk on it (dont't ask, I know ;-))

Assuming that the data is on the disks I'm looking for a way to convince
linux to mark the superblocks (of the missing disk only?) as "not
failed" so that the raid comes up again. mdadm seems to have what I am looking for, like "madm --assemble --update=? --force" can write the superblocks freshly without destorying the data on it? Do I have to use --update=super‐minor or --update=super‐minor on ia32? Or is there an recovery tool for such a case (i.e. mddump?)?

If this does not work, can anyone point me out where I can find an overview about the structure of a superblock, so that I may fix the problem via hex-editor (my skills point back to C64 times ... :-)) I've seen the source but some kind of overview/scheme would be nice.

I'm scared. :)

Rgds,
Andreas

-
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

#1 lore raw
Quoted 6 lines · On Friday August 20, [email protected] wrote:

Hello!

I have a question about mdadm usage. One of me customers killed a raid5+1 by accidently removing an ide bus with two disk on it (dont't ask, I know ;-))

Quoted 7 lines

Assuming that the data is on the disks I'm looking for a way to convince
linux to mark the superblocks (of the missing disk only?) as "not
failed" so that the raid comes up again. mdadm seems to have what I am looking for, like "madm --assemble --update=? --force" can write the superblocks freshly without destorying the data on it? Do I have to use --update=super$,1rp(Bminor or --update=super$,1rp(Bminor on ia32? Or is there an recovery tool for such a case (i.e. mddump?)?

You don't need any --update. Just --assemble --force. mdadm will then pick the best available drives to assemble a degraded array (one drive missing). If the result seems good (e.g. fsck reports ok), then you can add the other drive (--add) and it will be reconstructed with consistent data.

NeilBrown

Quoted 11 lines

If this does not work, can anyone point me out where I can find an overview about the structure of a superblock, so that I may fix the problem via hex-editor (my skills point back to C64 times ... :-)) I've seen the source but some kind of overview/scheme would be nice.

I'm scared. :)

Rgds,
Andreas