2 # create a simple mirror
3 # test version0, version1, and no super
4 # test resync and recovery.
6 # It's just a sanity check. This command shouldn't run successfully
7 mdadm -CR $md0 -l 1 -n2 missing missing
10 mdadm -CR $md0 -l 1 -n2 $dev0 $dev1
13 testdev $md0 1 $mdsize1a 64
16 # now with version-0.90 superblock, spare
17 mdadm -CR $md0 -e0.90 --level=raid1 -n3 -x2 $dev0 missing missing $dev1 $dev2
20 testdev $md0 1 $mdsize0 64
23 # now with no superblock
24 mdadm -B $md0 -l mirror -n2 $dev0 $dev1
27 testdev $md0 1 $size 1
30 # again, but with no resync
31 mdadm -B $md0 -l 1 --assume-clean -n2 $dev0 $dev1
34 testdev $md0 1 $size 1