]> git.ipfire.org Git - thirdparty/mdadm.git/blame - tests/06wrmostly
--wait or -W will wait for resync activity to finish on the given devices.
[thirdparty/mdadm.git] / tests / 06wrmostly
CommitLineData
dfd4d8ee
NB
1
2# create a raid1 array with a wrmostly device
3
dab6685f
NB
4mdadm -CR $md0 -l1 -n3 $dev0 $dev1 --write-mostly $dev2
5testdev $md0 1 $mdsize0 64
dfd4d8ee
NB
6
7# unfortunately, we cannot measure if any read requests are going to $dev2
8
dab6685f 9mdadm -S $md0
dfd4d8ee 10
dab6685f
NB
11mdadm -CR $md0 -l1 -n3 --write-behind --bitmap=internal $dev0 $dev1 --write-mostly $dev2
12testdev $md0 1 $mdsize0 64
13mdadm -S $md0
dfd4d8ee 14