Re: mdadm hotadd sync order

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

 



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

[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