4 # create a small raid6 array, make it larger. Then make it smaller
6 mdadm -CR $md0 --level raid6 --chunk=32 --raid-disks 4 --size $[size/2] $dev1 $dev2 $dev3 $dev4
9 testdev $md0 2 $[size/2] 32
11 mdadm --grow $md0 --size max
14 testdev $md0 2 $mdsize0 64
16 mdadm --grow $md0 --size $[size/2]
18 testdev $md0 2 $[size/2] 64
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
26 testdev $md0 2 $[size/2] 128
28 mdadm --grow $md0 --size max
31 testdev $md0 2 $[size-1] 128
33 mdadm --grow $md0 --size $[size/2]
35 testdev $md0 2 $[size/2] 128