]> git.ipfire.org Git - thirdparty/mdadm.git/blame - tests/02r6grow
Add 'quite' option and tidy up some tests.
[thirdparty/mdadm.git] / tests / 02r6grow
CommitLineData
5e7519fa
NB
1
2set -e
3
4# create a small raid6 array, make it larger. Then make it smaller
5
dab6685f
NB
6mdadm -CR $md0 --level raid6 --chunk=32 --raid-disks 4 --size $[size/2] $dev1 $dev2 $dev3 $dev4
7check wait
8check state UUUU
9testdev $md0 2 $[size/2] 32
5e7519fa 10
dab6685f
NB
11mdadm --grow $md0 --size max
12check resync
13check wait
14testdev $md0 2 $mdsize0 64
5e7519fa 15
dab6685f
NB
16mdadm --grow $md0 --size $[size/2]
17check nosync
18testdev $md0 2 $[size/2] 64
5e7519fa 19
dab6685f 20mdadm -S $md0
5e7519fa
NB
21
22# same again with version 1.1 superblock
dab6685f
NB
23mdadm -CR $md0 --level raid6 --metadata=1.1 --chunk=128 --raid-disks 4 --size $[size/2] $dev1 $dev2 $dev3 $dev4
24check wait
25check state UUUU
26testdev $md0 2 $[size/2] 128
5e7519fa 27
dab6685f
NB
28mdadm --grow $md0 --size max
29check resync
30check wait
31testdev $md0 2 $[size-1] 128
5e7519fa 32
dab6685f
NB
33mdadm --grow $md0 --size $[size/2]
34check nosync
35testdev $md0 2 $[size/2] 128
5e7519fa 36
dab6685f 37mdadm -S $md0