1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: enable lvmlockd for passing tests

This commit is contained in:
David Teigland 2018-05-24 09:49:48 -05:00
parent 403c87c1aa
commit 595196bc29
158 changed files with 294 additions and 289 deletions

View File

@ -1161,7 +1161,7 @@ prepare_vg() {
teardown_devs teardown_devs
prepare_devs "$@" prepare_devs "$@"
vgcreate -s 512K "$vg" "${DEVICES[@]}" vgcreate $SHARED -s 512K "$vg" "${DEVICES[@]}"
} }
extend_filter() { extend_filter() {

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -17,7 +17,7 @@
# instead lvconvert --repair them?) # instead lvconvert --repair them?)
# - linear LVs with bits missing are not activated # - linear LVs with bits missing are not activated
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -17,7 +17,7 @@
# instead lvconvert --repair them?) # instead lvconvert --repair them?)
# - linear LVs with bits missing are not activated # - linear LVs with bits missing are not activated
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_CLVMD=1 SKIP_WITH_CLVMD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1

View File

@ -12,7 +12,7 @@
# Exercise activation of raid component devices # Exercise activation of raid component devices
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -15,7 +15,7 @@
# to improve code coverage # to improve code coverage
# #
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest
@ -29,7 +29,7 @@ pvcreate --metadatacopies 0 "$dev3"
# FIXME takes very long time # FIXME takes very long time
#pvck "$dev1" #pvck "$dev1"
vgcreate "$vg" "${DEVICES[@]}" vgcreate $SHARED "$vg" "${DEVICES[@]}"
lvcreate -l 5 -i5 -I256 -n $lv $vg lvcreate -l 5 -i5 -I256 -n $lv $vg
lvcreate -aey -l 5 -n $lv1 $vg lvcreate -aey -l 5 -n $lv1 $vg

View File

@ -13,7 +13,7 @@
# test support of thin discards # test support of thin discards
# #
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false} export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false}
@ -80,10 +80,10 @@ vgremove -ff $vg
# device below does not support it, the kernel value # device below does not support it, the kernel value
# of discards actually used will be "nopassdown". # of discards actually used will be "nopassdown".
# This is why we have "-o discards" and "-o kernel_discards". # This is why we have "-o discards" and "-o kernel_discards".
vgcreate -s 1m "${vg}_1" "${DEVICES[@]}" vgcreate $SHARED -s 1m "${vg}_1" "${DEVICES[@]}"
lvcreate -l 10 -T ${vg}_1/pool --discards ignore lvcreate -l 10 -T ${vg}_1/pool --discards ignore
lvcreate -V 9m -T ${vg}_1/pool -n device_with_ignored_discards lvcreate -V 9m -T ${vg}_1/pool -n device_with_ignored_discards
vgcreate -s 1m ${vg}_2 "$DM_DEV_DIR/${vg}_1/device_with_ignored_discards" vgcreate $SHARED -s 1m ${vg}_2 "$DM_DEV_DIR/${vg}_1/device_with_ignored_discards"
lvcreate -l 1 -T ${vg}_2/pool --discards passdown lvcreate -l 1 -T ${vg}_2/pool --discards passdown
lvcreate -V 1 -T ${vg}_2/pool lvcreate -V 1 -T ${vg}_2/pool
check lv_field ${vg}_1/pool discards "ignore" check lv_field ${vg}_1/pool discards "ignore"

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -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
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
SKIP_WITH_LVMLOCKD=1
. lib/inittest . lib/inittest

View File

@ -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
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
SKIP_WITH_LVMLOCKD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -12,7 +12,7 @@
# Basic usage of zero target # Basic usage of zero target
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -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 fsadm filesystem resize on crypt devices' test_description='Exercise fsadm filesystem resize on crypt devices'
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
# FIXME: cannot use brd (ramdisk) - lsblk is NOT listing it # FIXME: cannot use brd (ramdisk) - lsblk is NOT listing it

View File

@ -11,7 +11,7 @@
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
test_description='Exercise fsadm operation on renamed device' test_description='Exercise fsadm operation on renamed device'
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -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 fsadm filesystem resize' test_description='Exercise fsadm filesystem resize'
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -14,7 +14,6 @@
# tests functionality of lvs, pvs, vgs, *display tools # tests functionality of lvs, pvs, vgs, *display tools
# #
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest
@ -40,7 +39,7 @@ pvdisplay
#COMM pvs with segment attributes works even for orphans #COMM pvs with segment attributes works even for orphans
test "$(pvs --noheadings -o seg_all,pv_all,lv_all,vg_all "${DEVICES[@]}" | wc -l)" -eq 5 test "$(pvs --noheadings -o seg_all,pv_all,lv_all,vg_all "${DEVICES[@]}" | wc -l)" -eq 5
vgcreate $vg "${DEVICES[@]}" vgcreate $SHARED $vg "${DEVICES[@]}"
check pv_field "$dev1" pv_uuid BADBEE-BAAD-BAAD-BAAD-BAAD-BAAD-BADBEE check pv_field "$dev1" pv_uuid BADBEE-BAAD-BAAD-BAAD-BAAD-BAAD-BADBEE
@ -202,17 +201,17 @@ vgremove -ff $vg
# all LVs active - VG considered active # all LVs active - VG considered active
pvcreate "$dev1" "$dev2" "$dev3" pvcreate "$dev1" "$dev2" "$dev3"
vgcreate $vg1 "$dev1" vgcreate $SHARED $vg1 "$dev1"
lvcreate -l1 $vg1 lvcreate -l1 $vg1
lvcreate -l1 $vg1 lvcreate -l1 $vg1
# at least one LV active - VG considered active # at least one LV active - VG considered active
vgcreate $vg2 "$dev2" vgcreate $SHARED $vg2 "$dev2"
lvcreate -l1 $vg2 lvcreate -l1 $vg2
lvcreate -l1 -an -Zn $vg2 lvcreate -l1 -an -Zn $vg2
# no LVs active - VG considered inactive # no LVs active - VG considered inactive
vgcreate $vg3 "$dev3" vgcreate $SHARED $vg3 "$dev3"
lvcreate -l1 -an -Zn $vg3 lvcreate -l1 -an -Zn $vg3
lvcreate -l1 -an -Zn $vg3 lvcreate -l1 -an -Zn $vg3

