Thread (5 messages) flat view 5 messages, 4 authors, 2005-02-23

Re: Raid5 with 2 bad drives

From: Mike Hardy <hidden>
Date: 2005-02-23 06:23:39

I posted a raid5 parity calculator implemented in perl a while back (a 
couple weeks?) that is capable of taking your disk geometry, the RAID 
LBA you're interested in, and finding the disk sector it belongs to.

I honestly don't remember if it can go the other way, but I'm not sure 
why it couldn't? Its possible that bad blocks may simply be in the 
parity chunk of the stripe too. Once you've got the RAID LBA you can use 
the methods in the BadBlockHowto to find the file

Either way, the math isn't too hard, and the script isn't very 
complicated, but doing that math is the only way I know of to relate the 
bits of data you've got to the file.

-Mike

Matthias Julius wrote:
Gordon Henderson [off-list ref] writes:

quoted
Try something like:

 mdadm --assemble /dev/mdY /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 \
--run --force

--force did the trick.  I could have thought of that one myself.
Thanks.

As for not hitting the bad blocks again: Is there a way to find out to
which file they belong with ext3/xfs on LVM on RAID5?  That would be
helpfull.

Matthias

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help