4f8a3e5baf
Patch provides set of tests for On-line Capacity Expansion, takeover, migrations operations for imsm metadata type. Tests are grouped by operation type: 12 - On-line Capacity Expansion on one volume 13 - On-line Capacity Expansion on two volumes 14 - Negative tests for takeover, migrations 15 - Chunk size migrations 16 - raid0 -> raid5, raid5 -> raid0 migrations 18 - takeover operations To run particular test group, following command should be executed: (from mdadm's source code root directory) ./test <group number> Example: To run On-line Capacity Expansion on one volume tests: ./test 12 Tests execution results: - In case of test pass, "succeeded" word is printed on console - If test is failed, "FAILED" word is printed on console and logs are stored in <mdadm-root-dir>/tests/log/ directory Signed-off-by: Artur Wojcik <artur.wojcik@intel.com> Signed-off-by: Krzysztof Wojcik <krzysztof.wojcik@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
22 lines
612 B
Plaintext
22 lines
612 B
Plaintext
# Create RAID 0 from a single disk.
|
|
# POSITIVE test
|
|
|
|
vol0_num_comps=1
|
|
vol0_comp_size=$((10 * 1024))
|
|
|
|
# Create container
|
|
mdadm --create --run $container --auto=md --metadata=imsm --force --raid-disks=$vol0_num_comps $dev0
|
|
wait
|
|
imsm_check container $vol0_num_comps
|
|
|
|
# Create RAID 0 volume
|
|
mdadm --create --run $member0 --auto=md --level=0 --size=$vol0_comp_size --chunk=64 --force --raid-disks=$vol0_num_comps $dev0
|
|
wait
|
|
check wait
|
|
|
|
# Test the member
|
|
imsm_check member $member0 $vol0_num_comps 0 $vol0_comp_size $((vol0_num_comps * vol0_comp_size)) 0 64
|
|
testdev $member0 $vol0_num_comps $vol0_comp_size 64
|
|
|
|
exit 0
|