]> git.ipfire.org Git - thirdparty/mdadm.git/blob - tests/05r6tor0
Create.c: fix uclibc build
[thirdparty/mdadm.git] / tests / 05r6tor0
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 1
8 check raid6
9 testdev $md0 3 19456 512
10 mdadm -G $md0 -l5
11 check wait; sleep 1
12 check raid5
13 testdev $md0 3 19456 512
14 mdadm -G $md0 -l0
15 check wait; sleep 1
16 check raid0
17 testdev $md0 3 19456 512
18 mdadm -G $md0 -l5 --add $dev3 $dev4
19 check wait; sleep 1
20 check raid5
21 check algorithm 2
22 testdev $md0 3 19456 512
23 mdadm -G $md0 -l 6
24 check wait; sleep 1
25 check raid6
26 check algorithm 2
27 testdev $md0 3 19456 512