]>
Commit | Line | Data |
---|---|---|
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 | ||
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 | |
7d5c3964 N |
11 | testdev $md1 1 $mdsize1 1 |
12 | testdev $md2 1 $mdsize1 1 | |
13 | testdev $md0 2 $mdsize11 512 | |
1c203a4b NB |
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 | |
7d5c3964 N |
22 | testdev $md1 1 $mdsize1 1 |
23 | testdev $md0 1 $[mdsize1+mdsize11] 512 | |
bfd8831d | 24 | mdadm -Ss |