]> git.ipfire.org Git - thirdparty/mdadm.git/blame - tests/07autoassemble
Change default metadata from 0.90 to 1.1
[thirdparty/mdadm.git] / tests / 07autoassemble
CommitLineData
1c203a4b
NB
1
2# create two raid1s, build a raid0 on top, then
3# tear it down and get auto-assemble to rebuild it.
4
5mdadm -CR $md1 -l1 -n2 $dev0 $dev1 --homehost=testing
6mdadm -CR $md2 -l1 -n2 $dev2 $dev3 --homehost=testing
7mdadm -CR $md0 -l0 -n2 $md1 $md2 --homehost=testing
8
9mdadm -Ss
10mdadm -As -c /dev/null --homehost=testing -vvv
7d5c3964
N
11testdev $md1 1 $mdsize1 1
12testdev $md2 1 $mdsize1 1
13testdev $md0 2 $mdsize11 512
1c203a4b
NB
14mdadm -Ss
15
16mdadm --zero-superblock $dev0 $dev1 $dev2 $dev3
17## Now the raid0 uses one stacked and one not
18mdadm -CR $md1 -l1 -n2 $dev0 $dev1 --homehost=testing
19mdadm -CR $md0 -l0 -n2 $md1 $dev2 --homehost=testing
20mdadm -Ss
21mdadm -As -c /dev/null --homehost=testing -vvv
7d5c3964
N
22testdev $md1 1 $mdsize1 1
23testdev $md0 1 $[mdsize1+mdsize11] 512
bfd8831d 24mdadm -Ss