View File

@ -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='test some blocking / non-blocking multi-vg operations' test_description='test some blocking / non-blocking multi-vg operations'
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_CLVMD=1 SKIP_WITH_CLVMD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
@ -19,7 +19,7 @@ SKIP_WITH_LVMPOLLD=1
aux prepare_devs 3 aux prepare_devs 3
pvcreate "$dev1" "$dev2" pvcreate "$dev1" "$dev2"
vgcreate $vg "$dev1" "$dev2" vgcreate $SHARED $vg "$dev1" "$dev2"
# if wait_for_locks set, vgremove should wait for orphan lock # if wait_for_locks set, vgremove should wait for orphan lock
# flock process should have exited by the time first vgremove completes # flock process should have exited by the time first vgremove completes
@ -33,7 +33,7 @@ test ! -f "$TESTDIR/var/lock/lvm/P_orphans"
# if wait_for_locks not set, vgremove should fail on non-blocking lock # if wait_for_locks not set, vgremove should fail on non-blocking lock
# we must wait for flock process at the end - vgremove won't wait # we must wait for flock process at the end - vgremove won't wait
vgcreate $vg "$dev1" "$dev2" vgcreate $SHARED $vg "$dev1" "$dev2"
flock -w 5 "$TESTDIR/var/lock/lvm/P_orphans" sleep 10 & flock -w 5 "$TESTDIR/var/lock/lvm/P_orphans" sleep 10 &
while ! test -f "$TESTDIR/var/lock/lvm/P_orphans" ; do sleep .1 ; done while ! test -f "$TESTDIR/var/lock/lvm/P_orphans" ; do sleep .1 ; done

View File

@ -13,7 +13,7 @@
# Test parallel use of lvm commands and check locks aren't dropped # Test parallel use of lvm commands and check locks aren't dropped
# RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1049296 # RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1049296
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -12,7 +12,7 @@
# Check how lvm2 handles partitions over losetup -P devices # Check how lvm2 handles partitions over losetup -P devices
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest
@ -37,7 +37,7 @@ aux extend_filter "a|$LOOP|"
# creation should fail for 'partitioned' loop device # creation should fail for 'partitioned' loop device
not pvcreate -y "$LOOP" not pvcreate -y "$LOOP"
not vgcreate vg "$LOOP" not vgcreate $SHARED vg "$LOOP"
aux teardown_devs aux teardown_devs
@ -61,4 +61,4 @@ aux extend_filter "a|$LOOP|"
# creation should pass for 'non-partitioned' loop device # creation should pass for 'non-partitioned' loop device
pvcreate -y "$LOOP" pvcreate -y "$LOOP"
vgcreate vg "$LOOP" vgcreate $SHARED vg "$LOOP"

View File

@ -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
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
SKIP_WITH_LVMLOCKD=1
. lib/inittest . lib/inittest
@ -21,7 +21,7 @@ get_devs
aux lvmconf "metadata/record_lvs_history=1" aux lvmconf "metadata/record_lvs_history=1"
vgcreate -s 64K "$vg" "${DEVICES[@]}" vgcreate $SHARED -s 64K "$vg" "${DEVICES[@]}"
lvcreate -l100%FREE -T ${vg}/pool lvcreate -l100%FREE -T ${vg}/pool

View File

@ -12,7 +12,7 @@
# test activation race for raid's --syncaction check # test activation race for raid's --syncaction check
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1

View File

@ -12,7 +12,7 @@
# FIXME RESYNC doesn't work in cluster with exclusive activation # FIXME RESYNC doesn't work in cluster with exclusive activation
# seriously broken! # seriously broken!
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_CLVMD=1 SKIP_WITH_CLVMD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA2110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA2110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -12,7 +12,7 @@
# test activation race for raid's --syncaction check # test activation race for raid's --syncaction check
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false} export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false}
@ -21,8 +21,8 @@ aux have_thin 1 0 0 || skip
aux prepare_pvs 3 aux prepare_pvs 3
vgcreate -s 128k $vg "$dev1" "$dev2" vgcreate $SHARED -s 128k $vg "$dev1" "$dev2"
vgcreate -s 128k $vg2 "$dev3" vgcreate $SHARED -s 128k $vg2 "$dev3"
lvcreate -L10M -T $vg/pool lvcreate -L10M -T $vg/pool

View File

