]> git.ipfire.org Git - thirdparty/mdadm.git/blob - tests/07autoassemble
imsm: enforce "all member disks must be members of all arrays"
[thirdparty/mdadm.git] / tests / 07autoassemble
1
2 # create two raid1s, build a raid0 on top, then
3 # tear it down and get auto-assemble to rebuild it.
4
5 mdadm -CR $md1 -l1 -n2 $dev0 $dev1 --homehost=testing
6 mdadm -CR $md2 -l1 -n2 $dev2 $dev3 --homehost=testing
7 mdadm -CR $md0 -l0 -n2 $md1 $md2 --homehost=testing
8
9 mdadm -Ss
10 mdadm -As -c /dev/null --homehost=testing -vvv
11 testdev $md1 1 $mdsize0 64
12 testdev $md2 1 $mdsize0 64
13 testdev $md0 2 $mdsize00 64
14 mdadm -Ss
15
16 mdadm --zero-superblock $dev0 $dev1 $dev2 $dev3
17 ## Now the raid0 uses one stacked and one not
18 mdadm -CR $md1 -l1 -n2 $dev0 $dev1 --homehost=testing
19 mdadm -CR $md0 -l0 -n2 $md1 $dev2 --homehost=testing
20 mdadm -Ss
21 mdadm -As -c /dev/null --homehost=testing -vvv
22 testdev $md1 1 $mdsize0 64
23 testdev $md0 1 $[mdsize0+mdsize00] 64
24 mdadm -Ss