HP-UX System Administrator's Guide: Logical Volume Management (5900-3028, March 2013)
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
/dev/disk/disk47 (an increase from 25602 to 25604) before the maximum volume group
size was increased
5. Note that the number of extents for /dev/disk/disk47 is increased from 25604 to 38396
after the maximum VG size is increased, as shown by vgdisplay -v here. This command
confirms that the maximum VG size was increased from 500 GB to 8 TB, and that the number
of extents for /dev/disk/disk47 was increased from 25602 extents to 38396 extents, as
shown by the vgdisplay command below.
# vgdisplay –v vg1
--- Volume groups ---
VG Name /dev/vg1
...
PE Size (Mbytes) 8
Total PE 76792
Alloc PE 51196
Free PE 25596
...
VG Version 2.1
VG Max Size 8t
VG Max Extents 1048576
64 Administering LVM