@ -13,7 +13,7 @@
# Exercise number of cache chunks in cache pool # Exercise number of cache chunks in cache pool
# Skips creation of real cached device for older cache targets... # Skips creation of real cached device for older cache targets...
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
# disable lvmetad logging as it bogs down test systems # disable lvmetad logging as it bogs down test systems
export LVM_TEST_LVMETAD_DEBUG_OPTS=${LVM_TEST_LVMETAD_DEBUG_OPTS-} export LVM_TEST_LVMETAD_DEBUG_OPTS=${LVM_TEST_LVMETAD_DEBUG_OPTS-}

View File

@ -12,14 +12,14 @@
# Demonstrate problem when upconverting and cutting leg in clvmd # Demonstrate problem when upconverting and cutting leg in clvmd
SKIP_WITH_LVMLOCKD=1
. lib/inittest . lib/inittest
aux prepare_pvs 3 100 aux prepare_pvs 3 100
get_devs get_devs
vgcreate -s 64k "$vg" "${DEVICES[@]}" vgcreate $SHARED -s 64k "$vg" "${DEVICES[@]}"
# Use zero devices for big mirror legs # Use zero devices for big mirror legs
aux zero_dev "$dev2" $(get first_extent_sector "$dev2"): aux zero_dev "$dev2" $(get first_extent_sector "$dev2"):

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
# disable lvmetad logging as it bogs down test systems # disable lvmetad logging as it bogs down test systems
export LVM_TEST_LVMETAD_DEBUG_OPTS=${LVM_TEST_LVMETAD_DEBUG_OPTS-} export LVM_TEST_LVMETAD_DEBUG_OPTS=${LVM_TEST_LVMETAD_DEBUG_OPTS-}
@ -22,7 +22,7 @@ get_devs
# proper DEVRANGE needs to be set according to extent size # proper DEVRANGE needs to be set according to extent size
DEVRANGE="0-32" DEVRANGE="0-32"
vgcreate -s 32k "$vg" "${DEVICES[@]}" vgcreate $SHARED -s 32k "$vg" "${DEVICES[@]}"
# convert from linear to 2-way mirror ("mirror" default type) # convert from linear to 2-way mirror ("mirror" default type)
lvcreate -aey -l2 -n $lv1 $vg "$dev1" lvcreate -aey -l2 -n $lv1 $vg "$dev1"

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,6 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA2110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA2110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA2110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA2110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA2110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA2110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -13,7 +13,7 @@
# check we may convert thin-pool to raid1/raid10 and back # check we may convert thin-pool to raid1/raid10 and back
# RHBZ#1365286 # RHBZ#1365286
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA2110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA2110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -12,7 +12,6 @@
# disable lvmetad logging as it bogs down test systems # disable lvmetad logging as it bogs down test systems
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
export LVM_TEST_LVMETAD_DEBUG_OPTS=${LVM_TEST_LVMETAD_DEBUG_OPTS-} export LVM_TEST_LVMETAD_DEBUG_OPTS=${LVM_TEST_LVMETAD_DEBUG_OPTS-}
@ -36,7 +35,7 @@ aux prepare_pvs 9
get_devs get_devs
# vgcreate -s 256k "$vg" "${DEVICES[@]}" # vgcreate -s 256k "$vg" "${DEVICES[@]}"
vgcreate -s 2m "$vg" "${DEVICES[@]}" vgcreate $SHARED -s 2m "$vg" "${DEVICES[@]}"
########################################### ###########################################
# RAID1 convert tests # RAID1 convert tests

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest
@ -22,7 +22,7 @@ aux have_raid 1 12 0 || skip
# 8 PVs needed for RAID10 testing (4-stripes/2-mirror) # 8 PVs needed for RAID10 testing (4-stripes/2-mirror)
aux prepare_pvs 8 64 aux prepare_pvs 8 64
get_devs get_devs
vgcreate -s 256k "$vg" "${DEVICES[@]}" vgcreate $SHARED -s 256k "$vg" "${DEVICES[@]}"
lvcreate -y --ty raid0 -R32.00k -i 4 -n $lv1 -L 64M $vg lvcreate -y --ty raid0 -R32.00k -i 4 -n $lv1 -L 64M $vg
lvcreate -y -i4 -l4 -n $lv2 $vg lvcreate -y -i4 -l4 -n $lv2 $vg

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest
@ -34,7 +34,7 @@ aux have_raid 1 3 1 || skip
aux prepare_pvs 9 80 aux prepare_pvs 9 80
get_devs get_devs
vgcreate -s 256k "$vg" "${DEVICES[@]}" vgcreate $SHARED -s 256k "$vg" "${DEVICES[@]}"
lvcreate --type raid10 -m 1 -i 3 -l 3 -n $lv1 $vg lvcreate --type raid10 -m 1 -i 3 -l 3 -n $lv1 $vg
aux wait_for_sync $vg $lv1 aux wait_for_sync $vg $lv1

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -12,7 +12,7 @@
# Test repairing of broken thin pool on raid # Test repairing of broken thin pool on raid
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,6 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false} export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false}

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
. lib/inittest . lib/inittest

View File

