mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: process-each-duplicate-pvs update for lvmlockd
This commit is contained in:
parent
3759a1f62b
commit
abba06fb3b
@ -8,7 +8,6 @@
|
||||
|
||||
test_description='Test duplicate PVs'
|
||||
|
||||
SKIP_WITH_LVMLOCKD=1
|
||||
SKIP_WITH_LVMPOLLD=1
|
||||
SKIP_WITH_CLVMD=1
|
||||
|
||||
@ -25,8 +24,8 @@ aux lvmconf 'devices/allow_changes_with_duplicate_pvs = 0'
|
||||
|
||||
pvcreate "$dev1"
|
||||
pvcreate "$dev2"
|
||||
vgcreate $vg1 "$dev1"
|
||||
vgcreate $vg2 "$dev2"
|
||||
vgcreate $SHARED $vg1 "$dev1"
|
||||
vgcreate $SHARED $vg2 "$dev2"
|
||||
pvresize --setphysicalvolumesize 8m -y "$dev2"
|
||||
lvcreate -an -l1 -n $lv1 $vg1
|
||||
|
||||
@ -378,7 +377,16 @@ dd if=/dev/zero of="$dev3" bs=1M oflag=direct,sync || true
|
||||
dd if=/dev/zero of="$dev4" bs=1M oflag=direct,sync || true
|
||||
pvscan --cache
|
||||
|
||||
vgcreate "$vg2" "$dev3" "$dev4"
|
||||
# The previous steps prevent us from nicely cleaning up
|
||||
# the vg lockspace in lvmlockd, so just restart it;
|
||||
# what follows could also just be split into a separate test.
|
||||
if test -n "$LVM_TEST_LVMLOCKD_TEST" ; then
|
||||
killall -9 lvmlockd
|
||||
sleep 2
|
||||
aux prepare_lvmlockd
|
||||
fi
|
||||
|
||||
vgcreate $SHARED "$vg2" "$dev3" "$dev4"
|
||||
lvcreate -l1 -n $lv1 $vg2 "$dev3"
|
||||
lvcreate -l1 -n $lv2 $vg2 "$dev4"
|
||||
|
||||
@ -457,7 +465,7 @@ pvscan --cache
|
||||
# Reverse devs in the previous in case dev3/dev4 would be
|
||||
# preferred even without an active LV using them.
|
||||
|
||||
vgcreate $vg2 "$dev5" "$dev6"
|
||||
vgcreate $SHARED $vg2 "$dev5" "$dev6"
|
||||
lvcreate -l1 -n $lv1 $vg2 "$dev5"
|
||||
lvcreate -l1 -n $lv2 $vg2 "$dev6"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user