summaryrefslogtreecommitdiffstats
path: root/tests/18imsm-r0_2d-takeover-r10_4d
blob: 0e77e5da61d00c3b4d9ee798a6dd9f57002c9cd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
. tests/env-imsm-template

# RAID 0 volume, 2 disks change to RAID 10 volume, 4 disks
# POSITIVE test

num_disks=2
device_list="$dev0 $dev1"
spare_list="$dev2 $dev3"

# Before: RAID 0 volume, 2 disks, 256k chunk size
vol0_level=0
vol0_comp_size=$((5 * 1024))
vol0_chunk=128
vol0_num_comps=$num_disks
vol0_offset=0

# After: RAID 10 volume, 4 disks, 256k chunk size
vol0_new_level=10
vol0_new_num_comps=$vol0_num_comps
vol0_new_chunk=128

. tests/imsm-grow-template 0 1