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