Re: Problem recovering a failed RIAD5 array with 4-drives.

From: Neil Brown
Date: Thu Jul 12 2007 - 18:48:29 EST


On Thursday July 12, LinuxKernel@xxxxxxxxxxxxxx wrote:
>
> []#
> mdadm --create --verbose /dev/md0 --assume-clean --level=raid5 --raid-devices=4 --spare-devices=0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
>
snip
>
> Number Major Minor RaidDevice State
> 0 8 17 0 active sync /dev/sdb1
> 1 8 33 1 active sync /dev/sdc1
> 2 8 1 2 active sync /dev/sda1
> 3 8 49 3 active sync /dev/sdd1

Something looks very wrong here. You listed the devices to --create
in one order:
a b c d
but that appear in the array in a different order
b c a d

Did you cut/paste the command line into the mail, or did you retype
it? If you retyped it, could you have got it wrong?

You need the order that --detail shows to match the order of the
original array....

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/