LVM Volume Group Dynamic LUN Expansion (DLE) and Contraction (DLC) (September 2009)

45
2. Run vgmodify in table mode with the bootable disk now made non-boot.
# vgmodify -tv -B n vg02 /dev/rdsk/c0t0d0
Volume Group configuration for /dev/vg02 has been saved in
/etc/lvmconf/vg02.conf
Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 5119
PE Size (Mbytes) 4
VGRA Size (Kbytes) 736
VGRA space (Kbytes) on Physical Volumes with extents in use:
PV current -n
/dev/rdsk/c0t0d0 2784 4096
/dev/rdsk/c0t1d0 896 4096
/dev/rdsk/c0t3d0 896 4096
Summary 896 4096
Volume Group optimized settings (no PEs renumbered):
max_pv(-p) max_pe(-e) Disk size (Mb)
3 35836 143345
4 26876 107505
* Entries deleted for brevity
38 2812 11249
42 2556 10225
46 2300 9201
52 2044 8177
60 1788 7153
* Entries deleted for brevity
255 252 1009
Compare this table with the previous one to see how the bootable disk is limiting the values.
This is even more noticeable if you use the –tvn options with –B n. From the table select the
values desired. The example shows –p 42 and –e 2556.
3.
Review the mode for the new settings. You can run the review mode with and without the –a option. The
-a option indicates that the vgmodify command can be run when the volume group is active
(online vgmodify).
# vgmodify -r -p 42 -e 2556 -B n vg02 /dev/rdsk/c0t0d0
Volume Group configuration for /dev/vg02 has been saved in
/etc/lvmconf/vg02.conf
Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 5119
PE Size (Mbytes) 4
VGRA Size (Kbytes) 736
The current and new Volume Group parameters differ.
Physical Volume "/dev/rdsk/c1t0d0" the current and new settings
differ
An update to the Volume Group IS required
New Volume Group settings:
Max LV 255
Max PV 42
Max PE per PV 2556
PE Size (Mbytes) 4