Debian Codegraph @

tests/05r6tor0

raw
1 set -x -e
2
3 # reshape a RAID6 to RAID5 and then RAID0.
4 # then reshape back up to RAID5 and RAID5
5
6 mdadm -CR $md0 -l6 -n5 $dev0 $dev1 $dev2 $dev3 $dev4
7 check wait; sleep 2
8 check raid6
9 testdev $md0 3 19456 512
10 mdadm -G $md0 -l5
11 check wait; sleep 2
12 check raid5
13 testdev $md0 3 19456 512
14 mdadm -G $md0 -l0
15 check wait; sleep 2
16 while ps auxf | grep "mdadm -G" | grep -v grep
17 do
18 sleep 2
19 done
20 check raid0
21 testdev $md0 3 19456 512
22 mdadm -G $md0 -l5 --add $dev3 $dev4
23 check wait; sleep 2
24 check raid5
25 check algorithm 2
26 testdev $md0 3 19456 512
27 mdadm -G $md0 -l 6
28 check wait; sleep 2
29 check raid6
30 check algorithm 2
31 testdev $md0 3 19456 512