@ -13,7 +13,7 @@
# Exercise creation of cache and cache pool volumes and failure path # Exercise creation of cache and cache pool volumes and failure path
# https://bugzilla.redhat.com/1355923 # https://bugzilla.redhat.com/1355923
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest
@ -21,7 +21,7 @@ SKIP_WITH_LVMPOLLD=1
aux have_cache 1 3 0 || skip aux have_cache 1 3 0 || skip
#aux prepare_pvs 1 4707950 #aux prepare_pvs 1 4707950
#vgcreate $vg "$dev1" #vgcreate $SHARED $vg "$dev1"
#lvcreate -L4T -n $lv1 $vg #lvcreate -L4T -n $lv1 $vg
#lvcreate -H -L500G -n cache $vg/$lv1 #lvcreate -H -L500G -n cache $vg/$lv1
#fail lvcreate -H -l 127999 -n cache $vg/$lv1 #fail lvcreate -H -l 127999 -n cache $vg/$lv1

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -12,7 +12,7 @@
# 'Exercise some lvcreate diagnostics' # 'Exercise some lvcreate diagnostics'
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest
@ -27,7 +27,7 @@ aux prepare_pvs 2
get_devs get_devs
aux pvcreate --metadatacopies 0 "$dev1" aux pvcreate --metadatacopies 0 "$dev1"
aux vgcreate "$vg" "${DEVICES[@]}" aux vgcreate $SHARED "$vg" "${DEVICES[@]}"
# --- # ---
# Create snapshots of LVs on --metadatacopies 0 PV (bz450651) # Create snapshots of LVs on --metadatacopies 0 PV (bz450651)

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
# bz1161347 - When raid creation is aborted, left-over devices appear # bz1161347 - When raid creation is aborted, left-over devices appear
@ -24,7 +24,7 @@ aux have_raid 1 3 0 || skip
aux prepare_pvs 2 # 2 devices for RAID1 aux prepare_pvs 2 # 2 devices for RAID1
get_devs get_devs
vgcreate -s 512k "$vg" "${DEVICES[@]}" vgcreate $SHARED -s 512k "$vg" "${DEVICES[@]}"
aux lvmconf "activation/volume_list = [ \"vg_not_exist\" ]" aux lvmconf "activation/volume_list = [ \"vg_not_exist\" ]"

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest
@ -30,7 +30,7 @@ aux have_raid4 && RAID4=raid4
aux prepare_pvs 6 20 # 6 devices for RAID10 (2-mirror,3-stripe) test aux prepare_pvs 6 20 # 6 devices for RAID10 (2-mirror,3-stripe) test
get_devs get_devs
vgcreate -s 512k "$vg" "${DEVICES[@]}" vgcreate $SHARED -s 512k "$vg" "${DEVICES[@]}"
########################################### ###########################################
# Create, wait for sync, remove tests # Create, wait for sync, remove tests

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -12,7 +12,7 @@
# 'Exercise signature wiping during lvcreate' # 'Exercise signature wiping during lvcreate'
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest
@ -18,7 +18,7 @@ SKIP_WITH_LVMPOLLD=1
aux prepare_pvs aux prepare_pvs
get_devs get_devs
vgcreate -s 4k "$vg" "${DEVICES[@]}" vgcreate $SHARED -s 4k "$vg" "${DEVICES[@]}"
# 3 Chunks # 3 Chunks
lvcreate -aey -n one -l 10 $vg lvcreate -aey -n one -l 10 $vg

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -13,7 +13,7 @@
# test currently needs to drop # test currently needs to drop
# 'return NULL' in _lv_create_an_lv after log_error("Can't create %s without using " # 'return NULL' in _lv_create_an_lv after log_error("Can't create %s without using "
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false} export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false}
@ -27,7 +27,7 @@ aux have_thin 1 0 0 || skip
aux prepare_pvs 10 16500 aux prepare_pvs 10 16500
get_devs get_devs
vgcreate -s 64K "$vg" "${DEVICES[@]}" vgcreate $SHARED -s 64K "$vg" "${DEVICES[@]}"
# Size 0 is not valid # Size 0 is not valid
invalid lvcreate -L4M --chunksize 128 --poolmetadatasize 0 -T $vg/pool1 2>out invalid lvcreate -L4M --chunksize 128 --poolmetadatasize 0 -T $vg/pool1 2>out

View File

@ -12,7 +12,7 @@
# Test unaligned size of external origin and thin pool chunk size # Test unaligned size of external origin and thin pool chunk size
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false} export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false}
@ -32,7 +32,7 @@ aux prepare_pvs 2 640
get_devs get_devs
# Use 8K extent size # Use 8K extent size
vgcreate -s 8K "$vg" "${DEVICES[@]}" vgcreate $SHARED -s 8K "$vg" "${DEVICES[@]}"
# Prepare some numeric pattern with ~64K size # Prepare some numeric pattern with ~64K size
seq -s ' ' -w 0 10922 > 64K seq -s ' ' -w 0 10922 > 64K

View File

@ -12,7 +12,7 @@
# Test creation of thin snapshots using external origin # Test creation of thin snapshots using external origin
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false} export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false}
@ -30,7 +30,7 @@ aux have_thin 1 3 0 || skip
aux prepare_pvs 2 64 aux prepare_pvs 2 64
get_devs get_devs
vgcreate -s 64K "$vg" "${DEVICES[@]}" vgcreate $SHARED -s 64K "$vg" "${DEVICES[@]}"
# Newer thin-pool target (>= 1.13) supports unaligned external origin # Newer thin-pool target (>= 1.13) supports unaligned external origin
# But this test is written to test and expect older behavior # But this test is written to test and expect older behavior

View File

