2 # create a simple mirror
3 # test version0, version1, and no super
4 # test resync and recovery.
7 mdadm -CR $md0 -l 1 -n2 $dev0 $dev1
10 testdev $md0 1 $mdsize0 1
13 # now with verion-1 superblock, spare
14 mdadm -CR $md0 -e1 --level=raid1 -n3 -x2 $dev0 missing missing $dev1 $dev2
17 testdev $md0 1 $mdsize1 1
20 # now with no superblock
21 mdadm -B $md0 -l mirror -n2 $dev0 $dev1
24 testdev $md0 1 $size 1
27 # again, but with no resync
28 mdadm -B $md0 -l 1 --assume-clean -n2 $dev0 $dev1
31 testdev $md0 1 $size 1