mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-05 13:18:20 +03:00
tests: reduce space requirements
Test well runs on smaller test machines.
This commit is contained in:
parent
8689b4ed82
commit
50b50039d9
@ -17,9 +17,6 @@ SKIP_WITH_LVMPOLLD=1
|
|||||||
|
|
||||||
# Test reshaping under io load
|
# Test reshaping under io load
|
||||||
|
|
||||||
# FIXME: This test requires 3GB in /dev/shm!
|
|
||||||
test $(aux total_mem) -gt $((4096*1024)) || skip
|
|
||||||
|
|
||||||
which mkfs.ext4 || skip
|
which mkfs.ext4 || skip
|
||||||
aux have_raid 1 13 2 || skip
|
aux have_raid 1 13 2 || skip
|
||||||
|
|
||||||
@ -40,7 +37,7 @@ vgcreate $SHARED -s 1M "$vg" "${DEVICES[@]}"
|
|||||||
trap 'cleanup_mounted_and_teardown' EXIT
|
trap 'cleanup_mounted_and_teardown' EXIT
|
||||||
|
|
||||||
# Create 13-way striped raid5 (14 legs total)
|
# Create 13-way striped raid5 (14 legs total)
|
||||||
lvcreate --yes --type raid5_ls --stripes 13 -L190M -n$lv1 $vg
|
lvcreate --yes --type raid5_ls --stripes 13 -L4 -n$lv1 $vg
|
||||||
check lv_first_seg_field $vg/$lv1 segtype "raid5_ls"
|
check lv_first_seg_field $vg/$lv1 segtype "raid5_ls"
|
||||||
check lv_first_seg_field $vg/$lv1 data_stripes 13
|
check lv_first_seg_field $vg/$lv1 data_stripes 13
|
||||||
check lv_first_seg_field $vg/$lv1 stripes 14
|
check lv_first_seg_field $vg/$lv1 stripes 14
|
||||||
|
@ -17,9 +17,6 @@ SKIP_WITH_LVMPOLLD=1
|
|||||||
|
|
||||||
# Test reshaping under io load
|
# Test reshaping under io load
|
||||||
|
|
||||||
# FIXME: This test requires 3GB in /dev/shm!
|
|
||||||
test $(aux total_mem) -gt $((4096*1024)) || skip
|
|
||||||
|
|
||||||
which mkfs.ext4 || skip
|
which mkfs.ext4 || skip
|
||||||
aux have_raid 1 13 2 || skip
|
aux have_raid 1 13 2 || skip
|
||||||
|
|
||||||
@ -40,7 +37,7 @@ vgcreate $SHARED -s 1M "$vg" "${DEVICES[@]}"
|
|||||||
trap 'cleanup_mounted_and_teardown' EXIT
|
trap 'cleanup_mounted_and_teardown' EXIT
|
||||||
|
|
||||||
# Create 10-way striped raid5 (11 legs total)
|
# Create 10-way striped raid5 (11 legs total)
|
||||||
lvcreate --yes --type raid5_ls --stripesize 64K --stripes 10 -L200M -n$lv1 $vg
|
lvcreate --yes --type raid5_ls --stripesize 64K --stripes 10 -L4 -n$lv1 $vg
|
||||||
check lv_first_seg_field $vg/$lv1 segtype "raid5_ls"
|
check lv_first_seg_field $vg/$lv1 segtype "raid5_ls"
|
||||||
check lv_first_seg_field $vg/$lv1 stripesize "64.00k"
|
check lv_first_seg_field $vg/$lv1 stripesize "64.00k"
|
||||||
check lv_first_seg_field $vg/$lv1 data_stripes 10
|
check lv_first_seg_field $vg/$lv1 data_stripes 10
|
||||||
|
@ -43,7 +43,7 @@ vgcreate $SHARED -s 1M "$vg" "${DEVICES[@]}"
|
|||||||
trap 'cleanup_mounted_and_teardown' EXIT
|
trap 'cleanup_mounted_and_teardown' EXIT
|
||||||
|
|
||||||
# Create 10-way striped raid5 (11 legs total)
|
# Create 10-way striped raid5 (11 legs total)
|
||||||
lvcreate --yes --type raid5_ls --stripesize 64K --stripes 10 -L64M -n$lv1 $vg
|
lvcreate --yes --type raid5_ls --stripesize 64K --stripes 10 -L4 -n$lv1 $vg
|
||||||
check lv_first_seg_field $vg/$lv1 segtype "raid5_ls"
|
check lv_first_seg_field $vg/$lv1 segtype "raid5_ls"
|
||||||
check lv_first_seg_field $vg/$lv1 stripesize "64.00k"
|
check lv_first_seg_field $vg/$lv1 stripesize "64.00k"
|
||||||
check lv_first_seg_field $vg/$lv1 data_stripes 10
|
check lv_first_seg_field $vg/$lv1 data_stripes 10
|
||||||
|
@ -17,9 +17,6 @@ SKIP_WITH_LVMPOLLD=1
|
|||||||
|
|
||||||
# Test reshaping under io load
|
# Test reshaping under io load
|
||||||
|
|
||||||
# FIXME: This test requires 3GB in /dev/shm!
|
|
||||||
test $(aux total_mem) -gt $((4096*1024)) || skip
|
|
||||||
|
|
||||||
which mkfs.ext4 || skip
|
which mkfs.ext4 || skip
|
||||||
aux have_raid 1 13 2 || skip
|
aux have_raid 1 13 2 || skip
|
||||||
|
|
||||||
@ -40,7 +37,7 @@ vgcreate $SHARED -s 1M "$vg" "${DEVICES[@]}"
|
|||||||
trap 'cleanup_mounted_and_teardown' EXIT
|
trap 'cleanup_mounted_and_teardown' EXIT
|
||||||
|
|
||||||
# Create 10-way striped raid5 (11 legs total)
|
# Create 10-way striped raid5 (11 legs total)
|
||||||
lvcreate --yes --type raid5_ls --stripesize 64K --stripes 10 -L200M -n$lv1 $vg
|
lvcreate --yes --type raid5_ls --stripesize 64K --stripes 10 -L4 -n$lv1 $vg
|
||||||
check lv_first_seg_field $vg/$lv1 segtype "raid5_ls"
|
check lv_first_seg_field $vg/$lv1 segtype "raid5_ls"
|
||||||
check lv_first_seg_field $vg/$lv1 stripesize "64.00k"
|
check lv_first_seg_field $vg/$lv1 stripesize "64.00k"
|
||||||
check lv_first_seg_field $vg/$lv1 data_stripes 10
|
check lv_first_seg_field $vg/$lv1 data_stripes 10
|
||||||
|
Loading…
Reference in New Issue
Block a user