mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: use mirror throttling
With small mirrors its better to throttle speed of mirror in dm-mirror.
This commit is contained in:
parent
2dd43a7314
commit
d6bc11bf72
@ -20,6 +20,7 @@ SKIP_WITH_CLVMD=1
|
||||
|
||||
. lib/inittest
|
||||
|
||||
aux throttle_dm_mirror 50 || :
|
||||
aux prepare_pvs 4 30
|
||||
|
||||
vgcreate -s 128k $vg "$dev1"
|
||||
@ -34,9 +35,9 @@ test_pvmove_resume() {
|
||||
lvcreate -an -Zn -l30 -n $lv1 $vg
|
||||
lvcreate -an -Zn -l30 -n $lv1 $vg1
|
||||
|
||||
aux delay_dev "$dev3" 0 1000 "$(get first_extent_sector "$dev3"):"
|
||||
aux delay_dev "$dev3" 0 200 "$(get first_extent_sector "$dev3"):"
|
||||
test -e HAVE_DM_DELAY || { lvremove -f $vg $vg1; return 0; }
|
||||
aux delay_dev "$dev4" 0 1000 "$(get first_extent_sector "$dev4"):"
|
||||
aux delay_dev "$dev4" 0 200 "$(get first_extent_sector "$dev4"):"
|
||||
|
||||
pvmove -i5 "$dev1" &
|
||||
PVMOVE=$!
|
||||
|
@ -20,6 +20,7 @@ SKIP_WITH_LVMLOCKD=1
|
||||
. lib/inittest
|
||||
|
||||
aux prepare_pvs 5 30
|
||||
aux throttle_dm_mirror 50 || :
|
||||
|
||||
vgcreate -s 128k $vg "$dev1" "$dev2" "$dev3"
|
||||
pvcreate --metadatacopies 0 "$dev4" "$dev5"
|
||||
@ -33,9 +34,9 @@ test_pvmove_resume() {
|
||||
# next LV on same VG and differetnt PV (we want to test 2 pvmoves per VG)
|
||||
lvcreate -an -Zn -l30 -n $lv2 $vg "$dev3"
|
||||
|
||||
aux delay_dev "$dev4" 0 500 "$(get first_extent_sector "$dev4"):"
|
||||
aux delay_dev "$dev4" 0 200 "$(get first_extent_sector "$dev4"):"
|
||||
test -e HAVE_DM_DELAY || { lvremove -f $vg; return 0; }
|
||||
aux delay_dev "$dev5" 0 500 "$(get first_extent_sector "$dev5"):"
|
||||
aux delay_dev "$dev5" 0 200 "$(get first_extent_sector "$dev5"):"
|
||||
|
||||
pvmove -i5 "$dev1" "$dev4" &
|
||||
PVMOVE=$!
|
||||
|
Loading…
Reference in New Issue
Block a user