mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-22 09:57:47 +03:00
cleanup: typos in test comments
This commit is contained in:
parent
0e52e215a8
commit
460ff472f9
@ -576,7 +576,7 @@ lvmdevices --deldev "$dev2"
|
||||
echo "IDTYPE=devname IDNAME=$dev1 DEVNAME=$dev1 PVID=$PVID1" >> "$DF"
|
||||
# dev2 has no PVID
|
||||
echo "IDTYPE=devname IDNAME=$dev2 DEVNAME=$dev2 PVID=." >> "$DF"
|
||||
# Non-existant device has PVID for dev2
|
||||
# Non-existent device has PVID for dev2
|
||||
echo "IDTYPE=devname IDNAME=$NODEV DEVNAME=$NODEV PVID=$PVID2" >> "$DF"
|
||||
|
||||
cat "$DF"
|
||||
|
@ -461,7 +461,7 @@ grep $did1 $DF
|
||||
# file corruption.)
|
||||
# So, if the deviceid *is* corrupted, as we do here, then standard
|
||||
# commands won't correct it. We need to use delpvid/addpvid explicitly
|
||||
# to say that we are targetting the given pvid.
|
||||
# to say that we are targeting the given pvid.
|
||||
|
||||
rm $DF
|
||||
sed "s/$did1/baddid/" "$DF.orig" |tee $DF
|
||||
|
@ -341,7 +341,7 @@ grep "$PRODUCT_UUID1" "$DF"
|
||||
not grep HOSTNAME "$DF"
|
||||
|
||||
|
||||
# DF has PRODUCT_UUID, system product_uuid changes, lvm command upates it
|
||||
# DF has PRODUCT_UUID, system product_uuid changes, lvm command updates it
|
||||
|
||||
rm "$DF"
|
||||
vgimportdevices $vg1
|
||||
|
@ -62,7 +62,7 @@ lvchange -an $vg/pool $vg/pool1
|
||||
# Cannot convert, since thin volumes are still active
|
||||
not lvchange --discards passdown $vg/pool
|
||||
|
||||
# Deactive thin volumes
|
||||
# Deactivate thin volumes
|
||||
lvchange -an $vg/origin $vg/snap
|
||||
|
||||
lvchange --discards passdown $vg/pool
|
||||
|
@ -72,14 +72,14 @@ test -e LOCAL_CLVMD || grep 'already monitored' lvchange.out
|
||||
# now try what happens if no dmeventd is running
|
||||
pid=$(< LOCAL_DMEVENTD)
|
||||
kill -9 "$pid"
|
||||
# TODO/FIXME: it would be surely better, if the wait loop bellow would
|
||||
# TODO/FIXME: it would be surely better, if the wait loop below would
|
||||
# not be need however ATM the API for communication is not welldetecting
|
||||
# this highly unusual race case - and things will simply timeout on
|
||||
# reading failure within 4 seconds.
|
||||
# Fixing would require to add some handling for losing FIFO connection
|
||||
for i in {1..10}; do
|
||||
# wait here for a while until dmeventd dies....
|
||||
# suprisingly it's not instant and we can actually
|
||||
# surprisingly it's not instant and we can actually
|
||||
# obtain list of monitored devices...
|
||||
test -z $(ps -p "$pid" -o comm=) && break
|
||||
sleep .1
|
||||
@ -94,7 +94,7 @@ rm LOCAL_DMEVENTD
|
||||
|
||||
# First lvs restarts 'dmeventd' (initiate a socket connection to a daemon)
|
||||
# used explicit 'lvs' avoid using forked 'check' function here as that
|
||||
# would furher for 'get' and actualy would be waint till whole process group
|
||||
# would further for 'get' and actually would be waint till whole process group
|
||||
# exits - which is not what we want here
|
||||
#
|
||||
# FIXME/TODO: lvs should probably not be the way to 'fork dmeventd'
|
||||
|
@ -22,7 +22,7 @@ SECURE="434e0cbab02ca68ffba9268222c3789d703fe62427b78b308518b3228f6a2122"
|
||||
|
||||
DMTEST="${PREFIX}-test-secure"
|
||||
|
||||
# Masking following glibc features fixes probles for AVX CPUs.
|
||||
# Masking following glibc features fixes problems for AVX CPUs.
|
||||
#export GLIBC_TUNABLES=glibc.cpu.hwcaps=-AVX512F,-AVX2,-AVX512VL,-ERMS,-AVX_Fast_Unaligned_Load,-SSSE3
|
||||
|
||||
# Test needs installed gdb package with gcore app
|
||||
@ -38,7 +38,7 @@ aux prepare_devs 1
|
||||
for i in securetest dmsecuretest ; do
|
||||
|
||||
# 1st. try with empty table
|
||||
# 2nd. retry with already exiting DM node - exercize error path also wipes
|
||||
# 2nd. retry with already exiting DM node - exercise error path also wipes
|
||||
for j in empty existing ; do
|
||||
|
||||
rm -f cmdout
|
||||
|
@ -53,7 +53,7 @@ test "$str" = ":32:logon:$KEY_NAME"
|
||||
# ...but it hides hexbyte representation of keys...
|
||||
str=$(dmsetup table --inactive "$PREFIX-crypt" | cut -d ' ' -f 5)
|
||||
test "$str" = "$HIDENKEY_32"
|
||||
#...unless --showkeys explictly requested
|
||||
#...unless --showkeys explicitly requested
|
||||
str=$(dmsetup table --showkeys --inactive "$PREFIX-crypt" | cut -d ' ' -f 5)
|
||||
test "$str" = "$HEXKEY_32"
|
||||
|
||||
|
@ -79,7 +79,7 @@ grep "$mddev" out
|
||||
not grep "$dev1" out
|
||||
not grep "$dev2" out
|
||||
# N.B. in this case hints are disabled for duplicate pvs seen by scan
|
||||
# it would be preferrable if this didn't happen as in auto mode, but it's ok.
|
||||
# it would be preferable if this didn't happen as in auto mode, but it's ok.
|
||||
test "$pass" = "auto" && grep "$mddev" "$HINTS"
|
||||
not grep "$dev1" "$HINTS"
|
||||
not grep "$dev2" "$HINTS"
|
||||
@ -150,7 +150,7 @@ not pvs "$dev1"
|
||||
not pvs "$dev2"
|
||||
pvs | tee out
|
||||
not grep "$mddev" out
|
||||
# N.B. it would be preferrable if dev1 did not appear in hints but it's ok
|
||||
# N.B. it would be preferable if dev1 did not appear in hints but it's ok
|
||||
# not grep "$dev1" $HINTS
|
||||
not grep "$dev1" out
|
||||
not grep "$dev2" out
|
||||
@ -215,7 +215,7 @@ not grep "$dev1" out
|
||||
not grep "$dev2" out
|
||||
pvscan --cache
|
||||
not grep "$mddev" "$HINTS"
|
||||
# N.B. would be preferrable for this md component to not be in hints
|
||||
# N.B. would be preferable for this md component to not be in hints
|
||||
# grep "$dev1" $HINTS
|
||||
not grep "$dev1" "$HINTS"
|
||||
not grep "$dev2" "$HINTS"
|
||||
|
@ -127,7 +127,7 @@ umount "$mount_dir"
|
||||
|
||||
|
||||
USE_NOT=
|
||||
# TODO: this is somewhat suprising for users
|
||||
# TODO: this is somewhat surprising for users
|
||||
# Detect if the 'lvresize' was compiled with HAVE_BLKID_SUBLKS_FSINFO
|
||||
# In such case --fs checksize is a supported parameter
|
||||
# otherwise command automatically fallbacks to fsadm and resize reiserfs
|
||||
|
@ -17,7 +17,7 @@ SKIP_WITH_LVMLOCKD=1
|
||||
|
||||
. lib/inittest
|
||||
|
||||
# Since this test is currenly using 'system's' hints,
|
||||
# Since this test is currently using 'system's' hints,
|
||||
# it cannot be running, while lvmdbusd operates in the system.
|
||||
# FIXME: sometimes test suite itself 'leaks' lvmdbusd process.
|
||||
pgrep lvmdbusd && skip "Can't run this test, while lvmdbusd is running"
|
||||
@ -452,7 +452,7 @@ rm tmp-old tmp-new tmp-newuuid
|
||||
|
||||
|
||||
#
|
||||
# Test incorrent pvid-to-vgname info in hints is detected
|
||||
# Test incorrect pvid-to-vgname info in hints is detected
|
||||
#
|
||||
|
||||
# this vgcreate invalidates current hints
|
||||
|
@ -23,7 +23,7 @@ which mkfs.xfs || skip
|
||||
mnt="mnt"
|
||||
mkdir -p $mnt
|
||||
|
||||
# raid1 LV needs to be extended to 512MB to test imeta being exended
|
||||
# raid1 LV needs to be extended to 512MB to test imeta being extended
|
||||
aux prepare_devs 4 632
|
||||
|
||||
# this test may consume lot of disk space - so make sure cleaning works
|
||||
|
@ -50,7 +50,7 @@ _test1() {
|
||||
umount $mnt
|
||||
lvchange -an $vg/$lv1
|
||||
|
||||
# Corrupting raid1 is simple - 1 leg needs to be modifed
|
||||
# Corrupting raid1 is simple - 1 leg needs to be modified
|
||||
# For raid5 corrupted block can be places on any of its leg.
|
||||
for i in "$@" ; do
|
||||
aux corrupt_dev "$i" BBBBBBBBBBBBBBBBB BBBBBBBBCBBBBBBBB |& tee out
|
||||
|
@ -15,7 +15,7 @@ SKIP_WITH_LVMPOLLD=1
|
||||
|
||||
. lib/inittest
|
||||
|
||||
# Writemostly has been in every version since the begining
|
||||
# Writemostly has been in every version since the beginning
|
||||
# Device refresh in 1.5.1 upstream and 1.3.4 < x < 1.4.0 in RHEL6
|
||||
# Sync action in 1.5.0 upstream and 1.3.3 < x < 1.4.0 in RHEL6
|
||||
# Proper mismatch count 1.5.2 upstream,1.3.5 < x < 1.4.0 in RHEL6
|
||||
@ -109,7 +109,7 @@ run_writemostly_check() {
|
||||
check lv_attr_bit health $vg/${lv}_rimage_0 "w"
|
||||
check lv_attr_bit health $vg/${lv}_rimage_1 "-"
|
||||
|
||||
# Partial flag supercedes writemostly flag
|
||||
# Partial flag supersedes writemostly flag
|
||||
aux disable_dev $d0
|
||||
check lv_attr_bit health $vg/${lv}_rimage_0 "p"
|
||||
|
||||
|
@ -42,7 +42,7 @@ SEEK=$((${START%\.00k} + ${METASIZE%\.00k}))
|
||||
dd if=/dev/urandom of="$dev2" bs=1K count=1 seek=$SEEK oflag=direct
|
||||
# FIXME
|
||||
# Some delay - there is currently race in upstream kernel
|
||||
# test may occasionaly fail with:
|
||||
# test may occasionally fail with:
|
||||
# device-mapper: message ioctl on failed: Device or resource busy
|
||||
#
|
||||
# Heinz's kernel seems to fix this particular issue but
|
||||
@ -60,7 +60,7 @@ check lv_field $vg/$lv1 raid_mismatch_count "128"
|
||||
lvchange -an $vg/$lv1
|
||||
|
||||
lvchange -ay $vg/$lv1
|
||||
# noone has it open and target is read & running
|
||||
# no one has it open and target is read & running
|
||||
dmsetup info -c | grep $vg
|
||||
|
||||
#sleep 10 < "$DM_DEV_DIR/$vg/$lv1" &
|
||||
@ -86,7 +86,7 @@ lvchange --syncaction check $vg/$lv1
|
||||
# Wait till scrubbing is finished
|
||||
aux wait_for_sync $vg $lv1
|
||||
|
||||
# Retest mistmatch exists
|
||||
# Retest mismatch exists
|
||||
check lv_field $vg/$lv1 raid_mismatch_count "128"
|
||||
|
||||
vgremove -ff $vg
|
||||
|
@ -24,7 +24,7 @@ lvcreate --vdo -L5G -n $lv1 $vg/vdopool
|
||||
# deduplication_ARG (default is 'yes')
|
||||
# compression_ARG (default is 'yes')
|
||||
|
||||
# Wait till index gets openned
|
||||
# Wait till index gets opened
|
||||
for i in {1..10} ; do
|
||||
sleep .1
|
||||
check grep_dmsetup status $vg-vdopool-vpool " online online " || continue
|
||||
|
@ -74,7 +74,7 @@ wait
|
||||
# dirty blocks - so the test can't really break the cache clearing.
|
||||
#
|
||||
# So the failure of test is reported only for recent kernels > 5.6
|
||||
# ans skipped otherwise - as those can't be fixed anyway
|
||||
# and skipped otherwise - as those can't be fixed anyway
|
||||
grep -E "Flushing.*aborted" logconvert || {
|
||||
cat logconvert || true
|
||||
vgremove -f $vg
|
||||
|
@ -29,7 +29,7 @@ fail lvcreate -s -L2 $vg/cpool_cdata
|
||||
fail lvcreate -s -L2 $vg/cpool_cmeta
|
||||
|
||||
###########################
|
||||
# Check regular converion #
|
||||
# Check regular conversion #
|
||||
###########################
|
||||
# lvcreate origin, lvcreate cache-pool, and lvconvert to cache
|
||||
lvcreate -an -Zn -L 2 -n $lv1 $vg
|
||||
@ -49,7 +49,7 @@ check lv_field $vg/$lv1 cache_policy ""
|
||||
check lv_field $vg/$lv1 cache_settings ""
|
||||
check lv_field $vg/$lv1 chunk_size "256.00k"
|
||||
|
||||
# but allow to set them when specified explicitely on command line
|
||||
# but allow to set them when specified explicitly on command line
|
||||
lvconvert --yes --type cache-pool --cachemode writeback --cachepolicy mq \
|
||||
--cachesettings sequential_threshold=1234 --cachesettings random_threshold=56 \
|
||||
--cachepool $vg/$lv2
|
||||
|
@ -26,7 +26,7 @@ log_name_to_count() {
|
||||
}
|
||||
|
||||
# FIXME: For test_[up|down]convert, I'd still like to be able
|
||||
# to specifiy devices - especially if I can do partial PV
|
||||
# to specify devices - especially if I can do partial PV
|
||||
# specification for down-converts. It may even be wise to
|
||||
# do one round through these tests without specifying the PVs
|
||||
# to use and one round where we do.
|
||||
@ -38,7 +38,7 @@ log_name_to_count() {
|
||||
# final_log_type: core|disk|mirrored
|
||||
# active: Whether the LV should be active when the convert happens
|
||||
#
|
||||
# Exmaple: Convert 3-way disk-log mirror to
|
||||
# Example: Convert 3-way disk-log mirror to
|
||||
# 2-way disk-log mirror while not active
|
||||
# -> test_lvconvert 2 disk 3 disk 0
|
||||
|
||||
@ -126,7 +126,7 @@ aux prepare_vg 5 5
|
||||
get_devs
|
||||
|
||||
MIRRORED="mirrored"
|
||||
# FIXME: Cluster is not supporting exlusive activation of mirrored log
|
||||
# FIXME: Cluster is not supporting exclusive activation of mirrored log
|
||||
test -e LOCAL_CLVMD && MIRRORED=
|
||||
|
||||
test_many() {
|
||||
|
@ -147,7 +147,7 @@ lvcreate -aey -l2 --type mirror -m2 -n $lv1 $vg "$dev1" "$dev2" "$dev5" "$dev3:$
|
||||
LVM_TEST_TAG="kill_me_$PREFIX" lvconvert -m+1 -b $vg/$lv1 "$dev4"
|
||||
# FIXME: Extra wait here for mirror upconvert synchronization
|
||||
# otherwise we may fail her on parallel upconvert and downconvert
|
||||
# lvconvert-mirror-updown.sh tests this errornous case separately
|
||||
# lvconvert-mirror-updown.sh tests this erroneous case separately
|
||||
lvconvert $vg/$lv1
|
||||
lvconvert -m-1 $vg/$lv1 "$dev2"
|
||||
lvconvert $vg/$lv1
|
||||
@ -162,7 +162,7 @@ lvcreate -aey -l2 --type mirror -m1 -n $lv1 $vg "$dev1" "$dev2" "$dev3:$DEVRANGE
|
||||
LVM_TEST_TAG="kill_me_$PREFIX" lvconvert -m+1 -b $vg/$lv1 "$dev4"
|
||||
# FIXME: Extra wait here for mirror upconvert synchronization
|
||||
# otherwise we may fail her on parallel upconvert and downconvert
|
||||
# lvconvert-mirror-updown.sh tests this errornous case separately
|
||||
# lvconvert-mirror-updown.sh tests this erroneous case separately
|
||||
lvconvert $vg/$lv1
|
||||
lvconvert -m-1 $vg/$lv1 "$dev2"
|
||||
lvconvert $vg/$lv1
|
||||
@ -177,7 +177,7 @@ lvcreate -aey -l2 --type mirror -m1 -n $lv1 $vg "$dev1" "$dev2" "$dev3:$DEVRANGE
|
||||
LVM_TEST_TAG="kill_me_$PREFIX" lvconvert -m+1 -b $vg/$lv1 "$dev4"
|
||||
# FIXME: Extra wait here for mirror upconvert synchronization
|
||||
# otherwise we may fail her on parallel upconvert and downconvert
|
||||
# lvconvert-mirror-updown.sh tests this errornous case separately
|
||||
# lvconvert-mirror-updown.sh tests this erroneous case separately
|
||||
lvconvert $vg/$lv1
|
||||
lvconvert -m-1 $vg/$lv1 "$dev2"
|
||||
lvconvert $vg/$lv1
|
||||
@ -311,7 +311,7 @@ fi
|
||||
# Test that the correct devices remain in the mirror
|
||||
# Make $dev2 & $dev4 zero backend device so large mirrors can be user
|
||||
# without consuming any real space. Clearly such mirrors can't be read back
|
||||
# but tests here are validating possibilies of those conversions
|
||||
# but tests here are validating possibilities of those conversions
|
||||
#
|
||||
# Test pulling primary image before mirror in-sync (should fail)
|
||||
# Test pulling primary image after mirror in-sync (should work)
|
||||
@ -323,7 +323,7 @@ SHOULD=
|
||||
aux throttle_dm_mirror || SHOULD=should
|
||||
test "${LVM_VALGRIND:-0}" -eq 0 || SHOULD=should
|
||||
|
||||
# Use large enough mirror that takes time to sychronize with small regionsize
|
||||
# Use large enough mirror that takes time to synchronize with small regionsize
|
||||
lvcreate -aey -L20 -Zn -Wn --type mirror --regionsize 4k -m2 -n $lv1 $vg "$dev1" "$dev2" "$dev4" "$dev3:$DEVRANGE"
|
||||
$SHOULD not lvconvert -m-1 $vg/$lv1 "$dev1" 2>&1 | tee out
|
||||
aux restore_dm_mirror
|
||||
@ -341,7 +341,7 @@ lvremove -ff $vg
|
||||
|
||||
aux throttle_dm_mirror || :
|
||||
# No parallel lvconverts on a single LV please
|
||||
# Use big enough mirror size and small regionsize to run on all test machines succesfully
|
||||
# Use big enough mirror size and small regionsize to run on all test machines successfully
|
||||
lvcreate -aey -Zn -Wn -L20 --type mirror --regionsize 4k -m1 -n $lv1 $vg "$dev1" "$dev2" "$dev3:0-8"
|
||||
check mirror $vg $lv1
|
||||
check mirror_legs $vg $lv1 2
|
||||
|
@ -165,12 +165,12 @@ then
|
||||
|
||||
# Convert raid5_ls back to 4 stripes checking
|
||||
# conversion to striped/raid* gets rejected
|
||||
# with existing LVs to be removed afer reshape
|
||||
# with existing LVs to be removed after reshape
|
||||
_reshape_layout raid5_ls 4 28 $vg $lv1 --stripes 4 --force
|
||||
else
|
||||
# Convert raid5_ls back to 4 stripes checking
|
||||
# conversion to striped/raid* gets rejected
|
||||
# with existing LVs to be removed afer reshape
|
||||
# with existing LVs to be removed after reshape
|
||||
_reshape_layout raid5_ls 4 15 $vg $lv1 --stripes 4 --force
|
||||
fi
|
||||
|
||||
|
@ -97,7 +97,7 @@ function _invalid_raid5_conversions
|
||||
not _lvconvert raid6 raid6_n_6 4 6 $vg $lv1
|
||||
}
|
||||
|
||||
# Check raid6 conversion constrainst for 2 stripes
|
||||
# Check raid6 conversion constraints for 2 stripes
|
||||
for type in striped raid0 raid0_meta
|
||||
do
|
||||
_lvcreate $type 2 2 4m $vg $lv1
|
||||
@ -109,7 +109,7 @@ do
|
||||
done
|
||||
|
||||
|
||||
# Check raid6 conversion constrainst of minimum 3 stripes
|
||||
# Check raid6 conversion constraints of minimum 3 stripes
|
||||
_lvcreate raid0 3 3 4m $vg $lv1
|
||||
_lvconvert raid6 raid6_n_6 3 5 $vg $lv1
|
||||
lvremove -y $vg
|
||||
|
@ -129,7 +129,7 @@ grep "Cwi-a-C-F-" out || {
|
||||
# while on older unfixed we just notice needs_check
|
||||
grep "Cwi-c-C---" out
|
||||
sleep .1
|
||||
# And now cache is finaly Failed
|
||||
# And now cache is finally Failed
|
||||
check lv_attr_bit health $vg/$lv1 "F"
|
||||
}
|
||||
check lv_field $vg/$lv1 lv_health_status "failed"
|
||||
@ -138,7 +138,7 @@ aux disable_dev "$dev1"
|
||||
|
||||
# Check it is prompting for confirmation
|
||||
not lvconvert --uncache $vg/$lv1
|
||||
# Check --yes is not enought to drop writethrough caching
|
||||
# Check --yes is not enough to drop writethrough caching
|
||||
not lvconvert --yes --uncache $vg/$lv1
|
||||
# --force needs --yes to drop when Check its prompting
|
||||
not lvconvert --force --uncache $vg/$lv1
|
||||
|
@ -41,7 +41,7 @@ mkdir "$MOUNT_DIR"
|
||||
aux delay_dev "$dev2" 0 500 "$(get first_extent_sector "$dev2"):"
|
||||
aux delay_dev "$dev4" 0 500 "$(get first_extent_sector "$dev4"):"
|
||||
#
|
||||
# Enforce syncronization
|
||||
# Enforce synchronization
|
||||
# ATM requires unmounted/unused LV??
|
||||
#
|
||||
lvchange --yes --resync $vg/$lv1
|
||||
|
@ -154,7 +154,7 @@ lvremove -f $vg
|
||||
|
||||
#####################################################
|
||||
#
|
||||
# Check some prohibitted conversions
|
||||
# Check some prohibited conversions
|
||||
#
|
||||
#####################################################
|
||||
|
||||
|
@ -37,7 +37,7 @@ aux prepare_vg 4 6400
|
||||
# convert to thin-pool with VDO backend from existing VG/LV
|
||||
lvcreate -L5G --name $lv1 $vg
|
||||
mkfs.ext4 "$DM_DEV_DIR/$vg/$lv1"
|
||||
# Conversion catched present filesystem and should fail
|
||||
# Conversion caught present filesystem and should fail
|
||||
fail lvconvert -Wy --type thin-pool -c 256K --deduplication n --pooldatavdo y $vg/$lv1
|
||||
# With --yes it should work over prompt
|
||||
lvconvert --yes -Wy --type thin-pool -c 256K --deduplication n --pooldatavdo y $vg/$lv1
|
||||
|
@ -76,7 +76,7 @@ lvconvert --yes -c 64 --stripes 2 --thinpool $vg/$lv1 --readahead 48
|
||||
lvremove -f $vg
|
||||
|
||||
|
||||
# Swaping of metadata volume
|
||||
# Swapping of metadata volume
|
||||
lvcreate -L1T -n $lv1 $vg
|
||||
lvcreate -L32 -n $lv2 $vg
|
||||
lvconvert --yes -c 8M --type thin-pool $vg/$lv1 2>&1 | tee err
|
||||
@ -116,7 +116,7 @@ $INVALID lvconvert -c -256 --thinpool $vg/$lv1 --poolmetadata $vg/$lv2
|
||||
# non multiple of 64KiB fails
|
||||
$INVALID lvconvert -c 88 --thinpool $vg/$lv1 --poolmetadata $vg/$lv2
|
||||
|
||||
# cannot use same LV for pool and convertion
|
||||
# cannot use same LV for pool and conversion
|
||||
$INVALID lvconvert --yes --thinpool $vg/$lv3 -T $vg/$lv3
|
||||
|
||||
# Warning about smaller then suggested
|
||||
|
@ -34,7 +34,7 @@ test_msg_() {
|
||||
aux prepare_vg
|
||||
|
||||
# lvcreate wipes signatures when found on newly created LV - test this on "swap".
|
||||
# Test all combinatios with -Z{y|n} and -W{y|n} and related lvm.conf settings.
|
||||
# Test all combinations with -Z{y|n} and -W{y|n} and related lvm.conf settings.
|
||||
|
||||
lvcreate -l1 -n $lv1 $vg
|
||||
init_lv_
|
||||
|
@ -48,7 +48,7 @@ lvchange --zero n $vg/pool3
|
||||
lvcreate -V10G $vg/pool3 -n $lv1
|
||||
lvcreate -V2G $vg/pool3 -n $lv2
|
||||
dd if=/dev/zero of="$DM_DEV_DIR/$vg/$lv1" bs=512b count=1 conv=fdatasync
|
||||
# ...excercise write speed to 'zero' device ;)
|
||||
# ...exercise write speed to 'zero' device ;)
|
||||
dd if=/dev/zero of="$DM_DEV_DIR/$vg/$lv2" bs=64K count=32767 oflag=direct
|
||||
lvs -a $vg
|
||||
# Check the percentage is not shown as 0.00
|
||||
|
@ -43,7 +43,7 @@ check lv_field $vg/${lv1}_tdata segtype vdo -a
|
||||
lvremove -f $vg
|
||||
|
||||
|
||||
# cannot create thin as thin-pool tupe
|
||||
# cannot create thin as thin-pool type
|
||||
invalid lvcreate --type thin-pool -L5G --pooldatavdo y -V20 $vg/pool
|
||||
|
||||
|
||||
|
@ -220,7 +220,7 @@ not lvcreate -L4M --chunksize 2G -T $vg/pool1
|
||||
# Cannot specify --minor with pool
|
||||
fail lvcreate -L10M --minor 100 -T $vg/pool_minor
|
||||
|
||||
# FIXME: Currently ambigous - is it for thin, thin-pool, both ?
|
||||
# FIXME: Currently ambiguous - is it for thin, thin-pool, both ?
|
||||
fail lvcreate -L4M -Mn -m0 -T --readahead 32 -V20 -n $lv $vg/pool_normal
|
||||
|
||||
# Check read-ahead setting will also pass with -Mn -m0
|
||||
|
@ -188,7 +188,7 @@ check lv_field $vg/$lv5 lv_read_ahead "auto"
|
||||
check lv_field $vg/$lv5 lv_kernel_read_ahead "128.00k" --units k
|
||||
lvcreate -L 8 -n $lv6 -i2 --stripesize 128k --readahead auto $vg
|
||||
check lv_field $vg/$lv6 lv_read_ahead "auto"
|
||||
# For striped device we set double of strip size unrelated to underlaying dev RA size
|
||||
# For striped device we set double of strip size unrelated to underlying dev RA size
|
||||
check lv_field $vg/$lv6 lv_kernel_read_ahead "512.00k" --units k
|
||||
lvremove -ff $vg
|
||||
|
||||
|
@ -22,7 +22,7 @@ SKIP_WITH_LVMPOLLD=1
|
||||
#
|
||||
|
||||
#
|
||||
# FIXME: tempororarily disable this test until fixed VDO driver is relased
|
||||
# FIXME: temporarily disable this test until fixed VDO driver is released
|
||||
# should really be 6.2.2 - currently goes with vdo-6.2.2.18
|
||||
aux have_vdo 6 2 1 || skip
|
||||
aux have_cache 1 3 0 || skip
|
||||
|
@ -22,7 +22,7 @@ aux have_raid 1 7 0 || skip
|
||||
|
||||
aux prepare_vg 6
|
||||
|
||||
# raid0 loosing a leg
|
||||
# raid0 losing a leg
|
||||
lvcreate -aey --type raid0 -i5 -l5 -n $lv $vg
|
||||
lvdisplay $vg/$lv|grep "LV Status *available"
|
||||
aux disable_dev "$dev1"
|
||||
@ -30,7 +30,7 @@ lvdisplay $vg/$lv|grep "LV Status *NOT available (partial)"
|
||||
aux enable_dev "$dev1"
|
||||
lvremove -y $vg/$lv
|
||||
|
||||
# raid1 loosing a leg/all legs
|
||||
# raid1 losing a leg/all legs
|
||||
lvcreate -aey --type raid1 -m1 -l5 -n $lv $vg "$dev1" "$dev2"
|
||||
lvdisplay $vg/$lv|grep "LV Status *available"
|
||||
aux disable_dev "$dev1"
|
||||
@ -40,7 +40,7 @@ lvdisplay $vg/$lv|grep "LV Status *NOT available (partial)"
|
||||
aux enable_dev "$dev1" "$dev2"
|
||||
lvremove -y $vg/$lv
|
||||
|
||||
# raid5 loosing a leg/2 legs
|
||||
# raid5 losing a leg/2 legs
|
||||
lvcreate -aey --type raid5 -i3 -l5 -n $lv $vg
|
||||
lvdisplay $vg/$lv|grep "LV Status *available"
|
||||
aux disable_dev "$dev1"
|
||||
@ -50,7 +50,7 @@ lvdisplay $vg/$lv|grep "LV Status *NOT available (partial)"
|
||||
aux enable_dev "$dev1" "$dev2"
|
||||
lvremove -y $vg/$lv
|
||||
|
||||
# raid6 loosing a leg/2 legs/3 legs
|
||||
# raid6 losing a leg/2 legs/3 legs
|
||||
lvcreate -aey --type raid6 -i3 -l5 -n $lv $vg
|
||||
lvdisplay $vg/$lv|grep "LV Status *available"
|
||||
aux disable_dev "$dev1"
|
||||
@ -62,7 +62,7 @@ lvdisplay $vg/$lv|grep "LV Status *NOT available (partial)"
|
||||
aux enable_dev "$dev1" "$dev2" "$dev3"
|
||||
lvremove -y $vg/$lv
|
||||
|
||||
# raid10 loosing a leg per mirror group / a complete mirror group
|
||||
# raid10 losing a leg per mirror group / a complete mirror group
|
||||
lvcreate -aey --type raid10 -i3 -l3 -n $lv $vg
|
||||
lvdisplay $vg/$lv|grep "LV Status *available"
|
||||
aux disable_dev "$dev1"
|
||||
|
@ -55,7 +55,7 @@ pre="75.00"
|
||||
test_equal_ $pre || die "Data percentage has changed!"
|
||||
|
||||
|
||||
# Now triger allocation of 1 extra pool chunk
|
||||
# Now trigger allocation of 1 extra pool chunk
|
||||
dd if=/dev/zero of="$DM_DEV_DIR/mapper/$vg-$lv1" bs=1c count=1 seek=786433 conv=fdatasync
|
||||
|
||||
lvs -a -o+chunksize $vg
|
||||
|
@ -86,7 +86,7 @@ fake_metadata_ 400 2 >data
|
||||
# Swap volume with restored fake metadata
|
||||
lvconvert -y --chunksize 64k --thinpool $vg/pool --poolmetadata $vg/$lv1
|
||||
|
||||
# Not alllowed when thin-pool metadata free space is <75% for 2M meta
|
||||
# Not allowed when thin-pool metadata free space is <75% for 2M meta
|
||||
fail lvcreate -V20 $vg/pool
|
||||
|
||||
|
||||
@ -99,7 +99,7 @@ test -z "$BIG_DATA" || DATA=7400
|
||||
fake_metadata_ "$DATA" 2 >data
|
||||
"$LVM_TEST_THIN_RESTORE_CMD" -i data -o "$DM_DEV_DIR/mapper/$vg-$lv2"
|
||||
|
||||
# Check tha restored metadata are OK for thin_check
|
||||
# Check the restored metadata are OK for thin_check
|
||||
"$LVM_TEST_THIN_CHECK_CMD" "$DM_DEV_DIR/mapper/$vg-$lv2"
|
||||
|
||||
# Swap volume with restored fake metadata
|
||||
@ -119,7 +119,7 @@ lvs -a $vg
|
||||
lvextend --use-policies --config "\
|
||||
activation/thin_pool_autoextend_percent=1 \
|
||||
activation/thin_pool_autoextend_threshold=99" $vg/pool
|
||||
# Originaly wanted to test <88% -
|
||||
# Originally wanted to test <88% -
|
||||
# however some older kernels consume a bit more space, so be happy
|
||||
# when it's <90%
|
||||
test "$(meta_percent_)" -lt "90"
|
||||
|
@ -57,7 +57,7 @@ lvcreate -L4 -n pool $vg
|
||||
lvcreate --type raid1 -m1 -L2 --nosync -n meta $vg
|
||||
lvconvert --yes --thinpool $vg/pool --poolmetadata $vg/meta
|
||||
# using big enough pool so resize of pool metadata is enforced
|
||||
# (and it's using a differnt segtype)
|
||||
# (and it's using a different segtype)
|
||||
lvextend -L3G $vg/pool
|
||||
|
||||
vgremove -ff $vg
|
||||
|
@ -43,7 +43,7 @@ aux prepare_vg 1 9000
|
||||
lvcreate --vdo -V2G -L4G -n $lv1 $vg/vpool
|
||||
|
||||
pre=$(percent_)
|
||||
# Check out VDO pool is bellow 70%
|
||||
# Check out VDO pool is below 70%
|
||||
test "$pre" -lt 70
|
||||
|
||||
# Fill space to be over 70%
|
||||
@ -56,8 +56,8 @@ test "$pre" -ge 70
|
||||
wait_for_change_ $pre
|
||||
|
||||
pre=$(percent_)
|
||||
# Check out VDO pool gets again bellow 70%
|
||||
test "$pre" -lt 70 || die "Data percentage has not changed bellow 70%!"
|
||||
# Check out VDO pool gets again below 70%
|
||||
test "$pre" -lt 70 || die "Data percentage has not changed below 70%!"
|
||||
|
||||
# 4G * 1.2 (20%) -> 4.8G
|
||||
check lv_field $vg/vpool size "4.80g"
|
||||
|
@ -10,7 +10,7 @@
|
||||
# along with this program; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
# Excersize resize of filesystem when size of LV already matches
|
||||
# Exercise resize of filesystem when size of LV already matches
|
||||
# https://bugzilla.redhat.com/1354396
|
||||
|
||||
|
||||
|
@ -44,7 +44,7 @@ not lvreduce -L 32M $vg/lv
|
||||
lvremove -ff $vg
|
||||
|
||||
lvcreate --type mirror -aey -L 4 -n $lv1 $vg
|
||||
# Incorrent name for resized LV
|
||||
# Incorrect name for resized LV
|
||||
not lvextend --type mirror -L 10 -n $lv1 $vg
|
||||
# Same size
|
||||
not lvextend --type mirror -L 4 $vg/$lv1
|
||||
|
@ -22,7 +22,7 @@ test "$LVM_TEST_DEVDIR" = "/dev" && skip
|
||||
aux prepare_devs 2
|
||||
aux extend_filter_LVMTEST
|
||||
|
||||
# Setup mangling to 'none' globaly for all libdm users
|
||||
# Setup mangling to 'none' globally for all libdm users
|
||||
export DM_DEFAULT_NAME_MANGLING_MODE=none
|
||||
|
||||
pv_ugly="__\"!@#\$%^&*,()|@||'\\\"__pv1"
|
||||
|
@ -172,7 +172,7 @@ function check_mangle_cmd()
|
||||
fi
|
||||
|
||||
if [ "$r" = 0 ] && [ "$rename_expected" = 1 ]; then
|
||||
# successfuly renamed to expected name
|
||||
# successfully renamed to expected name
|
||||
remove_dm_dev none "$expected"
|
||||
elif [ $r = 1 ]; then
|
||||
# failed to rename to expected or renamed when it should not - find the new name
|
||||
@ -181,7 +181,7 @@ function check_mangle_cmd()
|
||||
remove_dm_dev none "$new_name" || \
|
||||
remove_dm_dev none "$dm_name" || remove_dm_dev none "$expected"
|
||||
else
|
||||
# successfuly done nothing
|
||||
# successfully done nothing
|
||||
remove_dm_dev none "$dm_name"
|
||||
fi
|
||||
|
||||
|
@ -848,7 +848,7 @@ not grep "$dev12" err
|
||||
not grep "$dev13" err
|
||||
grep "$dev14" err
|
||||
|
||||
# tag refering to pv with mda and pv without mda
|
||||
# tag referring to pv with mda and pv without mda
|
||||
pvdisplay -s @V3 | tee err
|
||||
not grep "$dev10" err
|
||||
not grep "$dev2" err
|
||||
@ -864,7 +864,7 @@ not grep "$dev12" err
|
||||
not grep "$dev13" err
|
||||
not grep "$dev14" err
|
||||
|
||||
# tag refering to one pv without mda
|
||||
# tag referring to one pv without mda
|
||||
pvdisplay -s @V3D8 | tee err
|
||||
not grep "$dev10" err
|
||||
not grep "$dev2" err
|
||||
@ -996,7 +996,7 @@ not grep "$dev12" err
|
||||
not grep "$dev13" err
|
||||
grep "$dev14" err
|
||||
|
||||
# tag refering to pv with mda and pv without mda
|
||||
# tag referring to pv with mda and pv without mda
|
||||
pvs @V3 | tee err
|
||||
not grep "$dev10" err
|
||||
not grep "$dev2" err
|
||||
@ -1012,7 +1012,7 @@ not grep "$dev12" err
|
||||
not grep "$dev13" err
|
||||
not grep "$dev14" err
|
||||
|
||||
# tag refering to one pv without mda
|
||||
# tag referring to one pv without mda
|
||||
pvs @V3D8 | tee err
|
||||
not grep "$dev10" err
|
||||
not grep "$dev2" err
|
||||
|
@ -11,7 +11,7 @@
|
||||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
# Exercise obtaining cache parameter from various sources
|
||||
# Either commmand line or metadata profile or implicit default...
|
||||
# Either command line or metadata profile or implicit default...
|
||||
|
||||
|
||||
SKIP_WITH_LVMPOLLD=1
|
||||
|
@ -11,7 +11,7 @@
|
||||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
# Exercise obtaining vdo parameters from various sources
|
||||
# Either commmand line or metadata profile or implicit default...
|
||||
# Either command line or metadata profile or implicit default...
|
||||
|
||||
|
||||
SKIP_WITH_LVMPOLLD=1
|
||||
|
@ -10,7 +10,7 @@
|
||||
# along with this program; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
# tests, write failer on PV1 is not reporting errors on PV2 or PV3...
|
||||
# tests, write failure on PV1 is not reporting errors on PV2 or PV3...
|
||||
|
||||
SKIP_WITH_LVMLOCKD=1
|
||||
SKIP_WITH_LVMPOLLD=1
|
||||
|
@ -28,7 +28,7 @@ aux lvmconf 'devices/pv_min_size = 10240'
|
||||
# and test device is not visible
|
||||
not check pv_field "$dev1" pv_name "$dev1"
|
||||
|
||||
# set too low value errornous value
|
||||
# set too low value erroneous value
|
||||
aux lvmconf 'devices/pv_min_size = -100'
|
||||
|
||||
# check the incorrect value is printed
|
||||
|
@ -28,7 +28,7 @@ check pv_field "$dev1" ba_start "262144"
|
||||
check pv_field "$dev1" ba_size "786432"
|
||||
check pv_field "$dev1" pe_start "1048576"
|
||||
|
||||
#COMM 'pvcreate with booloader area size - test corner cases'
|
||||
#COMM 'pvcreate with bootloader area size - test corner cases'
|
||||
dev_size=$(pvs -o pv_size --noheadings "$dev1")
|
||||
pv_size=$(( dev_size - 1048576 )) # device size - 1m pe_start = area for data
|
||||
|
||||
|
@ -74,7 +74,7 @@ not pvcreate --labelsector -1 "$dev1"
|
||||
#COMM 'pvcreate rejects labelsector > 1000000000000'
|
||||
not pvcreate --labelsector 1000000000000 "$dev1"
|
||||
|
||||
# other possibilites based on code inspection (not sure how hard)
|
||||
# other possibilities based on code inspection (not sure how hard)
|
||||
# x. device too small (min of 512 * 1024 KB)
|
||||
# x. device filtered out
|
||||
# x. unable to open /dev/urandom RDONLY
|
||||
|
@ -180,7 +180,7 @@ lvs_not_changed_ $lv1 $lv3
|
||||
check_and_cleanup_lvs_
|
||||
|
||||
# ---
|
||||
# partial segment match (source segment splitted)
|
||||
# partial segment match (source segment split)
|
||||
|
||||
#COMM "match to the start of segment:from pv2:0-0 to pv5"
|
||||
restore_lvs_
|
||||
@ -204,7 +204,7 @@ lvs_not_changed_ $lv1 $lv3
|
||||
check_and_cleanup_lvs_
|
||||
|
||||
# ---
|
||||
# destination segment splitted
|
||||
# destination segment split
|
||||
|
||||
#COMM "no destination split: from pv2:0-2 to pv5"
|
||||
restore_lvs_
|
||||
|
@ -30,7 +30,7 @@ test_pvmove_resume() {
|
||||
# Create multisegment LV
|
||||
lvcreate -an -Zn -l50 -n $lv1 $vg "$dev1"
|
||||
lvextend -l+50 $vg/$lv1 "$dev2"
|
||||
# next LV on same VG and differetnt PV (we want to test 2 pvmoves per VG)
|
||||
# next LV on same VG and different PV (we want to test 2 pvmoves per VG)
|
||||
lvcreate -an -Zn -l50 -n $lv2 $vg "$dev3"
|
||||
|
||||
aux delay_dev "$dev4" 0 30 "$(get first_extent_sector "$dev4"):"
|
||||
|
@ -38,7 +38,7 @@ vgcreate $SHARED $vg "$dev1" "$dev2"
|
||||
not pvremove "$dev2" "$dev3"
|
||||
|
||||
for mdacp in 0 1 2; do
|
||||
# check pvremove truly wipes the label (pvscan wont find) (---metadatacopies $mdacp)
|
||||
# check pvremove truly wipes the label (pvscan won't find) (---metadatacopies $mdacp)
|
||||
pvcreate --metadatacopies $mdacp "$dev3"
|
||||
pvremove "$dev3"
|
||||
# try to remove agail - should fail cleanly
|
||||
@ -64,7 +64,7 @@ for mdacp in 0 1 2; do
|
||||
not pvremove -ff "$dev1" 2>&1 | tee out
|
||||
grep "is used" out
|
||||
|
||||
# pvremove -ff succeds with confirmation when pv in a vg (---metadatacopies $mdacp)
|
||||
# pvremove -ff succeeds with confirmation when pv in a vg (---metadatacopies $mdacp)
|
||||
pvremove -ffy "$dev1" 2>&1 | tee out
|
||||
grep "is used" out
|
||||
not pvs "$dev1"
|
||||
|
@ -27,7 +27,7 @@ check pv_field "$dev1" pv_size 4.00m
|
||||
check pv_field "$dev1" pv_mda_count 2
|
||||
pvs "$dev1"
|
||||
|
||||
# Check physical size is checked agains metadatasize
|
||||
# Check physical size is checked against metadatasize
|
||||
pvcreate --metadatasize 2m --metadatacopies 1 -y "$dev1"
|
||||
not pvresize --setphysicalvolumesize 2m -y "$dev1" |& tee out
|
||||
grep "Size must exceed physical extent start of 6144 sectors on" out
|
||||
|
@ -198,7 +198,7 @@ sel lv 'lv_minor=254' xyz
|
||||
# also test synonym for string field type
|
||||
sel lv 'seg_monitor=undefined' vol1 vol2 abc abc orig xyz
|
||||
|
||||
# if size unit not spefied, the 'm' (MiB) unit is used by default
|
||||
# if size unit not specified, the 'm' (MiB) unit is used by default
|
||||
sel lv 'lv_size=8' vol1
|
||||
|
||||
# no need to use quotes for the whole selection string if it does not clash with shell
|
||||
|
@ -46,7 +46,7 @@ check vg_field $vg1 vg_tags 101
|
||||
not check vg_field $vg2 vg_tags 101
|
||||
vgchange --deltag 101
|
||||
|
||||
# select contains LVS fiels
|
||||
# select contains LVS field
|
||||
vgchange --addtag 102 -S "lv_name=lv2"
|
||||
check vg_field $vg1 vg_tags 102
|
||||
not check vg_field $vg2 vg_tags 102
|
||||
@ -119,7 +119,7 @@ not check lv_field $vg2/lv4 lv_tags 201
|
||||
not check lv_field $vg2/lv1 lv_tags 201
|
||||
lvchange --deltag 201 $vg1 $vg2
|
||||
|
||||
# select contains LVS fiels
|
||||
# select contains LVS field
|
||||
lvchange --addtag 202 -S "lv_name=lv2"
|
||||
not check lv_field $vg1/lv1 lv_tags 202
|
||||
check lv_field $vg1/lv2 lv_tags 202
|
||||
|
@ -11,8 +11,8 @@
|
||||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
#
|
||||
# Testcase for bugzilla #621173
|
||||
# excercises partition table scanning code path
|
||||
# Testcase for bugzilla #621173
|
||||
# exercises partition table scanning code path
|
||||
#
|
||||
|
||||
|
||||
|
@ -66,7 +66,7 @@ check lv_field $vg/lvol0_pmspare size "15.81g"
|
||||
# Size should be cropped to 33161216 sectors ~15.81GiB
|
||||
dmsetup table ${vg}-pool_tmeta | grep 33161216
|
||||
|
||||
# Without cropping we can grop to ~15.88GiB
|
||||
# Without cropping we can grow to ~15.88GiB
|
||||
lvresize -L+10G $vg/pool_tmeta
|
||||
check lv_field $vg/lvol0_pmspare size "<15.88g"
|
||||
lvremove -f $vg
|
||||
|
@ -84,7 +84,7 @@ lvconvert -y --thinpool $vg/pool --poolmetadata $vg/$lv1
|
||||
lvchange -ay $vg
|
||||
|
||||
lvchange -ay $vg/$lv2
|
||||
# Provisiong and last free bits in metadata
|
||||
# Provisioning and last free bits in metadata
|
||||
dd if=/dev/zero of="$DM_DEV_DIR/mapper/$vg-$lv2" bs=1M count=1 oflag=direct || true
|
||||
|
||||
check lv_attr_bit health $vg/pool "M" || {
|
||||
|
@ -10,7 +10,7 @@
|
||||
# along with this program; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
# test foreing user of thin-pool
|
||||
# test foreign user of thin-pool
|
||||
|
||||
|
||||
SKIP_WITH_LVMPOLLD=1
|
||||
@ -53,7 +53,7 @@ lvcreate --errorwhenfull y -L2 -T $vg/pool
|
||||
POOL="$vg-pool"
|
||||
THIN="${PREFIX}_thin"
|
||||
|
||||
# Foreing user is using own ioctl command to create thin devices
|
||||
# Foreign user is using own ioctl command to create thin devices
|
||||
dmsetup message $POOL 0 "create_thin 0"
|
||||
dmsetup message $POOL 0 "set_transaction_id 0 1"
|
||||
|
||||
@ -94,7 +94,7 @@ test "$(percent_)" -gt 95
|
||||
|
||||
pvchange -x y "$dev1" "$dev2"
|
||||
|
||||
# FIXME: ATM tell dmeventd explicitely we've changed metadata
|
||||
# FIXME: ATM tell dmeventd explicitly we've changed metadata
|
||||
# however dmeventd shall be aware of any metadata change
|
||||
# and automagically retry resize operation after that.
|
||||
lvchange --refresh $vg/pool
|
||||
|
@ -10,7 +10,7 @@
|
||||
# along with this program; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
# test foreing user of thin-pool
|
||||
# test foreign user of thin-pool
|
||||
|
||||
|
||||
SKIP_WITH_LVMPOLLD=1
|
||||
@ -48,7 +48,7 @@ lvcreate -L2 -T $vg/pool
|
||||
POOL="$vg-pool"
|
||||
THIN="${PREFIX}_thin"
|
||||
|
||||
# Foreing user is using own ioctl command to create thin devices
|
||||
# Foreign user is using own ioctl command to create thin devices
|
||||
dmsetup message $POOL 0 "create_thin 0"
|
||||
dmsetup message $POOL 0 "set_transaction_id 0 2"
|
||||
|
||||
|
@ -42,7 +42,7 @@ vgchange -an $vg
|
||||
|
||||
|
||||
# Try to now activate all existing pool - this will generate in about 10sec later
|
||||
# storm of intial call of 'lvextend --use-policies'
|
||||
# storm of initial call of 'lvextend --use-policies'
|
||||
vgchange -ay $vg
|
||||
|
||||
# Every 10sec. ATM there is DM status monitoring made by dmeventd
|
||||
|
@ -18,7 +18,7 @@ SKIP_WITH_LVMLOCKD=1
|
||||
. lib/inittest
|
||||
|
||||
# FIXME: currently test relies on several system properties to be
|
||||
# explcitely configure and directly modifies their state
|
||||
# explicitly configure and directly modifies their state
|
||||
|
||||
#
|
||||
# $ cat /tmp/devs
|
||||
|
@ -42,7 +42,7 @@ export MKE2FS_CONFIG="$TESTDIR/lib/mke2fs.conf"
|
||||
aux have_vdo 6 2 0 || skip
|
||||
|
||||
# Simple implementation of umount when lvextend fails
|
||||
# Script enforces failin exit, so dmeventd tries several times
|
||||
# Script enforces failing exit, so dmeventd tries several times
|
||||
# repeatedly to invoke this for given percentage
|
||||
cat <<- EOF >testcmd.sh
|
||||
#!/bin/sh
|
||||
|
@ -17,7 +17,7 @@ SKIP_WITH_LVMPOLLD=1
|
||||
|
||||
. lib/inittest
|
||||
|
||||
# Use local for this test vdo configuratoin
|
||||
# Use local for this test vdo configuration
|
||||
VDO_CONFIG="vdotestconf.yml"
|
||||
VDOCONF="-f $VDO_CONFIG"
|
||||
#VDOCONF=""
|
||||
@ -163,7 +163,7 @@ aux extend_filter "a|$TEST|"
|
||||
aux extend_devices "$TEST"
|
||||
|
||||
#
|
||||
# Unfortunatelly generates this in syslog:
|
||||
# Unfortunately generates this in syslog:
|
||||
#
|
||||
# vdo-start-by-dev@loop0.service: Main process exited, code=exited, status=1/FAILURE
|
||||
# vdo-start-by-dev@loop0.service: Failed with result 'exit-code'.
|
||||
@ -212,7 +212,7 @@ if which "$LVM_VDO_PREPARE" ; then
|
||||
cp "$VDO_CONFIG" "$VDO_CONFIG.backup"
|
||||
lvm_import_vdo --abort-after-vdo-convert --vdo-config "$VDO_CONFIG" -v -y --name $vg/$lv "$TEST"
|
||||
rm -f debug.log*
|
||||
# Restore VDO configuration (as it's been removed with succeful vdo conversion
|
||||
# Restore VDO configuration (as it's been removed with successful vdo conversion
|
||||
cp "$VDO_CONFIG.backup" "$VDO_CONFIG"
|
||||
# Check VDO header is seen at 2M offset
|
||||
blkid -c /dev/null --probe --offset 2M "$TEST" || die "VDO header at unknown offset, expected 2M!"
|
||||
|
@ -17,7 +17,7 @@ SKIP_WITH_LVMPOLLD=1
|
||||
|
||||
. lib/inittest
|
||||
|
||||
# Use local for this test vdo configuratoin
|
||||
# Use local for this test vdo configuration
|
||||
VDO_CONFIG="vdotestconf.yml"
|
||||
VDOCONF="-f $VDO_CONFIG"
|
||||
#VDOCONF=""
|
||||
|
@ -10,7 +10,7 @@
|
||||
# along with this program; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
# Check perfomance of activation and deactivation
|
||||
# Check performance of activation and deactivation
|
||||
|
||||
SKIP_WITH_LVMPOLLD=1
|
||||
|
||||
|
@ -27,7 +27,7 @@ invalid vgimport
|
||||
# Cannot combine -a and VG name
|
||||
invalid vgexport -a $vg
|
||||
invalid vgimport -a $vg1
|
||||
# Cannot export unknonw VG
|
||||
# Cannot export unknown VG
|
||||
fail vgexport ${vg1}-non
|
||||
fail vgimport ${vg1}-non
|
||||
# Cannot export VG with active volumes
|
||||
|
@ -90,7 +90,7 @@ aux disable_dev "$dev1"
|
||||
#pvcreate -ff -y "$dev1"
|
||||
# vgreduce rejects --removemissing --mirrorsonly --force when nonmirror lv lost too
|
||||
#not vgreduce -c n --removemissing --mirrorsonly --force $vg1
|
||||
# CHECKME - command above was rejected becuase of '-c n'
|
||||
# CHECKME - command above was rejected because of '-c n'
|
||||
vgreduce --removemissing --mirrorsonly --force $vg1
|
||||
|
||||
aux enable_dev "$dev1"
|
||||
|
@ -46,7 +46,7 @@ grep "must be inactive" err
|
||||
vgchange -an $vg
|
||||
|
||||
|
||||
# Try spliting component into separe VG
|
||||
# Try splitting component into separate VG
|
||||
fail vgsplit $vg $vg1 "$dev1" 2>&1 | tee err
|
||||
grep "Cannot split cache origin" err
|
||||
|
||||
@ -61,7 +61,7 @@ grep "Cannot split cache origin" err
|
||||
|
||||
fail vgsplit $vg $vg1 "$dev2" "$dev3" 2>&1 | tee err
|
||||
|
||||
# Finaly something that should pass
|
||||
# Finally something that should pass
|
||||
vgsplit $vg $vg1 "$dev1" "$dev2" "$dev3"
|
||||
|
||||
vgs $vg $vg1
|
||||
@ -77,7 +77,7 @@ vgremove -ff $vg
|
||||
vgremove -ff $vg1
|
||||
|
||||
#
|
||||
# Check we handle pmspare for splitted VGs
|
||||
# Check we handle pmspare for split VGs
|
||||
#
|
||||
vgcfgrestore -f vgb $vg
|
||||
|
||||
|
@ -28,7 +28,7 @@ create_vg_() {
|
||||
}
|
||||
|
||||
aux prepare_pvs 5 10
|
||||
# FIXME: paramaterize lvm1 vs lvm2 metadata; most of these tests should run
|
||||
# FIXME: parameterize lvm1 vs lvm2 metadata; most of these tests should run
|
||||
# fine with lvm1 metadata as well; for now, just add disks 5 and 6 as lvm1
|
||||
# metadata
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user