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