LVM Volume Group Dynamic LUN Expansion (DLE) and Contraction (DLC) (September 2009)

72
LV Size (Mbytes) 409064
Current LE 51133
Allocated PE 51133
Used PV 2
--- Physical volumes ---
PV Name /dev/disk/disk46
PV Status available
Total PE 51133
Free PE 25600
...
PV Name /dev/disk/disk47
PV Status available
Total PE 51133
Free PE 25533
7. Retry vgmodify in review mode on the first PV to verify that it can now be prepared for
contraction to 200 GB.
# vgmodify -r -a -C 200g vg1 /dev/rdisk/disk46
Physical volume "/dev/rdisk/disk46" requires reconfiguration
for contraction to requested size 204800 MB.
Current number of extents: 51133
Number of extents after reconfiguration: 25533
The physical volume "/dev/rdisk/disk46" can be reconfigured for
contraction
to a minimum size of 204793 MB by removing free extents from the
end of the physical volume.
Physical volume "/dev/rdisk/disk46" was not changed
8. Run vgmodify in change mode to prepare the first PV for contraction.
# vgmodify -a -C 200g vg1 /dev/rdisk/disk46
Reconfiguration to contract physical volume "/dev/rdisk/disk46"
to requested size 204800 MB succeeded.
Previous number of extents: 51133
Number of extents after reconfiguration: 25533
Physical volume "/dev/rdisk/disk46" was changed.
Volume Group configuration for /dev/vg1 has been saved in
/etc/lvmconf/vg1.conf
9. Verify the results.
# pvdisplay -v /dev/disk/disk46
--- Physical volumes ---
PV Name /dev/disk/disk46
VG Name /dev/vg1
...
PE Size (Mbytes) 8
Total PE 25533
Free PE 0
Allocated PE 25533
...
--- Distribution of physical volume ---
LV Name LE of LV PE for LV
/dev/vg1/lvol1 25533 25533
--- Physical extents ---
PE Status LV LE
00000 current /dev/vg1/lvol1 00000
00001 current /dev/vg1/lvol1 00001
00002 current /dev/vg1/lvol1 00002
*Entries deleted for brevity