Extending volume groups
vgextend will increase the unused space in a volume group by making
available all the physical extents on the new
physical volume(s). You must have used pvcreate(1m) on the new disk(s)
first:
# pvcreate /dev/rdsk/cCtTdD
# vgextend vgXY /dev/dsk/cCtTdD
If you get the following error when using pvcreate
pvcreate: The physical volume already belongs to a volume group
the disk has been already in use under LVM. Then you have to force
# pvcreate -f /dev/rdsk/cCtTdD
The newly available space can be used for new logical volumes or added
to existing logical volumes with
lvextend(1m).
Check your volume group with
# pvdisplay -v /dev/dsk/cCtTdD
and
# vgdisplay -v vg01
Extending the root volume group
For a bootable disk you must use
# pvcreate -B /dev/rdsk/cCtTdD
in case of re-using a disk together with the -f option as described
above.
Now, you can extend and check vg00 as described above.
Don´t forget to actualize the label file for disks in the root volume
group:
NOTE: observe correct order!
For HP-UX 10.20 (not updated to) and 11.X only:
# lvlnboot -r /dev/vg00/lvol3
# lvlnboot -b /dev/vg00/lvol1
# lvlnboot -s /dev/vg00/lvol2
# lvlnboot -d /dev/vg00/lvol2
For HP-UX 10.01, 10.10, and updates to 10.20 only:
# lvlnboot -r /dev/vg00/lvol1
# lvlnboot -s /dev/vg00/lvol2
# lvlnboot -d /dev/vg00/lvol2
Check with
# lvlnboot –v