@ -13,7 +13,7 @@
# test support for non-power-of-2 thin chunk size # test support for non-power-of-2 thin chunk size
# #
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false} export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false}
@ -28,7 +28,7 @@ aux have_thin 1 4 0 || skip
aux prepare_pvs 2 64 aux prepare_pvs 2 64
get_devs get_devs
vgcreate -s 64K "$vg" "${DEVICES[@]}" vgcreate $SHARED -s 64K "$vg" "${DEVICES[@]}"
# create non-power-of-2 pool # create non-power-of-2 pool
lvcreate -l100 -c 192 -T $vg/pool lvcreate -l100 -c 192 -T $vg/pool

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false} export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false}
@ -37,7 +37,7 @@ which mkfs.ext4 || skip
aux prepare_pvs 2 64 aux prepare_pvs 2 64
get_devs get_devs
vgcreate -s 64K "$vg" "${DEVICES[@]}" vgcreate $SHARED -s 64K "$vg" "${DEVICES[@]}"
lvcreate -L10M -V10M -T $vg/pool --name $lv1 lvcreate -L10M -V10M -T $vg/pool --name $lv1
mkfs.ext4 "$DM_DEV_DIR/$vg/$lv1" mkfs.ext4 "$DM_DEV_DIR/$vg/$lv1"

View File

@ -13,7 +13,7 @@
# test currently needs to drop # test currently needs to drop
# 'return NULL' in _lv_create_an_lv after log_error("Can't create %s without using " # 'return NULL' in _lv_create_an_lv after log_error("Can't create %s without using "
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false} export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false}
@ -39,7 +39,7 @@ which mkfs.ext4 || skip
aux prepare_pvs 2 64 aux prepare_pvs 2 64
get_devs get_devs
vgcreate -s 64K "$vg" "${DEVICES[@]}" vgcreate $SHARED -s 64K "$vg" "${DEVICES[@]}"
# Create named pool only # Create named pool only
lvcreate -l1 -T $vg/pool1 lvcreate -l1 -T $vg/pool1

View File

@ -12,15 +12,13 @@
# 'Exercise some lvcreate diagnostics' # 'Exercise some lvcreate diagnostics'
SKIP_WITH_LVMLOCKD=1
. lib/inittest . lib/inittest
aux prepare_pvs 4 aux prepare_pvs 4
get_devs get_devs
aux pvcreate --metadatacopies 0 "$dev1" aux pvcreate --metadatacopies 0 "$dev1"
aux vgcreate "$vg" "${DEVICES[@]}" aux vgcreate $SHARED "$vg" "${DEVICES[@]}"
invalid lvcreate --type free -l1 -n $lv1 $vg 2>err invalid lvcreate --type free -l1 -n $lv1 $vg 2>err
grep "Invalid argument for --type" err grep "Invalid argument for --type" err
@ -146,6 +144,10 @@ grep "Redundant" err
check lv_field $vg/$lv1 segtype "linear" check lv_field $vg/$lv1 segtype "linear"
lvremove -ff $vg lvremove -ff $vg
if test -n "$LVM_TEST_LVMLOCKD"; then
echo "skip snapshot without origin"
else
# Old --type snapshot works with -s # Old --type snapshot works with -s
lvcreate --type snapshot -s -V64 -L32 -n $lv1 $vg lvcreate --type snapshot -s -V64 -L32 -n $lv1 $vg
check lv_field $vg/$lv1 segtype "linear" check lv_field $vg/$lv1 segtype "linear"
@ -162,6 +164,8 @@ lvchange -a n $vg/$lv1
lvremove -ff $vg/$lv1 lvremove -ff $vg/$lv1
lvremove -ff $vg lvremove -ff $vg
fi
# readahead default (auto), none, #, auto # readahead default (auto), none, #, auto
lvcreate -L 8 -n $lv1 $vg lvcreate -L 8 -n $lv1 $vg
check lv_field $vg/$lv1 lv_read_ahead "auto" check lv_field $vg/$lv1 lv_read_ahead "auto"

View File

@ -12,7 +12,7 @@
# 'Check extents percentage arguments' # 'Check extents percentage arguments'
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest
@ -20,7 +20,7 @@ SKIP_WITH_LVMPOLLD=1
aux prepare_pvs 2 128 aux prepare_pvs 2 128
get_devs get_devs
aux vgcreate "$vg" "${DEVICES[@]}" aux vgcreate $SHARED "$vg" "${DEVICES[@]}"
lvcreate -L64 -n $lv $vg lvcreate -L64 -n $lv $vg

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -12,7 +12,7 @@
# Test autoextension of thin data volume # Test autoextension of thin data volume
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false} export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false}
@ -38,7 +38,7 @@ aux lvmconf "activation/thin_pool_autoextend_percent = 10" \
aux prepare_pvs 3 256 aux prepare_pvs 3 256
get_devs get_devs
vgcreate -s 256K "$vg" "${DEVICES[@]}" vgcreate $SHARED -s 256K "$vg" "${DEVICES[@]}"
lvcreate -L1M -c 64k -T $vg/pool lvcreate -L1M -c 64k -T $vg/pool
lvcreate -V1M $vg/pool -n $lv1 lvcreate -V1M $vg/pool -n $lv1

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false} export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false}

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false} export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false}

View File

@ -14,7 +14,7 @@
# tests lvm initialization, and especially negative tests of error paths # tests lvm initialization, and especially negative tests of error paths
# #
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
test_description='Hello world for vgcreate with lvmlockd and sanlock' test_description='Hello world for vgcreate $SHARED with lvmlockd and sanlock'
. lib/inittest . lib/inittest

