]> git.ipfire.org Git - thirdparty/mdadm.git/blame - tests/05r6tor0
Free map to avoid resource leak issues
[thirdparty/mdadm.git] / tests / 05r6tor0
CommitLineData
35698c6e
N
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
f7f6c9f1 7check wait; sleep 1
35698c6e 8check raid6
8010806b 9testdev $md0 3 19456 512
35698c6e 10mdadm -G $md0 -l5
f7f6c9f1 11check wait; sleep 1
35698c6e 12check raid5
8010806b 13testdev $md0 3 19456 512
35698c6e 14mdadm -G $md0 -l0
f7f6c9f1 15check wait; sleep 1
35698c6e 16check raid0
8010806b 17testdev $md0 3 19456 512
35698c6e 18mdadm -G $md0 -l5 --add $dev3 $dev4
f7f6c9f1 19check wait; sleep 1
35698c6e
N
20check raid5
21check algorithm 2
8010806b 22testdev $md0 3 19456 512
35698c6e 23mdadm -G $md0 -l 6
f7f6c9f1 24check wait; sleep 1
35698c6e
N
25check raid6
26check algorithm 2
8010806b 27testdev $md0 3 19456 512