Thread (1 message) 1 message, 1 author, 2005-09-27

Re: did I just destroy my data?

From: Neil Brown <hidden>
Date: 2005-09-27 09:51:36

On Tuesday September 27, seb.kuzminsky@gmail.com wrote:
Please, cluebat me.  How do I unhork my raid now?  Is it even possible?
You keep swapping between referring to the devices by number (1,2,3,4)
and named (sda,sdb) and I get confused....

Your best bet it to take the three drives that are mostly like to be
mostly correct, which also certainly excludes the one that resync was
happening on, and recreate the array.
e.g.
   mdadm -C /dev/md0 -l5 -n4 -c ?? /dev/sda /dev/sdb missing /dev/sdd

but make sure you specify the chunksize as a number, and make sure you
get the device order and positioning right.

Then mount the filesystem read-only.
Then - when you have your new drives - copy the data off.

Don't trigger a resync.  Don't do a fsck.  These are likely to hit a
bad block and hurt you.

Good luck.

NeilBrown
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help