View File

@ -12,7 +12,7 @@
# Check rename of stacked thin over cached LV # Check rename of stacked thin over cached LV
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -13,7 +13,7 @@
# Excersize resize of filesystem when size of LV already matches # Excersize resize of filesystem when size of LV already matches
# https://bugzilla.redhat.com/1354396 # https://bugzilla.redhat.com/1354396
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest
@ -24,7 +24,7 @@ aux have_raid 1 7 0 && levels="0 0_meta $levels"
aux prepare_pvs 6 aux prepare_pvs 6
get_devs get_devs
vgcreate -s 256K "$vg" "${DEVICES[@]}" vgcreate $SHARED -s 256K "$vg" "${DEVICES[@]}"
for deactivate in true false; do for deactivate in true false; do

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest
@ -18,7 +18,7 @@ SKIP_WITH_LVMPOLLD=1
aux prepare_pvs 3 22 aux prepare_pvs 3 22
get_devs get_devs
vgcreate -s 32K "$vg" "${DEVICES[@]}" vgcreate $SHARED -s 32K "$vg" "${DEVICES[@]}"
lvcreate -an -Zn -l4 -i3 -I64 $vg lvcreate -an -Zn -l4 -i3 -I64 $vg
@ -55,7 +55,7 @@ check vg_field $vg vg_free_count 2
lvreduce -f -l50%LV $vg/$lv1 lvreduce -f -l50%LV $vg/$lv1
vgremove -f $vg vgremove -f $vg
vgcreate -s 4M $vg "$dev1" "$dev2" "$dev3" vgcreate $SHARED -s 4M $vg "$dev1" "$dev2" "$dev3"
# Expect to play with 15 extents # Expect to play with 15 extents
check vg_field $vg vg_free_count 15 check vg_field $vg vg_free_count 15

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false} export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false}

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest
@ -19,30 +19,30 @@ aux prepare_devs 3
get_devs get_devs
pvcreate --metadatacopies 0 "${DEVICES[@]}" pvcreate --metadatacopies 0 "${DEVICES[@]}"
not vgcreate "$vg" "${DEVICES[@]}" not vgcreate $SHARED "$vg" "${DEVICES[@]}"
aux lvmconf "metadata/dirs = [ \"$TESTDIR/mda\" ]" aux lvmconf "metadata/dirs = [ \"$TESTDIR/mda\" ]"
vgcreate $vg "$dev1" vgcreate $SHARED $vg "$dev1"
check vg_field $vg vg_mda_count 1 check vg_field $vg vg_mda_count 1
vgremove -ff $vg vgremove -ff $vg
vgcreate "$vg" "${DEVICES[@]}" vgcreate $SHARED "$vg" "${DEVICES[@]}"
check vg_field $vg vg_mda_count 1 check vg_field $vg vg_mda_count 1
vgremove -ff $vg vgremove -ff $vg
pvcreate --metadatacopies 1 --metadataignore y "$dev1" pvcreate --metadatacopies 1 --metadataignore y "$dev1"
vgcreate "$vg" "${DEVICES[@]}" vgcreate $SHARED "$vg" "${DEVICES[@]}"
check vg_field $vg vg_mda_count 2 check vg_field $vg vg_mda_count 2
vgremove -ff $vg vgremove -ff $vg
pvcreate --metadatacopies 1 --metadataignore n "$dev1" pvcreate --metadatacopies 1 --metadataignore n "$dev1"
vgcreate "$vg" "${DEVICES[@]}" vgcreate $SHARED "$vg" "${DEVICES[@]}"
check vg_field $vg vg_mda_count 2 check vg_field $vg vg_mda_count 2
vgremove -ff $vg vgremove -ff $vg
pvcreate --metadatacopies 0 "$dev1" pvcreate --metadatacopies 0 "$dev1"
aux lvmconf "metadata/dirs = [ \"$TESTDIR/mda\", \"$TESTDIR/mda2\" ]" aux lvmconf "metadata/dirs = [ \"$TESTDIR/mda\", \"$TESTDIR/mda2\" ]"
vgcreate "$vg" "${DEVICES[@]}" vgcreate $SHARED "$vg" "${DEVICES[@]}"
check vg_field $vg vg_mda_count 2 check vg_field $vg vg_mda_count 2
vgremove -ff $vg vgremove -ff $vg

View File

@ -10,7 +10,6 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest
@ -24,7 +23,7 @@ pvcreate --metadatacopies 0 "$dev3"
pvcreate "$dev4" pvcreate "$dev4"
pvcreate --metadatacopies 0 "$dev5" pvcreate --metadatacopies 0 "$dev5"
vgcreate "$vg" "${DEVICES[@]}" vgcreate $SHARED "$vg" "${DEVICES[@]}"
lvcreate -n $lv -l 1 -i5 -I256 $vg lvcreate -n $lv -l 1 -i5 -I256 $vg
pvchange -x n "$dev1" pvchange -x n "$dev1"
@ -38,7 +37,7 @@ vgremove -f $vg
for mdacp in 1 0; do for mdacp in 1 0; do
pvcreate --metadatacopies "$mdacp" "${DEVICES[@]}" pvcreate --metadatacopies "$mdacp" "${DEVICES[@]}"
pvcreate "$dev1" pvcreate "$dev1"
vgcreate "$vg" "${DEVICES[@]}" vgcreate $SHARED "$vg" "${DEVICES[@]}"
lvcreate -n $lv1 -l 2 -i5 -I256 $vg lvcreate -n $lv1 -l 2 -i5 -I256 $vg
lvcreate -aey -n $lv2 --type mirror -m2 -l 2 $vg lvcreate -aey -n $lv2 --type mirror -m2 -l 2 $vg
lvchange -an $vg/$lv1 $vg/$lv2 lvchange -an $vg/$lv1 $vg/$lv2
@ -53,7 +52,7 @@ if test -n "$LVM_TEST_LVM1" ; then
pvcreate -M1 "$dev1" "$dev2" "$dev3" pvcreate -M1 "$dev1" "$dev2" "$dev3"
pv3_uuid=$(get pv_field "$dev3" pv_uuid) pv3_uuid=$(get pv_field "$dev3" pv_uuid)
vgcreate -M1 $vg "$dev1" "$dev2" "$dev3" vgcreate $SHARED -M1 $vg "$dev1" "$dev2" "$dev3"
pvchange --uuid "$dev1" pvchange --uuid "$dev1"
# verify pe_start of all M1 PVs # verify pe_start of all M1 PVs

