Operating System - HP-UX
1833535 Members
2813 Online
110061 Solutions
New Discussion

Re: Adding bigger disks to an existing VG

 
SOLVED
Go to solution
Etienne Holm
Frequent Advisor

Adding bigger disks to an existing VG

Will I be able to add a bigger disk to a VG that only have 36GB disks and will I then be able to use the entire new disk

current setting is
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 8
Act PV 8
Max PE per PV 8683
VGDA 16
PE Size (Mbytes) 4
Total PE 69448
Alloc PE 69400
Free PE 48
Total PVG 2
Total Spare PVs 0
Total Spare PVs in use 0

Or would it be best to create a new VG for these 146GB disks
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor

Re: Adding bigger disks to an existing VG

Unless this is 11.31, the maximum number of pe's per PV cannot be increased after the VG has been created. If you want to fully utilize your new disks then you will need to create a new VG.
If it ain't broke, I can fix that.
Patrick Wallek
Honored Contributor
Solution

Re: Adding bigger disks to an existing VG

Your current VG is limited to 36 GB disks. The is because your "Max PE per PV" is 8683 and your "PE SIZE" is 4 MB. Thus your MAX size for a disk in this VG is 8683*4 = 34,732 MB.

There is a program available from HP, an UNSUPPORTED utility, called vgmodify, I think. Rumor has it that this utility will allow you to change some VG parameters. I don't know if it will work in this case. It may, but I've never tried it.

In my opinion, your best bet would be to create a new VG for the 146 GB disks. When you create your VG, change the "Max PE per PV" and "PE Size" parameters so that in the future you can add bigger disks if need be.

# man vgcreate
for information on the available parameters.
Aussan
Respected Contributor

Re: Adding bigger disks to an existing VG

from your post your current vg will not be able to take the new size, it is almost maxed out

you will have to create a new one.
The tongue weighs practically nothing, but so few people can hold it
Etienne Holm
Frequent Advisor

Re: Adding bigger disks to an existing VG

Thanks that have solved my question seems I have to plan an upgrade to 11.31 :-)

For now i will have to create a new VG and then play with the disks.
KathyL1
Valued Contributor

Re: Adding bigger disks to an existing VG

The vgmodify command is available for HP-UX 11i V2 if you install the LVM patches PHCO_35524 and PHKL_36244.

Refer to the following Technical Knowledge Base document for specific information about the vgmodify command and Max PE per PV - http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c0
1007548-1


Kathy