]> git.ipfire.org Git - thirdparty/mdadm.git/blame_incremental - tests/05r6tor0
mdadm/test: Add one test case for raid5 reshape
[thirdparty/mdadm.git] / tests / 05r6tor0
... / ...
CommitLineData
1set -x -e
2
3# reshape a RAID6 to RAID5 and then RAID0.
4# then reshape back up to RAID5 and RAID5
5
6mdadm -CR $md0 -l6 -n5 $dev0 $dev1 $dev2 $dev3 $dev4
7check wait; sleep 1
8check raid6
9testdev $md0 3 19456 512
10mdadm -G $md0 -l5
11check wait; sleep 1
12check raid5
13testdev $md0 3 19456 512
14mdadm -G $md0 -l0
15check wait; sleep 1
16check raid0
17testdev $md0 3 19456 512
18mdadm -G $md0 -l5 --add $dev3 $dev4
19check wait; sleep 1
20check raid5
21check algorithm 2
22testdev $md0 3 19456 512
23mdadm -G $md0 -l 6
24check wait; sleep 1
25check raid6
26check algorithm 2
27testdev $md0 3 19456 512