Re: did I just destroy my data?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday September 27, seb.kuzminsky@xxxxxxxxx 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
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux