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

74
Physical volume "/dev/rdisk/disk47" was not changed.
2. Run vgmodify in change mode to prepare the second PV for contraction.
# vgmodify -a -C 300g vg1 /dev/rdisk/disk47
Reconfiguration to contract physical volume "/dev/rdisk/disk47"
to requested size 307200 MB succeeded.
Previous number of extents: 51133
Number of extents after reconfiguration: 38333
Physical volume "/dev/rdisk/disk47" was changed.
Volume Group configuration for /dev/vg1 has been saved in
/etc/lvmconf/vg1.conf
3. Verify the results.
# pvdisplay -v /dev/disk/disk47
--- Physical volumes ---
PV Name /dev/disk/disk47
VG Name /dev/vg1
...
PE Size (Mbytes) 8
Total PE 38333
Free PE 12733
Allocated PE 25600
...
--- Distribution of physical volume ---
LV Name LE of LV PE for LV
/dev/vg1/lvol1 25600 25600
--- Physical extents ---
PE Status LV LE
00000 current /dev/vg1/lvol1 25533
00001 current /dev/vg1/lvol1 25534
00002 current /dev/vg1/lvol1 25535
*Entries deleted for brevity
25597 current /dev/vg1/lvol1 51130
25598 current /dev/vg1/lvol1 51131
25599 current /dev/vg1/lvol1 51132
25600 free 00000
25601 free 00000
25602 free 00000
*Entries deleted for brevity
38330 free 00000
38331 free 00000
38332 free 00000
# vgdisplay –v vg1
--- Volume groups ---
VG Name /dev/vg1
...
PE Size (Mbytes) 8
Total PE 63866
Alloc PE 51133
Free PE 12733
...
VG Version 2.1
VG Max Size 256t
VG Max Extents 33554432
--- Logical volumes ---
LV Name /dev/vg1/lvol1
LV Status available/syncd