File: 06wrmostly

package info (click to toggle)
mdadm 3.3.2-5%2Bdeb8u2
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 3,512 kB
  • ctags: 3,231
  • sloc: ansic: 41,103; sh: 1,818; makefile: 300
file content (13 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13

# 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