Rainer Fuegenstein wrote:
MB> mdadm -Af /dev/md0
MB> If that doesn't work for any reason, do this:
MB> mdadm -Af /dev/md0 /dev/sdb1 /dev/sdd1 /dev/sdc1
MB> You can note the disk order from the output of mdadm -E
The --assemble --force needs correct order of drives to be specified!?!?
I think it autodetects that
(would be EXTREMELY RISKY otherwise...)
Rainer, just after starting the array you can:
mdadm --readonly /dev/md0
so to be sure that no writes ever happen and a resync does not happen.
I suggest to take data out before doing any modifications (such as a
resync), if you can.
note: xfs needs -o ro,nobarrier,norecovery upon mount, in order to be
mounted from a readonly array.
As MB suggests, it's better to keep the the most recently failed drive
out of the array if possible, in order to have more coherent data. Also
true when you are going to add the first spare (that will cause a resync
and regeneration of one disk).
--
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