]> git.ipfire.org Git - thirdparty/mdadm.git/blame - tests/14imsm-r10_r5_4d-takeover-r0_2d
mdadm: improve the dlm locking mechanism for clustered raid
[thirdparty/mdadm.git] / tests / 14imsm-r10_r5_4d-takeover-r0_2d
CommitLineData
3cdcfda4
N
1. tests/env-imsm-template
2
4f8a3e5b
KW
3
4# Two RAID volumes: RAID10 and RAID5 (4 disks) migrate to RAID 0 volume (2 disks)
5# NEGATIVE test
6
7num_disks=4
8device_list="$dev0 $dev1 $dev2 $dev3"
9
10# Before: RAID 10 volume in slot #0, 4 disks, 64k chunk size
11# RAID 5 volume in slot #1, 4 disks, 64k chunk size
12vol0_level=10
13vol0_comp_size=$((5 * 1024))
14vol0_chunk=64
15vol0_num_comps=$(( $num_disks - 2 ))
16vol0_offset=0
17
18# Before: RAID 0 volume, disks, 64k chunk size
19vol1_level=5
20vol1_comp_size=$((5 * 1024))
21vol1_chunk=64
22vol1_num_comps=$(( $num_disks - 1 ))
23vol1_offset=$(( $vol0_comp_size + 2048 ))
24
25# After: RAID 10, 4 disks, 64k chunk size
26vol0_new_level=0
27vol0_new_num_comps=2
28vol0_new_chunk=64
29
30. tests/imsm-grow-template 1 1