LVM Volume Group Dynamic LUN Expansion (DLE) and Contraction (DLC) (September 2009)
56
SCSI describe of /dev/rdisk/disk48:
…
size: 104857600 Kbytes
2. Runs a storage utility to expand the LUNs from 100 GB to 200 GB.
3. Verify the LUNs are larger with the diskinfo command as follows:
# diskinfo /dev/rdisk/disk46
SCSI describe of /dev/rdisk/disk46:
…
size: 209715200 Kbytes
…
# diskinfo /dev/rdisk/disk47
SCSI describe of /dev/rdisk/disk47:
…
size: 209715200 Kbytes
…
# diskinfo /dev/rdisk/disk48
SCSI describe of /dev/rdisk/disk48:
…
size: 209715200 Kbytes
4. Run online vgmodify in review mode to verify that the PVs require reconfiguration for the
DLE and to preview the number of new extents to be added:
# vgmodify -r -a -E vg1
Physical volume "/dev/disk/disk46" requires reconfiguration for
expansion.
Current number of extents: 12790
Number of extents after reconfiguration: 25590
Physical volume "/dev/disk/disk46" was not changed.
Physical volume "/dev/disk/disk47" requires reconfiguration for
expansion.
Current number of extents: 12790
Number of extents after reconfiguration: 25590
Physical volume "/dev/disk/disk47" was not changed.
Physical volume "/dev/disk/disk48" requires reconfiguration for
expansion.
Current number of extents: 12790
Number of extents after reconfiguration: 25590
Physical volume "/dev/disk/disk48" was not changed.
5. Run online vgmodify in change mode to perform the reconfiguration:
# vgmodify -a -E vg1
Reconfiguration to expand physical volume "/dev/disk/disk46"
succeeded.
Previous number of extents: 12790
Number of extents after reconfiguration: 25590
Physical volume "/dev/disk/disk46" was changed.
Volume Group configuration for /dev/vg1 has been saved in
/etc/lvmconf/vg1.conf
Reconfiguration to expand physical volume "/dev/disk/disk47"
succeeded.
Previous number of extents: 12790
Number of extents after reconfiguration: 25590
Physical volume "/dev/disk/disk47" was changed.
Volume Group configuration for /dev/vg1 has been saved in
/etc/lvmconf/vg1.conf