Re: RAID 5 re-add of removed drive? (failed drive replacement)

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

 




AFAIK, the only solution at this stage is to recreate the array.

You need to use the "--assume-clean" flag (or replace one of the drives with "missing"), along with _exactly_ the same parameters & drive order as when you originally created the array (you should be able to get most of this from mdadm -D). This will rewrite the RAID metadata, but leave
the filesystem untouched.

A glimpse of hope. Thank you! Didn't know about this --assume-clean flag. So just to double-check:

The array to create would be:
disc 0: sdi1 <- is now disc 7 and SPARE due to failed replacement operation
disc 1: sdl1
disc 2: sdh1
disc 3: sdj1
disc 4: sdk1
disc 5: sdg1
disc 6: sda1 <- is now faulty removed

So I just create an incomplete array without sda1 in the same order which would be:

mdadm --create /dev/md0 --assume-clean --level=5 --chunk=64 --raid- devices=7 /dev/sdi1 /dev/sdl1 /dev/sdh1 /dev/sdj1 /dev/sdk1 /dev/sdg1

I'm not sure about the drive oder in the mdadm command: is it correct to assume <drive 0> <drive 1> <drive 2> in order or is it mirrored like <drive 2> <drive 1> <drive 0> ? I also hope the command doesn't trigger any recovery actions or filesystem changes..
--
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