LVM Volume Group Dynamic LUN Expansion (DLE) and Contraction (DLC) (September 2009)
38
VGRA Size (Kbytes) 896
New
Volume Group configuration for "vg02" has been saved in
"/etc/lvmconf/vg02.conf”
Old
Volume Group configuration for "vg02" has been saved in
"/etc/lvmconf/vg02.conf.old”
Starting
the modification by writing to all Physical Volumes
Applying
the configuration to all Physical Volumes from
"/etc/lvmconf/vg02.conf"
Volume
Group configuration has been restored to /dev/rdsk/c0t0d0
Volume
Group configuration has been restored to /dev/rdsk/c1t0d0
Completed
the modification process.
New
Volume Group configuration for "vg02" has been saved in
"/etc/lvmconf/vg02.conf.old"
Volume
group "vg02" has been successfully changed.
Almost all the initial output is identical to that for –r. The underlined text is only applicable
when a change is being made. Note the program reports whether the VG.conf or
VG.conf.old contains the new or old layout at various stages (useful if it is interrupted
).
4. For offline mode, activate the volume group.
# vgchange –a y vg02 # Offline mode only
Volume group "vg02" has been successfully changed.
5. Verify the results.
# vgdisplay vg02
--- Volume groups ---
VG Name /dev/vg02
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 0
Open LV 0
Max PV 19
Cur PV 2
Act PV 2
Max PE per PV 5628
VGDA 4
PE Size (Mbytes) 4
Total PE 10238
Alloc PE 0
Free PE 10238
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 429744m
VG Max Extents 106932
Note the Max PE per PV and Max PV settings match the requested setting.
Increasing the maximum number of physical volumes and accommodating larger disks –
with PE renumbering
Using vgmodify -t, select the entry from the tables that meets the requirement for the maximum disk
size with an adequate number of physical volumes. If you cannot achieve the number of physical
volumes you require, use the -tn option on vgmodify. If you are using a setting from the –tn table
and this requires physical extent renumbering lower, run vgmodify –tnv and check that no disks
need the first physical extent to be made free. If they do, free up this extent on each disk using