mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: vgchange-usage update for lvmlockd
This commit is contained in:
parent
95cf127134
commit
a40d447a02
@ -11,7 +11,7 @@
|
|||||||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
test_description='Exercise some vgchange diagnostics'
|
test_description='Exercise some vgchange diagnostics'
|
||||||
SKIP_WITH_LVMLOCKD=1
|
|
||||||
SKIP_WITH_LVMPOLLD=1
|
SKIP_WITH_LVMPOLLD=1
|
||||||
|
|
||||||
. lib/inittest
|
. lib/inittest
|
||||||
@ -19,7 +19,7 @@ SKIP_WITH_LVMPOLLD=1
|
|||||||
aux prepare_pvs 4
|
aux prepare_pvs 4
|
||||||
|
|
||||||
pvcreate --metadatacopies 0 "$dev1"
|
pvcreate --metadatacopies 0 "$dev1"
|
||||||
vgcreate -s 4M $vg "$dev1" "$dev2" "$dev3"
|
vgcreate $SHARED -s 4M $vg "$dev1" "$dev2" "$dev3"
|
||||||
|
|
||||||
# cannot change anything in exported vg
|
# cannot change anything in exported vg
|
||||||
vgexport $vg
|
vgexport $vg
|
||||||
@ -97,6 +97,9 @@ fail vgchange -x n $vg
|
|||||||
fail vgextend $vg "$dev4"
|
fail vgextend $vg "$dev4"
|
||||||
vgremove -ff $vg
|
vgremove -ff $vg
|
||||||
|
|
||||||
|
# skip cluster tests with lvmlockd
|
||||||
|
test -n "$LVM_TEST_LVMLOCKD" && exit 0
|
||||||
|
|
||||||
# set cluster bit
|
# set cluster bit
|
||||||
vgcreate -cn $vg "$dev1" "$dev2" "$dev3"
|
vgcreate -cn $vg "$dev1" "$dev2" "$dev3"
|
||||||
# check prompt to change cluster bit without giving explicit vg name
|
# check prompt to change cluster bit without giving explicit vg name
|
||||||
|
Loading…
Reference in New Issue
Block a user