Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change vg characteristics

Status
Not open for further replies.

FlavioJr

IS-IT--Management
Jun 20, 2001
1
BR
I want to change
Max PE per PV of my vg00
Somebody knows how I do that?

I want to do this whithout recreate the vg, ok?
 
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



 
There currently is no way of changing that. There is an enhancement request logged with HP to provide this functionality, but I don't know the status or future outcome of this request. It may or may not be provided.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top