View File

@ -12,7 +12,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="ensure that 'vgreduce --removemissing' works on mirrored LV" test_description="ensure that 'vgreduce --removemissing' works on mirrored LV"
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
# disable lvmetad logging as it bogs down test systems # disable lvmetad logging as it bogs down test systems
@ -104,7 +104,7 @@ rest_pvs_()
aux prepare_pvs 5 80 aux prepare_pvs 5 80
get_devs get_devs
vgcreate -s 64k "$vg" "${DEVICES[@]}" vgcreate $SHARED -s 64k "$vg" "${DEVICES[@]}"
BLOCKS=0-7 BLOCKS=0-7
BLOCKS1=8-15 BLOCKS1=8-15
# --------------------------------------------------------------------- # ---------------------------------------------------------------------

View File

@ -12,7 +12,7 @@
# This test is not using any lvm command # This test is not using any lvm command
# so skip duplicate CLMVD and lvmetad test # so skip duplicate CLMVD and lvmetad test
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_CLVMD=1 SKIP_WITH_CLVMD=1
SKIP_WITH_LVMETAD=1 SKIP_WITH_LVMETAD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest
@ -18,7 +18,7 @@ SKIP_WITH_LVMPOLLD=1
aux prepare_devs 4 aux prepare_devs 4
pvcreate "$dev1" "$dev2" pvcreate "$dev1" "$dev2"
pvcreate --metadatacopies 0 "$dev3" "$dev4" pvcreate --metadatacopies 0 "$dev3" "$dev4"
vgcreate $vg "$dev1" "$dev2" "$dev3" "$dev4" vgcreate $SHARED $vg "$dev1" "$dev2" "$dev3" "$dev4"
lvcreate -l1 -n linear1 $vg "$dev1" lvcreate -l1 -n linear1 $vg "$dev1"
lvcreate -l1 -n linear2 $vg "$dev2" lvcreate -l1 -n linear2 $vg "$dev2"

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -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
# lvmetad does not handle pool labels so skip test. # lvmetad does not handle pool labels so skip test.
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMETAD=1 SKIP_WITH_LVMETAD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1

View File

@ -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='Test process_each_pv with zero mda' test_description='Test process_each_pv with zero mda'
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest

View File

@ -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 toollib process_each_pv' test_description='Exercise toollib process_each_pv'
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest
@ -34,9 +34,9 @@ aux prepare_devs 14
# dev1 matchines dev10,dev11,etc # dev1 matchines dev10,dev11,etc
# #
vgcreate $vg1 "$dev10" vgcreate $SHARED $vg1 "$dev10"
vgcreate $vg2 "$dev2" "$dev3" "$dev4" "$dev5" vgcreate $SHARED $vg2 "$dev2" "$dev3" "$dev4" "$dev5"
vgcreate $vg3 "$dev6" "$dev7" "$dev8" "$dev9" vgcreate $SHARED $vg3 "$dev6" "$dev7" "$dev8" "$dev9"
pvchange --addtag V2D3 "$dev3" pvchange --addtag V2D3 "$dev3"
pvchange --addtag V2D4 "$dev4" pvchange --addtag V2D4 "$dev4"

View File

