summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2019-02-20 13:31:30 -0600
committerDavid Teigland <teigland@redhat.com>2019-02-20 13:52:35 -0600
commitfedeab28c3096b5afb3fdc397fe8d18455247756 (patch)
tree0470ae5a51d5383e1255f332fa624b013e1e3999
parent7be6791e707da333e56aea3cc50c079ab6207bad (diff)
downloadlvm2-fedeab28c3096b5afb3fdc397fe8d18455247756.tar.gz
tests: set scan_lvs=1 in tests that stack PVs on LVs
-rw-r--r--test/shell/discards-thin.sh2
-rw-r--r--test/shell/lvconvert-thin.sh2
-rw-r--r--test/shell/lvcreate-large-raid10.sh1
-rw-r--r--test/shell/lvcreate-large.sh2
-rw-r--r--test/shell/pvcreate-restore.sh2
-rw-r--r--test/shell/pvremove-thin.sh2
-rw-r--r--test/shell/snapshot-remove-dmsetup.sh2
-rw-r--r--test/shell/snapshot-usage-exa.sh2
-rw-r--r--test/shell/snapshot-usage.sh2
-rw-r--r--test/shell/vgsplit-stacked.sh2
10 files changed, 19 insertions, 0 deletions
diff --git a/test/shell/discards-thin.sh b/test/shell/discards-thin.sh
index f27d4c3d1..3564a8793 100644
--- a/test/shell/discards-thin.sh
+++ b/test/shell/discards-thin.sh
@@ -25,6 +25,8 @@ export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false}
#
aux have_thin 1 1 0 || skip
+aux lvmconf 'devices/scan_lvs = 1'
+
aux prepare_vg 2 64
get_devs
diff --git a/test/shell/lvconvert-thin.sh b/test/shell/lvconvert-thin.sh
index 1f8d2edb9..731c45bd5 100644
--- a/test/shell/lvconvert-thin.sh
+++ b/test/shell/lvconvert-thin.sh
@@ -17,6 +17,8 @@ export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false}
. lib/inittest
+aux lvmconf 'devices/scan_lvs = 1'
+
prepare_lvs() {
lvremove -f $vg
lvcreate -L10M -n $lv1 $vg
diff --git a/test/shell/lvcreate-large-raid10.sh b/test/shell/lvcreate-large-raid10.sh
index a46be374f..1ad09aac5 100644
--- a/test/shell/lvcreate-large-raid10.sh
+++ b/test/shell/lvcreate-large-raid10.sh
@@ -20,6 +20,7 @@ SKIP_WITH_LVMPOLLD=1
# FIXME update test to make something useful on <16T
aux can_use_16T || skip
aux have_raid 1 3 0 || skip
+aux lvmconf 'devices/scan_lvs = 1'
aux prepare_vg 5
diff --git a/test/shell/lvcreate-large.sh b/test/shell/lvcreate-large.sh
index 473b0edb3..b1cb0b083 100644
--- a/test/shell/lvcreate-large.sh
+++ b/test/shell/lvcreate-large.sh
@@ -17,6 +17,8 @@ SKIP_WITH_LVMPOLLD=1
. lib/inittest
+aux lvmconf 'devices/scan_lvs = 1'
+
# FIXME update test to make something useful on <16T
aux can_use_16T || skip
diff --git a/test/shell/pvcreate-restore.sh b/test/shell/pvcreate-restore.sh
index d0b46eb2b..789f45c16 100644
--- a/test/shell/pvcreate-restore.sh
+++ b/test/shell/pvcreate-restore.sh
@@ -15,6 +15,8 @@ SKIP_WITH_LVMPOLLD=1
. lib/inittest
+aux lvmconf 'devices/scan_lvs = 1'
+
aux prepare_vg 4
lvcreate --type snapshot -s -L10 -n $lv1 $vg --virtualsize 2T
diff --git a/test/shell/pvremove-thin.sh b/test/shell/pvremove-thin.sh
index 9859b6cad..84a2a558b 100644
--- a/test/shell/pvremove-thin.sh
+++ b/test/shell/pvremove-thin.sh
@@ -18,6 +18,8 @@ SKIP_WITH_LVMPOLLD=1
. lib/inittest
+aux lvmconf 'devices/scan_lvs = 1'
+
aux prepare_vg
aux have_thin 1 8 0 || skip
diff --git a/test/shell/snapshot-remove-dmsetup.sh b/test/shell/snapshot-remove-dmsetup.sh
index 19411ce93..916aec926 100644
--- a/test/shell/snapshot-remove-dmsetup.sh
+++ b/test/shell/snapshot-remove-dmsetup.sh
@@ -17,6 +17,8 @@ SKIP_WITH_LVMPOLLD=1
. lib/inittest
+aux lvmconf 'devices/scan_lvs = 1'
+
which mkfs.ext2 || skip
aux prepare_vg 5
diff --git a/test/shell/snapshot-usage-exa.sh b/test/shell/snapshot-usage-exa.sh
index 5d666bf43..f537f0dbf 100644
--- a/test/shell/snapshot-usage-exa.sh
+++ b/test/shell/snapshot-usage-exa.sh
@@ -18,6 +18,8 @@ SKIP_WITH_LVMPOLLD=1
. lib/inittest
+aux lvmconf 'devices/scan_lvs = 1'
+
aux can_use_16T || skip
aux prepare_pvs 1
diff --git a/test/shell/snapshot-usage.sh b/test/shell/snapshot-usage.sh
index bcfa16a3e..5cfdae6e4 100644
--- a/test/shell/snapshot-usage.sh
+++ b/test/shell/snapshot-usage.sh
@@ -17,6 +17,8 @@ SKIP_WITH_LVMPOLLD=1
. lib/inittest
+aux lvmconf 'devices/scan_lvs = 1'
+
MKFS=mkfs.ext2
which $MKFS || skip
diff --git a/test/shell/vgsplit-stacked.sh b/test/shell/vgsplit-stacked.sh
index 331ee8e86..09af3f76c 100644
--- a/test/shell/vgsplit-stacked.sh
+++ b/test/shell/vgsplit-stacked.sh
@@ -15,6 +15,8 @@ SKIP_WITH_LVMPOLLD=1
. lib/inittest
+aux lvmconf 'devices/scan_lvs = 1'
+
aux extend_filter_LVMTEST
aux prepare_pvs 3