|
|
|
@ -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"
|
|
|
|
|