HP-UX System Administrator's Guide: Logical Volume Management (762803-001, March 2014)

# vgdisplay -v vg1
--- Volume groups ---
VG Name /dev/vg1
...
VG Version 2.1
VG Max Size 500 GB
VG Max Entents 64000
...
2. Run diskinfo on the physical volumes to display their size.
# diskinfo /dev/rdisk/disk46
# diskinfo /dev/rdisk/disk47
3. Run online vgmodify in review mode to verify that all physical volumes can be reconfigured
to the new (larger) maximum VG size of 8TB.
# vgmodify -r -a -E -S 8t vg1
Physical volume "/dev/disk/disk46" requires reconfiguration to be
provisioned to the requested maximum volume group size 8388608 MB.
Current number of extents: 38398
Number of extents after reconfiguration: 38396
...
Physical volume "/dev/disk/disk46" was not changed.
Physical volume "/dev/disk/disk4" requires reconfiguration to be
provisioned to the requested maximum volume group size 8388608 MB.
Current number of extents: 25602
Number of extents after reconfiguration: 25602
...
Physical volume "/dev/disk/disk47" was not changed.
In this example, all physical volumes in the volume group can be reconfigured, so the maximum
Volume Group size of /dev/vg1 can be increased from 500 GB to 8 TB.
Note that two free extents will be used for the reconfiguration on /dev/disk/disk46,
reducing the extents on that physical volume from 38398 to 39396.
4. Note that additional extents will be added to /dev/disk/disk47 when the vgmodify -S
option is run in change mode, as shown here.
# vgmodify -a -E -S 8t vg1
Reconfiguration of physical volume "/dev/disk/disk46" for the
requested maximum volume group size 8388608 MB succeeded.
Previous number of extents: 38398
Number of extents after reconfiguration: 38396
Physical volume "/dev/disk/disk46" was changed.
Volume Group configuration for /dev/vg1 has been saved in
/etc/lvmconf/vg1.conf
Reconfiguration of physical volume "/dev/disk/disk47" for the
requested maximum volume group size 8388608 MB succeeded.
Previous number of extents: 25604
Number of extents after reconfiguration: 25604
Physical volume "/dev/disk/disk47" was changed.
The maximum volume group size for "/dev/vg1" has been
increased from 512000 MB to 8388608 MB.
Volume Group configuration for /dev/vg1 has been saved in
/etc/lvmconf/vg1.conf
As noted for review mode, two extents were taken from /dev/disk/disk46 for the
reconfiguration (a decrease from 38398 to 38396). This allowed two extents to be added to
3.3 Common LVM Tasks 67