1
0
Fork 0
mdadm/tests/06wrmostly
Daniel Baumann 4fd4995b67
Adding upstream version 4.2.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-14 05:52:19 +01:00

13 lines
372 B
Text

# create a raid1 array with a wrmostly device
mdadm -CR $md0 -l1 -n3 $dev0 $dev1 --write-mostly $dev2
testdev $md0 1 $mdsize1a 64
# unfortunately, we cannot measure if any read requests are going to $dev2
mdadm -S $md0
mdadm -CR $md0 -l1 -n3 --write-behind --bitmap=internal --bitmap-chunk=4 $dev0 $dev1 --write-mostly $dev2
testdev $md0 1 $mdsize1a 64
mdadm -S $md0