]>
Commit | Line | Data |
---|---|---|
5e7519fa NB |
1 | |
2 | set -e | |
3 | ||
4 | # create a small raid6 array, make it larger. Then make it smaller | |
5 | ||
dab6685f NB |
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 | |
5e7519fa | 10 | |
dab6685f NB |
11 | mdadm --grow $md0 --size max |
12 | check resync | |
13 | check wait | |
14 | testdev $md0 2 $mdsize0 64 | |
5e7519fa | 15 | |
dab6685f NB |
16 | mdadm --grow $md0 --size $[size/2] |
17 | check nosync | |
18 | testdev $md0 2 $[size/2] 64 | |
5e7519fa | 19 | |
dab6685f | 20 | mdadm -S $md0 |
5e7519fa NB |
21 | |
22 | # same again with version 1.1 superblock | |
dab6685f NB |
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 | |
5e7519fa | 27 | |
dab6685f NB |
28 | mdadm --grow $md0 --size max |
29 | check resync | |
30 | check wait | |
31 | testdev $md0 2 $[size-1] 128 | |
5e7519fa | 32 | |
dab6685f NB |
33 | mdadm --grow $md0 --size $[size/2] |
34 | check nosync | |
35 | testdev $md0 2 $[size/2] 128 | |
5e7519fa | 36 | |
dab6685f | 37 | mdadm -S $md0 |