on the command line,
vgmodify
checks all PVs in the volume group. Optionally, you can
specify the PVs you want to check in the command line after the VG name. .
3.
Perform the actual DLE reconfiguration (run
vgmodify
without the
-r
review option). If no
PVs are specified,
vgmodify
attempts reconfiguration on all PVs in the volume group (if it
detects them as having been expanded). Optionally, you can list the specific PVs you want
to reconfigure in the command line after the VG name.
4.
Run
vgdisplay-v
to verify the result of the DLE reconfiguration: to check the total number
of extents for the VG, the total number of free extents for the VG, the number of extents for
each PV, and the number of free extents for each PV.
Example: Version 1.0 Volume Group
For example, to increase the size of the physical volume
/dev/rdisk/disk6
from 4 GB to
100000000 KB, follow these steps:
1.
Increase the LUN size using the instructions for the disk array.
2.
Run
vgmodify
with the
-v
and
-r
options to check whether any disks have changed in size
and whether all of the space on the physical volumes can be used.
# vgmodify -v -r vg32
Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 1016
PE Size (Mbytes) 32
VGRA Size (Kbytes) 176
/dev/rdisk/disk6 Warning: Max_PE_per_PV for the volume group
(1016) too small for this PV (3051).
Using only 1016 PEs from this physical volume.
"/dev/rdisk/disk6" size changed from 4194304 to 100000000kb
An update to the Volume Group IS required
New Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 1016
PE Size (Mbytes) 32
VGRA Size (Kbytes) 176
Review complete. Volume group not modified
The expanded physical volume requires 3051 physical extents to use all its space, but the
current
max_pe
value limits this to 1016.
3.
To determine the optimal values for
max_pv
and
max_pe
, run
vgmodify -t
, with and
without the
-n
as follows:
# vgmodify -t vg32
Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 1016
PE Size (Mbytes) 32
VGRA Size (Kbytes) 176
VGRA space (Kbytes) without PE renumbering 896
VGRA space (Kbytes) PE renumbering lower 32768
Volume Group optimized settings (no PEs renumbered):
max_pv(-p) max_pe(-e) Disk size (Mb)
2 53756 1720193
3 35836 1146753
4 26876 860033
...
Moving and Reconfiguring Your Disks
79