On 14.07.2010 12:04, Tomasz Chmielewski wrote:
In which direction will the devices be synchronized, if I create a new RAID-1 array with an external bitmap?
Assuming I use this command line:
mdadm --create /dev/md11 --level=1 --bitmap=/mnt/src/bitmap --raid-devices 2 /dev/storage/origin /dev/esata/copy
Should I expect /dev/storage/origin being written to /dev/esata/copy?
Or perhaps, /dev/esata/copy will be written onto /dev/storage/origin?
I couldn't find it explained in the fine manual, so perhaps creating an array with a missing device:
mdadm --create /dev/md11 --level=1 --bitmap=/mnt/src/bitmap --raid-devices 2 /dev/storage/origin missing
and adding a second device later will be safer...
Looks like the first device in the command line will be synced onto the
second.
However, I'd like someone to confirm this.
And that I should use "build" to sync the devices, otherwise, I'll write
a superblock on each of them ;)
--
Tomasz Chmielewski
http://wpkg.org
--
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