mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: smaller delay and lowered version
See if this will still work. Some boxes are delayed too much. Also try to check for raid extend progress from version 1.13.
This commit is contained in:
parent
49292bccc3
commit
52d3c4de6e
@ -16,8 +16,8 @@ SKIP_WITH_LVMPOLLD=1
|
||||
. lib/inittest
|
||||
|
||||
aux have_raid 1 3 0 || skip
|
||||
v1_15_0=0
|
||||
aux have_raid 1 15 0 && v1_15_0=1
|
||||
PROGRESS=0
|
||||
aux have_raid 1 13 0 && PROGRESS=1
|
||||
|
||||
# Use smallest regionsize to save VG space
|
||||
regionsize=$(getconf PAGESIZE) # in bytes
|
||||
@ -42,7 +42,7 @@ lvcreate -l1 $vg "$dev2"
|
||||
|
||||
sector=$(( $(get first_extent_sector "$dev2") + 2048 ))
|
||||
aux zero_dev "$dev1" "${sector}:"
|
||||
aux delayzero_dev "$dev2" 0 30 "${sector}:"
|
||||
aux delayzero_dev "$dev2" 0 10 "${sector}:"
|
||||
|
||||
# Create raid1 LV consuming 1 MD bitmap page
|
||||
lvcreate --yes --type raid1 --regionsize ${regionsize}K -L$(($lvsz-$lvext))M -n $lv1 $vg
|
||||
@ -56,12 +56,12 @@ check lv_field $vg/$lv1 sync_percent "100.00"
|
||||
check lv_field $vg/$lv1 region_size "4.00k"
|
||||
|
||||
# to slow down extension - slowdown readings
|
||||
aux delayzero_dev "$dev1" 100 0 "${sector}:"
|
||||
aux delayzero_dev "$dev2" 0 100 "${sector}:"
|
||||
aux delayzero_dev "$dev1" 50 0 "${sector}:"
|
||||
aux delayzero_dev "$dev2" 0 50 "${sector}:"
|
||||
|
||||
# Extend so that full MD bitmap page is consumed
|
||||
lvextend -y -L+${lvext}M $vg/$lv1
|
||||
if [ $v1_15_0 -eq 1 ]
|
||||
if [ $PROGRESS -eq 1 ]
|
||||
then
|
||||
not check lv_field $vg/$lv1 sync_percent "100.00"
|
||||
check lv_field $vg/$lv1 size "$(($lvsz)).00m" $vg/$lv1
|
||||
@ -71,7 +71,7 @@ check lv_field $vg/$lv1 sync_percent "100.00"
|
||||
|
||||
# Extend so that another MD bitmap page is allocated
|
||||
lvextend -y -L+${lvext}M $vg/$lv1
|
||||
if [ $v1_15_0 -eq 1 ]
|
||||
if [ $PROGRESS -eq 1 ]
|
||||
then
|
||||
not check lv_field $vg/$lv1 sync_percent "100.00"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user