mdadm hotadd sync order

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

 



Hi,

how does mdadm determine which device to synchronize to which?

For example, I have two partitions A and B which I would like to be setup as a RAID-1 array.

suppose A contains the data I want to have, and B contains rubbish. Obviously, I want B to be synched to A, and not the other way round.

Suppose I do this:

mdadm --create /dev/md0 --level=1 --raid-devices=2 A B

Will B then automatically sync to A? I'm almost sure I just encountered a counterexample.

Or what would happen with the following?
mdadm --create /dev/md0 --level=1 --raid-devices=2 missing B
mdadm -a /dev/md0 A

will A then sync to B because it was added last, or B to A because A fills the "missing" spot, which was specified before B?

So the question is: What criteria does mdadm use to determine which device to synchronize to which?

Thanks in advance,

Hans
-
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