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

tests: put devs into ""

This commit is contained in:
Zdenek Kabelac 2014-10-07 09:54:47 +02:00
parent 75c4d268e9
commit 236db9fc0d
17 changed files with 1351 additions and 1356 deletions

View File

@ -15,5 +15,5 @@ aux have_thin 1 0 0 || skip
aux prepare_vg 3
lvcreate -i2 -l2 -T $vg/pool2
lvextend -l+2 $vg/pool2 $dev2 $dev3
lvextend -l+2 $vg/pool2 "$dev2" "$dev3"
should lvextend -l+100%FREE $vg/pool2

View File

@ -13,7 +13,7 @@
test -e LOCAL_LVMETAD || skip
aux prepare_pvs 2
vgcreate $vg1 $dev1 $dev2
vgcreate $vg1 "$dev1" "$dev2"
lvcreate -n bar -l 1 $vg1
(echo | aux lvmetad_talk) || skip

View File

@ -25,7 +25,7 @@ pvs | should grep "$dev1"
pvcreate -ff -y --metadatatype 1 "$dev1" "$dev2"
vgcreate --metadatatype 1 $vg1 "$dev1" "$dev2"
lvcreate -l1 $vg1
pvremove -ff -y $dev2
pvremove -ff -y "$dev2"
vgchange -an $vg1
not lvremove $vg1
not vgremove -ff -y $vg1

View File

@ -15,7 +15,7 @@ test -e LOCAL_LVMETAD || skip
aux prepare_pvs 2
vgcreate $vg1 $dev1 $dev2
vgcreate $vg1 "$dev1" "$dev2"
lvcreate -n testlv -m 1 -l 1 $vg1
vgs | grep $vg1
@ -23,7 +23,7 @@ lvscan --cache $vg1/testlv
vgs | grep $vg1
aux disable_dev $dev2
aux disable_dev "$dev2"
# pvscan --cache already ran for the disabled device above, this should be a
# no-op (but should not segfault!)

View File

@ -14,7 +14,7 @@
test -e LOCAL_LVMETAD || skip
aux prepare_pvs 2
vgcreate $vg1 $dev1 $dev2
vgcreate $vg1 "$dev1" "$dev2"
lvchange -ay $vg1 2>&1 | not grep "Failed to connect"
kill $(< LOCAL_LVMETAD)
lvchange -ay $vg1 2>&1 | grep "Failed to connect"

View File

@ -15,7 +15,7 @@ test -e LOCAL_LVMETAD || skip
aux prepare_pvs 2
vgcreate $vg1 $dev1 $dev2
vgcreate $vg1 "$dev1" "$dev2"
vgs | grep $vg1
pvscan --cache

View File

@ -73,5 +73,5 @@ not pvscan --cache "$dev1" 2>&1 | grep "not found"
not pvscan --cache "$dev2" 2>&1 | grep "not found"
pvs | grep $lvmdev
pvs | not grep $dev1
pvs | not grep $dev2
pvs | not grep "$dev1"
pvs | not grep "$dev2"

View File

@ -27,8 +27,8 @@ grep "Reducing stripe size" err
lvremove -ff $vg
lvcreate -L 10M -n lv $vg $dev1
lvextend -L +10M $vg/lv $dev2
lvcreate -L 10M -n lv $vg "$dev1"
lvextend -L +10M $vg/lv "$dev2"
# Attempt to reduce with lvextend and vice versa:
not lvextend -L 16M $vg/lv

View File

