]> git.ipfire.org Git - thirdparty/mdadm.git/blob - tests/00raid1
Add 'quite' option and tidy up some tests.
[thirdparty/mdadm.git] / tests / 00raid1
1
2 # create a simple mirror
3 # test version0, version1, and no super
4 # test resync and recovery.
5 set -e
6
7 mdadm -CR $md0 -l 1 -n2 $dev0 $dev1
8 check resync
9 check raid1
10 testdev $md0 1 $mdsize0 1
11 mdadm -S $md0
12
13 # now with verion-1 superblock, spare
14 mdadm -CR $md0 -e1 --level=raid1 -n3 -x2 $dev0 missing missing $dev1 $dev2
15 check recovery
16 check raid1
17 testdev $md0 1 $mdsize1 1
18 mdadm -S $md0
19
20 # now with no superblock
21 mdadm -B $md0 -l mirror -n2 $dev0 $dev1
22 check resync
23 check raid1
24 testdev $md0 1 $size 1
25 mdadm -S $md0
26
27 # again, but with no resync
28 mdadm -B $md0 -l 1 --assume-clean -n2 $dev0 $dev1
29 check raid1
30 check nosync
31 testdev $md0 1 $size 1
32 mdadm -S $md0
33
34
35 exit 0