On 2005-05-10T15:40:03, SainTiss <saintiss@xxxxxxx> wrote: > 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 Create a degraded array with one missing disk with the good data; and then add the one which you want to be overwritten. > 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? B to A. Sincerely, Lars Marowsky-Brée <lmb@xxxxxxx> -- High Availability & Clustering SUSE Labs, Research and Development SUSE LINUX Products GmbH - A Novell Business -- Charles Darwin "Ignorance more frequently begets confidence than does knowledge" - 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