]> git.ipfire.org Git - thirdparty/mdadm.git/blame - tests/07autoassemble
Remove .sock file when removing .pid file for mdmon
[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
11testdev $md1 1 $mdsize0 64
12testdev $md2 1 $mdsize0 64
13testdev $md0 2 $mdsize00 64
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
22testdev $md1 1 $mdsize0 64
23testdev $md0 1 $[mdsize0+mdsize00] 64
bfd8831d 24mdadm -Ss