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

59
Used PV 2
--- Physical volumes ---
PV Name /dev/disk/disk46
PV Status available
Total PE 25598
Free PE 0
...
PV Name /dev/disk/disk47
PV Status available
Total PE 25598
Free PE 0
2. Run a storage utility to expand the LUNs from 200 GB to 300 GB.
3. Verify the LUN expansion.
# diskinfo /dev/rdisk/disk46
SCSI describe of /dev/rdisk/disk46:
size: 314572800 Kbytes
# diskinfo /dev/rdisk/disk47
SCSI describe of /dev/rdisk/disk47:
size: 314572800 Kbytes
4. Run online vgmodify in review mode to verify that the first PV requires reconfiguration for
the DLE and to check the number of new extents to be added.
# vgmodify -r -a -E vg1 /dev/rdisk/disk46
Physical volume "/dev/disk/disk46" requires reconfiguration for
expansion.
Current number of extents: 25598
Number of extents after reconfiguration: 38398
Physical volume "/dev/disk/disk46" was not changed.
5. Run online vgmodify in change mode to perform the reconfiguration of the first PV.
# vgmodify -a -E vg1 /dev/rdisk/disk46
Reconfiguration to expand physical volume "/dev/rdisk/disk46"
succeeded.
Previous number of extents: 25598
Number of extents after reconfiguration: 38398
Physical volume "/dev/rdisk/disk46" was changed.
Volume Group configuration for /dev/vg1 has been saved in
/etc/lvmconf/vg1.conf
6. View the results.
# vgdisplay –v vg1
--- Volume groups ---
VG Name /dev/vg1
...
PE Size (Mbytes) 8
Total PE 63996
Alloc PE 51196
Free PE 12800
...
VG Version 2.1
VG Max Size 500g
VG Max Extents 64000
--- Logical volumes ---