@ -27,8 +27,8 @@ lv_devices_() {
devs=$(get lv_devices "$lv")
for d in $devs; do
(echo "$devices" | grep $d) || return 1
devices=$(echo $devices | sed "s/$d//")
(echo "$devices" | grep "$d") || return 1
devices=$(echo "$devices" | sed "s/$d//")
done
test -z "$(echo $devices | sed 's/ //g')"

View File

@ -16,19 +16,19 @@ test_description='Test process_each_pv with zero mda'
aux prepare_devs 14
# for vg1
pvcreate $dev10
pvcreate "$dev10"
# for vg2
pvcreate $dev2 --metadatacopies 0
pvcreate $dev3
pvcreate $dev4
pvcreate $dev5
pvcreate "$dev2" --metadatacopies 0
pvcreate "$dev3"
pvcreate "$dev4"
pvcreate "$dev5"
# for vg3
pvcreate $dev6 --metadatacopies 0
pvcreate $dev7 --metadatacopies 0
pvcreate $dev8 --metadatacopies 0
pvcreate $dev9
pvcreate "$dev6" --metadatacopies 0
pvcreate "$dev7" --metadatacopies 0
pvcreate "$dev8" --metadatacopies 0
pvcreate "$dev9"
# orphan with mda
pvcreate "$dev11"
@ -43,18 +43,18 @@ vgcreate $vg1 "$dev10"
vgcreate $vg2 "$dev2" "$dev3" "$dev4" "$dev5"
vgcreate $vg3 "$dev6" "$dev7" "$dev8" "$dev9"
pvs -a >err
grep $dev10 err
grep $dev2 err
grep $dev3 err
grep $dev4 err
grep $dev5 err
grep $dev6 err
grep $dev7 err
grep $dev8 err
grep $dev9 err
grep $dev11 err
grep $dev12 err
grep $dev13 err
grep $dev14 err
pvs -a | tee err
grep "$dev10" err
grep "$dev2" err
grep "$dev3" err
grep "$dev4" err
grep "$dev5" err
grep "$dev6" err
grep "$dev7" err
grep "$dev8" err
grep "$dev9" err
grep "$dev11" err
grep "$dev12" err
grep "$dev13" err
grep "$dev14" err

View File

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2008-2013 Red Hat, Inc. All rights reserved.
# Copyright (C) 2014 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
@ -15,13 +15,11 @@ test_description='Test process_each_pv with zero mda'
aux prepare_devs 2
pvcreate $dev1 --metadatacopies 0
pvcreate $dev2
pvcreate "$dev1" --metadatacopies 0
pvcreate "$dev2"
vgcreate $vg1 "$dev1" "$dev2"
pvdisplay -a -C >err
cat err
grep $dev1 err
grep $dev2 err
pvdisplay -a -C | tee err
grep "$dev1" err
grep "$dev2" err

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2008-2013 Red Hat, Inc. All rights reserved.
# Copyright (C) 2008-2014 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
@ -76,152 +76,152 @@ old_reduced="28.00m"
new_request="20.00m"
new_reduced="16.00m"
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field $dev9 pv_size $old_reduced
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
check pv_field "$dev9" pv_size $old_reduced
# one pv
pvresize --setphysicalvolumesize $new_request $dev10
check pv_field $dev10 pv_size $new_reduced
pvresize --setphysicalvolumesize $new_request "$dev10"
check pv_field "$dev10" pv_size $new_reduced
# unchanged
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field $dev9 pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
check pv_field "$dev9" pv_size $old_reduced
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
# two pvs in separate vgs
pvresize --setphysicalvolumesize $new_request $dev2 $dev6
check pv_field $dev2 pv_size $new_reduced
check pv_field $dev6 pv_size $new_reduced
pvresize --setphysicalvolumesize $new_request "$dev2" "$dev6"
check pv_field "$dev2" pv_size $new_reduced
check pv_field "$dev6" pv_size $new_reduced
# unchanged
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field $dev9 pv_size $old_reduced
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
check pv_field "$dev9" pv_size $old_reduced
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
# one tag on one pv
pvresize --setphysicalvolumesize $new_request @V2D4
check pv_field $dev4 pv_size $new_reduced
check pv_field "$dev4" pv_size $new_reduced
# unchanged
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field $dev9 pv_size $old_reduced
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
check pv_field "$dev9" pv_size $old_reduced
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
# one tag on all pvs in one vg
pvresize --setphysicalvolumesize $new_request @V3
check pv_field $dev6 pv_size $new_reduced
check pv_field $dev7 pv_size $new_reduced
check pv_field $dev8 pv_size $new_reduced
check pv_field $dev9 pv_size $new_reduced
check pv_field "$dev6" pv_size $new_reduced
check pv_field "$dev7" pv_size $new_reduced
check pv_field "$dev8" pv_size $new_reduced
check pv_field "$dev9" pv_size $new_reduced
# unchanged
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
# one tag on some pvs in one vg
pvresize --setphysicalvolumesize $new_request @V2D45
check pv_field $dev4 pv_size $new_reduced
check pv_field $dev5 pv_size $new_reduced
check pv_field "$dev4" pv_size $new_reduced
check pv_field "$dev5" pv_size $new_reduced
# unchanged
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field $dev9 pv_size $old_reduced
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
check pv_field "$dev9" pv_size $old_reduced
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
# one tag on multiple pvs in separate vgs
pvchange --addtag V12 "$dev10" "$dev2" "$dev3" "$dev4" "$dev5"
pvresize --setphysicalvolumesize $new_request @V12
check pv_field $dev10 pv_size $new_reduced
check pv_field $dev2 pv_size $new_reduced
check pv_field $dev3 pv_size $new_reduced
check pv_field $dev4 pv_size $new_reduced
check pv_field $dev5 pv_size $new_reduced
check pv_field "$dev10" pv_size $new_reduced
check pv_field "$dev2" pv_size $new_reduced
check pv_field "$dev3" pv_size $new_reduced
check pv_field "$dev4" pv_size $new_reduced
check pv_field "$dev5" pv_size $new_reduced
# unchanged
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field $dev9 pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
check pv_field "$dev9" pv_size $old_reduced
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
# one pv and one tag on different pv
pvresize --setphysicalvolumesize $new_request $dev10 @V3D9
check pv_field $dev10 pv_size $new_reduced
check pv_field $dev9 pv_size $new_reduced
pvresize --setphysicalvolumesize $new_request "$dev10" @V3D9
check pv_field "$dev10" pv_size $new_reduced
check pv_field "$dev9" pv_size $new_reduced
# unchanged
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
# redundant pv and tag
pvresize --setphysicalvolumesize $new_request $dev9 @V3D9
check pv_field $dev9 pv_size $new_reduced
pvresize --setphysicalvolumesize $new_request "$dev9" @V3D9
check pv_field "$dev9" pv_size $new_reduced
# unchanged
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
# two tags on pvs in separate vgs
pvresize --setphysicalvolumesize $new_request @V3D9 @V2D3
check pv_field $dev9 pv_size $new_reduced
check pv_field $dev3 pv_size $new_reduced
check pv_field "$dev9" pv_size $new_reduced
check pv_field "$dev3" pv_size $new_reduced
# unchanged
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
#
@ -235,91 +235,91 @@ new_request="20.00m"
new_reduced="16.00m"
new_orphan="20.00m"
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request $dev11 $dev14
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field $dev9 pv_size $old_reduced
check pv_field $dev11 pv_size $old_orphan
check pv_field $dev14 pv_size $old_orphan
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
pvresize --setphysicalvolumesize $old_request "$dev11" "$dev14"
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
check pv_field "$dev9" pv_size $old_reduced
check pv_field "$dev11" pv_size $old_orphan
check pv_field "$dev14" pv_size $old_orphan
# one orphan
pvresize --setphysicalvolumesize $new_request $dev11
check pv_field $dev11 pv_size $new_orphan
pvresize --setphysicalvolumesize $new_request "$dev11"
check pv_field "$dev11" pv_size $new_orphan
# unchanged
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field $dev9 pv_size $old_reduced
check pv_field $dev14 pv_size $old_orphan
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
check pv_field "$dev9" pv_size $old_reduced
check pv_field "$dev14" pv_size $old_orphan
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request $dev11 $dev14
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
pvresize --setphysicalvolumesize $old_request "$dev11" "$dev14"
# two orphans
pvresize --setphysicalvolumesize $new_request $dev11 $dev14
check pv_field $dev11 pv_size $new_orphan
check pv_field $dev14 pv_size $new_orphan
pvresize --setphysicalvolumesize $new_request "$dev11" "$dev14"
check pv_field "$dev11" pv_size $new_orphan
check pv_field "$dev14" pv_size $new_orphan
# unchanged
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field $dev9 pv_size $old_reduced
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
check pv_field "$dev9" pv_size $old_reduced
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request $dev11 $dev14
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
pvresize --setphysicalvolumesize $old_request "$dev11" "$dev14"
# one orphan, one tag
pvresize --setphysicalvolumesize $new_request @V3D9 $dev14
check pv_field $dev9 pv_size $new_reduced
check pv_field $dev14 pv_size $new_orphan
pvresize --setphysicalvolumesize $new_request @V3D9 "$dev14"
check pv_field "$dev9" pv_size $new_reduced
check pv_field "$dev14" pv_size $new_orphan
# unchanged
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field $dev11 pv_size $old_orphan
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
check pv_field "$dev11" pv_size $old_orphan
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request $dev11 $dev14
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
pvresize --setphysicalvolumesize $old_request "$dev11" "$dev14"
# one pv, one orphan, one tag
pvresize --setphysicalvolumesize $new_request @V3D9 $dev14 $dev10
check pv_field $dev9 pv_size $new_reduced
check pv_field $dev10 pv_size $new_reduced
check pv_field $dev14 pv_size $new_orphan
pvresize --setphysicalvolumesize $new_request @V3D9 "$dev14" "$dev10"
check pv_field "$dev9" pv_size $new_reduced
check pv_field "$dev10" pv_size $new_reduced
check pv_field "$dev14" pv_size $new_orphan
# unchanged
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field $dev11 pv_size $old_orphan
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
check pv_field "$dev11" pv_size $old_orphan
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request $dev11 $dev14
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
pvresize --setphysicalvolumesize $old_request "$dev11" "$dev14"
#
@ -327,235 +327,234 @@ pvresize --setphysicalvolumesize $old_request $dev11 $dev14
#
# one dev (non-pv)
not pvresize --setphysicalvolumesize $new_request $dev13
not pvresize --setphysicalvolumesize $new_request "$dev13"
# unchanged
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field $dev9 pv_size $old_reduced
check pv_field $dev11 pv_size $old_orphan
check pv_field $dev14 pv_size $old_orphan
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
check pv_field "$dev9" pv_size $old_reduced
check pv_field "$dev11" pv_size $old_orphan
check pv_field "$dev14" pv_size $old_orphan
# one orphan and one dev (non-pv)
not pvresize --setphysicalvolumesize $new_request $dev14 $dev13
check pv_field $dev14 pv_size $new_orphan
not pvresize --setphysicalvolumesize $new_request "$dev14" "$dev13"
check pv_field "$dev14" pv_size $new_orphan
# unchanged
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field $dev9 pv_size $old_reduced
check pv_field $dev11 pv_size $old_orphan
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
check pv_field "$dev9" pv_size $old_reduced
check pv_field "$dev11" pv_size $old_orphan
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request $dev11 $dev14
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
pvresize --setphysicalvolumesize $old_request "$dev11" "$dev14"
# one pv and one dev (non-pv)
not pvresize --setphysicalvolumesize $new_request $dev9 $dev13
check pv_field $dev9 pv_size $new_reduced
not pvresize --setphysicalvolumesize $new_request "$dev9" "$dev13"
check pv_field "$dev9" pv_size $new_reduced
# unchanged
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field $dev11 pv_size $old_orphan
check pv_field $dev14 pv_size $old_orphan
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
check pv_field "$dev11" pv_size $old_orphan
check pv_field "$dev14" pv_size $old_orphan
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request $dev11 $dev14
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
pvresize --setphysicalvolumesize $old_request "$dev11" "$dev14"
# one tag and one dev (non-pv)
not pvresize --setphysicalvolumesize $new_request @V3D9 $dev13
check pv_field $dev9 pv_size $new_reduced
not pvresize --setphysicalvolumesize $new_request @V3D9 "$dev13"
check pv_field "$dev9" pv_size $new_reduced
# unchanged
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field $dev11 pv_size $old_orphan
check pv_field $dev14 pv_size $old_orphan
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
check pv_field "$dev11" pv_size $old_orphan
check pv_field "$dev14" pv_size $old_orphan
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request $dev11 $dev14
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
pvresize --setphysicalvolumesize $old_request "$dev11" "$dev14"
# one pv, one orphan, one tag, one dev
not pvresize --setphysicalvolumesize $new_request @V3D9 $dev13 $dev14 $dev10
check pv_field $dev9 pv_size $new_reduced
check pv_field $dev10 pv_size $new_reduced
check pv_field $dev14 pv_size $new_orphan
not pvresize --setphysicalvolumesize $new_request @V3D9 "$dev13" "$dev14" "$dev10"
check pv_field "$dev9" pv_size $new_reduced
check pv_field "$dev10" pv_size $new_reduced
check pv_field "$dev14" pv_size $new_orphan
# unchanged
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field $dev11 pv_size $old_orphan
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
check pv_field "$dev11" pv_size $old_orphan
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request $dev11 $dev14
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
pvresize --setphysicalvolumesize $old_request "$dev11" "$dev14"
#
# pvresize including pvs without mdas
#
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request $dev11 $dev14
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field $dev9 pv_size $old_reduced
check pv_field $dev11 pv_size $old_orphan
check pv_field $dev14 pv_size $old_orphan
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
pvresize --setphysicalvolumesize $old_request "$dev11" "$dev14"
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
check pv_field "$dev9" pv_size $old_reduced
check pv_field "$dev11" pv_size $old_orphan
check pv_field "$dev14" pv_size $old_orphan
# one pv without mda
pvresize --setphysicalvolumesize $new_request $dev2
check pv_field $dev2 pv_size $new_reduced
pvresize --setphysicalvolumesize $new_request "$dev2"
check pv_field "$dev2" pv_size $new_reduced
# unchanged
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field $dev9 pv_size $old_reduced
check pv_field $dev11 pv_size $old_orphan
check pv_field $dev14 pv_size $old_orphan
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
check pv_field "$dev9" pv_size $old_reduced
check pv_field "$dev11" pv_size $old_orphan
check pv_field "$dev14" pv_size $old_orphan
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request $dev11 $dev14
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
pvresize --setphysicalvolumesize $old_request "$dev11" "$dev14"
# two pvs without mdas
pvresize --setphysicalvolumesize $new_request $dev6 $dev7
check pv_field $dev6 pv_size $new_reduced
check pv_field $dev7 pv_size $new_reduced
pvresize --setphysicalvolumesize $new_request "$dev6" "$dev7"
check pv_field "$dev6" pv_size $new_reduced
check pv_field "$dev7" pv_size $new_reduced
# unchanged
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field $dev9 pv_size $old_reduced
check pv_field $dev11 pv_size $old_orphan
check pv_field $dev14 pv_size $old_orphan
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
check pv_field "$dev9" pv_size $old_reduced
check pv_field "$dev11" pv_size $old_orphan
check pv_field "$dev14" pv_size $old_orphan
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request $dev11 $dev14
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
pvresize --setphysicalvolumesize $old_request "$dev11" "$dev14"
# one pv with mda and one pv without mda
pvresize --setphysicalvolumesize $new_request $dev8 $dev9
check pv_field $dev8 pv_size $new_reduced
check pv_field $dev9 pv_size $new_reduced
pvresize --setphysicalvolumesize $new_request "$dev8" "$dev9"
check pv_field "$dev8" pv_size $new_reduced
check pv_field "$dev9" pv_size $new_reduced
# unchanged
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev11 pv_size $old_orphan
check pv_field $dev14 pv_size $old_orphan
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev11" pv_size $old_orphan
check pv_field "$dev14" pv_size $old_orphan
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request $dev11 $dev14
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
pvresize --setphysicalvolumesize $old_request "$dev11" "$dev14"
# one orphan with mda
pvresize --setphysicalvolumesize $new_request $dev11
check pv_field $dev11 pv_size $new_orphan
pvresize --setphysicalvolumesize $new_request "$dev11"
check pv_field "$dev11" pv_size $new_orphan
# unchanged
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field $dev9 pv_size $old_reduced
check pv_field $dev14 pv_size $old_orphan
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
check pv_field "$dev9" pv_size $old_reduced
check pv_field "$dev14" pv_size $old_orphan
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request $dev11 $dev14
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
pvresize --setphysicalvolumesize $old_request "$dev11" "$dev14"
# one orphan without mda
pvresize --setphysicalvolumesize $new_request $dev14
check pv_field $dev14 pv_size $new_orphan
pvresize --setphysicalvolumesize $new_request "$dev14"
check pv_field "$dev14" pv_size $new_orphan
# unchanged
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field $dev9 pv_size $old_reduced
check pv_field $dev11 pv_size $old_orphan
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
check pv_field "$dev9" pv_size $old_reduced
check pv_field "$dev11" pv_size $old_orphan
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request $dev11 $dev14
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
pvresize --setphysicalvolumesize $old_request "$dev11" "$dev14"
# one orphan with mda and one orphan without mda
pvresize --setphysicalvolumesize $new_request $dev14 $dev11
check pv_field $dev11 pv_size $new_orphan
check pv_field $dev14 pv_size $new_orphan
pvresize --setphysicalvolumesize $new_request "$dev14" "$dev11"
check pv_field "$dev11" pv_size $new_orphan
check pv_field "$dev14" pv_size $new_orphan
# unchanged
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field $dev8 pv_size $old_reduced
check pv_field $dev9 pv_size $old_reduced
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
check pv_field "$dev8" pv_size $old_reduced
check pv_field "$dev9" pv_size $old_reduced
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request $dev11 $dev14
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
pvresize --setphysicalvolumesize $old_request "$dev11" "$dev14"
# one pv with mda and one pv without mda, and
# one orphan with mda and one orphan without mda
pvresize --setphysicalvolumesize $new_request $dev8 $dev9 $dev14 $dev11
check pv_field $dev8 pv_size $new_reduced
check pv_field $dev9 pv_size $new_reduced
check pv_field $dev11 pv_size $new_orphan
check pv_field $dev14 pv_size $new_orphan
pvresize --setphysicalvolumesize $new_request "$dev8" "$dev9" "$dev14" "$dev11"
check pv_field "$dev8" pv_size $new_reduced
check pv_field "$dev9" pv_size $new_reduced
check pv_field "$dev11" pv_size $new_orphan
check pv_field "$dev14" pv_size $new_orphan
# unchanged
check pv_field $dev10 pv_size $old_reduced
check pv_field $dev2 pv_size $old_reduced
check pv_field $dev3 pv_size $old_reduced
check pv_field $dev4 pv_size $old_reduced
check pv_field $dev5 pv_size $old_reduced
check pv_field $dev6 pv_size $old_reduced
check pv_field $dev7 pv_size $old_reduced
check pv_field "$dev10" pv_size $old_reduced
check pv_field "$dev2" pv_size $old_reduced
check pv_field "$dev3" pv_size $old_reduced
check pv_field "$dev4" pv_size $old_reduced
check pv_field "$dev5" pv_size $old_reduced
check pv_field "$dev6" pv_size $old_reduced
check pv_field "$dev7" pv_size $old_reduced
# reset back to old size
pvresize --setphysicalvolumesize $old_request $dev10 $dev2 $dev3 $dev4 $dev5 $dev6 $dev7 $dev8 $dev9
pvresize --setphysicalvolumesize $old_request $dev11 $dev14
pvresize --setphysicalvolumesize $old_request "$dev10" "$dev2" "$dev3" "$dev4" "$dev5" "$dev6" "$dev7" "$dev8" "$dev9"
pvresize --setphysicalvolumesize $old_request "$dev11" "$dev14"

View File

@ -20,7 +20,7 @@ check_changed_uuid_() {
aux prepare_pvs 4
# check 'allocatable' pv attribute
pvcreate $dev1
pvcreate "$dev1"
check pv_field "$dev1" pv_attr ---
vgcreate $vg1 "$dev1"
check pv_field "$dev1" pv_attr a--

View File

@ -27,7 +27,7 @@ check pv_field "$dev1" ba_size "786432"
check pv_field "$dev1" pe_start "1048576"
#COMM 'pvcreate with booloader area size - test corner cases'
dev_size=$(pvs -o pv_size --noheadings $dev1)
dev_size=$(pvs -o pv_size --noheadings "$dev1")
pv_size=$[dev_size - 1048576] # device size - 1m pe_start = area for data
# try to use the whole data area for bootloader area, remaining data area is zero then (pe_start = pv_size)

View File

@ -19,7 +19,7 @@ for mode in "--atomic" ""
do
lvcreate -aey -l1 -n $lv1 $vg "$dev1"
lvs -o +devices | grep $dev1
lvs -o +devices | grep "$dev1"
pvmove $mode -i 1 -b "$dev1" "$dev2"
sleep 5 # arbitrary...
lvs -o +devices | not grep "pvmove"

View File

@ -19,13 +19,13 @@ aux prepare_pvs 6 16
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# create $VGS with assorted tags
vgcreate $vg1 --vgmetadatacopies 2 --addtag "vg_tag3" --addtag "vg_tag2" -s 4m $dev1 $dev2 $dev3
vgcreate $vg2 --addtag "vg_tag2" -s 4m $dev4 $dev5
vgcreate $vg3 --addtag "vg_tag1" -s 4m $dev6
vgcreate $vg1 --vgmetadatacopies 2 --addtag "vg_tag3" --addtag "vg_tag2" -s 4m "$dev1" "$dev2" "$dev3"
vgcreate $vg2 --addtag "vg_tag2" -s 4m "$dev4" "$dev5"
vgcreate $vg3 --addtag "vg_tag1" -s 4m "$dev6"
# add PV assorted tags
pvchange --addtag "pv_tag3" --addtag "pv_tag1" --addtag "pv_tag2" $dev1
pvchange --addtag "pv_tag1" --addtag "pv_tag4" $dev6
pvchange --addtag "pv_tag3" --addtag "pv_tag1" --addtag "pv_tag2" "$dev1"
pvchange --addtag "pv_tag1" --addtag "pv_tag4" "$dev6"
# create $LVS with assorted tags and various sizes
lvcreate --addtag 'lv_tag2.-+/=!:&#' --addtag "lv_tag1" -L8m -n "vol1" $vg1