LVM Volume Group Dynamic LUN Expansion (DLE) and Contraction (DLC) (September 2009)
15
# pvdisplay /dev/disk/disk4154
--- Physical volumes ---
PV Name /dev/disk/disk4154
VG Name /dev/vg1
PV Status available
Allocatable yes
VGDA 2
Cur LV 1
PE Size (Mbytes) 16
Total PE 19199
Free PE 0
Allocated PE 19199
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
Proactive Polling On
# diskinfo /dev/rdisk/disk4154
SCSI describe of /dev/rdisk/disk4154:
vendor: HP
product id: OPEN-V
type: direct access
size: 314572800 Kbytes
bytes per sector: 512
The max_PE per PV for this volume group is 30000.
2. Run vgmodify in table mode as follows:
# vgmodify -t vg1
Current Volume Group settings:
Max LV 255
Max PV 50
Max PE per PV 30000
PE Size (Mbytes) 16
VGRA Size (Kbytes) 12208
VGRA space (Kbytes) without PE renumbering 12224
VGRA space (Kbytes) PE renumbering lower 16384
Volume Group optimized settings (no PEs renumbered):
max_pv(-p) max_pe(-e) Disk size (Mb)
.
.
50 30204 483276
51 29436 470988
52 28924 462796
The volume group max_PE per PV is 30000. The output indicates the correct size for you to
expand the disk size is about 483276 MB or 472 GB.
3. Perform the DLE operation from the device end and expand the disk to 470 GB.
4. Verify the new disk size with the diskinfo command:
# diskinfo /dev/rdisk/disk4154
SCSI describe of /dev/rdisk/disk4154:
vendor: HP
product id: OPEN-V
type: direct access
size: 492830720 Kbytes
bytes per sector: 512
5. Use online vgmodify in review mode to review the effect of the change in disk size.