@ -12,7 +12,7 @@
test_description='Exercise toollib process_each_pv with vgreduce' test_description='Exercise toollib process_each_pv with vgreduce'
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest
@ -31,9 +31,9 @@ aux prepare_devs 14
# dev1 matchines dev10,dev11,etc # dev1 matchines dev10,dev11,etc
# #
vgcreate $vg1 "$dev10" vgcreate $SHARED $vg1 "$dev10"
vgcreate $vg2 "$dev2" "$dev3" "$dev4" "$dev5" vgcreate $SHARED $vg2 "$dev2" "$dev3" "$dev4" "$dev5"
vgcreate $vg3 "$dev6" "$dev7" "$dev8" "$dev9" vgcreate $SHARED $vg3 "$dev6" "$dev7" "$dev8" "$dev9"
pvchange --addtag V2D3 "$dev3" pvchange --addtag V2D3 "$dev3"
pvchange --addtag V2D4 "$dev4" pvchange --addtag V2D4 "$dev4"
@ -190,7 +190,7 @@ pvchange --addtag V2D45 "$dev5"
not vgreduce -a $vg2 not vgreduce -a $vg2
# reset # reset
vgremove $vg2 vgremove $vg2
vgcreate $vg2 "$dev2" "$dev3" "$dev4" "$dev5" vgcreate $SHARED $vg2 "$dev2" "$dev3" "$dev4" "$dev5"
pvchange --addtag V2D3 "$dev3" pvchange --addtag V2D3 "$dev3"
pvchange --addtag V2D4 "$dev4" pvchange --addtag V2D4 "$dev4"
pvchange --addtag V2D45 "$dev4" pvchange --addtag V2D45 "$dev4"
@ -258,9 +258,9 @@ pvcreate "$dev14" --metadatacopies 0
# dev12 # dev12
# dev13 # dev13
vgcreate $vg1 "$dev10" vgcreate $SHARED $vg1 "$dev10"
vgcreate $vg2 "$dev2" "$dev3" "$dev4" "$dev5" vgcreate $SHARED $vg2 "$dev2" "$dev3" "$dev4" "$dev5"
vgcreate $vg3 "$dev6" "$dev7" "$dev8" "$dev9" vgcreate $SHARED $vg3 "$dev6" "$dev7" "$dev8" "$dev9"
pvchange --addtag V2D3 "$dev3" pvchange --addtag V2D3 "$dev3"
pvchange --addtag V2D4 "$dev4" pvchange --addtag V2D4 "$dev4"

View File

@ -13,7 +13,7 @@
# test thin profile functionality # test thin profile functionality
# #
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false} export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false}
@ -38,7 +38,7 @@ aux prepare_pvs 1 "$DEV_SIZE"
SHOULD="" SHOULD=""
check sysfs "$dev1" queue/optimal_io_size "$EXPECT" || SHOULD=should check sysfs "$dev1" queue/optimal_io_size "$EXPECT" || SHOULD=should
vgcreate $vg "$dev1" vgcreate $SHARED $vg "$dev1"
# By default, "generic" policy is used to # By default, "generic" policy is used to
# calculate chunk size which is 64KiB by default # calculate chunk size which is 64KiB by default
@ -68,7 +68,7 @@ fi
# The profile must be also applied if using the profile # The profile must be also applied if using the profile
# for the whole VG - any LVs inherit this profile then. # for the whole VG - any LVs inherit this profile then.
vgcreate --profile thin-performance $vg "$dev1" vgcreate $SHARED --profile thin-performance $vg "$dev1"
lvcreate -L8m -T $vg/pool_performance_inherited lvcreate -L8m -T $vg/pool_performance_inherited
# ...the LV does not have the profile attached, but VG does! # ...the LV does not have the profile attached, but VG does!
check vg_field $vg profile "thin-performance" check vg_field $vg profile "thin-performance"

View File

@ -13,7 +13,7 @@
# test basic profile functionality # test basic profile functionality
# #
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest
@ -100,7 +100,7 @@ not grep "$MSG_IGNORING_INVALID_MDA_PROFILE" msg
# attaching/detaching profiles to VG/LV # attaching/detaching profiles to VG/LV
aux prepare_pvs 1 8 aux prepare_pvs 1 8
pvcreate "$dev1" pvcreate "$dev1"
vgcreate $vg1 "$dev1" vgcreate $SHARED $vg1 "$dev1"
check vg_field $vg1 vg_profile "" check vg_field $vg1 vg_profile ""
lvcreate -l 1 -n $lv1 $vg1 lvcreate -l 1 -n $lv1 $vg1
check lv_field $vg1/$lv1 lv_profile "" check lv_field $vg1/$lv1 lv_profile ""

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
. lib/inittest . lib/inittest
@ -21,7 +21,7 @@ aux lvmconf 'metadata/check_pv_device_sizes = 1'
CHECK_MSG="smaller than corresponding PV size" CHECK_MSG="smaller than corresponding PV size"
vgcreate "$vg" "$dev1" 2>err vgcreate $SHARED "$vg" "$dev1" 2>err
not grep "$CHECK_MSG" err not grep "$CHECK_MSG" err
pvs 2>err pvs 2>err
not grep "$CHECK_MSG" err not grep "$CHECK_MSG" err
@ -29,7 +29,7 @@ vgremove -ff $vg
# set PV size to 2x dev size # set PV size to 2x dev size
pvcreate --yes --setphysicalvolumesize 16m "$dev1" pvcreate --yes --setphysicalvolumesize 16m "$dev1"
vgcreate "$vg" "$dev1" 2>err vgcreate $SHARED "$vg" "$dev1" 2>err
grep "$CHECK_MSG" err grep "$CHECK_MSG" err
pvs 2>err pvs 2>err
grep "$CHECK_MSG" err grep "$CHECK_MSG" err
@ -38,7 +38,7 @@ vgremove -ff $vg
# should be quiet if requested # should be quiet if requested
aux lvmconf 'metadata/check_pv_device_sizes = 0' aux lvmconf 'metadata/check_pv_device_sizes = 0'
pvcreate --yes --setphysicalvolumesize 16m "$dev1" pvcreate --yes --setphysicalvolumesize 16m "$dev1"
vgcreate "$vg" "$dev1" 2>err vgcreate $SHARED "$vg" "$dev1" 2>err
not grep "$CHECK_MSG" err not grep "$CHECK_MSG" err
pvs 2>err pvs 2>err
not grep "$CHECK_MSG" err not grep "$CHECK_MSG" err

Some files were not shown because too many files have changed in this diff Show More