Operating System - HP-UX
1832426 Members
3185 Online
110042 Solutions
New Discussion

Changing max physical disk size on volume group

 
Jani Joeli
New Member

Changing max physical disk size on volume group

Hi All,

I have gotten a task of doing some admin work on our HP-UX Oracle server, but I'm not awfully familiar with unix world, especially not with HP-UX file systems.

I have two logical volumes ("oracle" and "oradata") and mount dirs with same names on one 73GB volume group (vg02).
The VG would need to be extended with a 146GB disk and the LV sizes increased, but the VG has physical disk size limited to 73GB, so too much disk space would be wasted by just adding the 146GB disk to the VG.

Would it be possible to change the max physical disk size on vg02? I've tried to find a way using SAM but no luck.
Or would it be better/possible to create a new VG (lets say vg03) on the new 146GB disk, somehow move the LVs to vg03, delete vg02 from 73GB disk and add the disk to vg03?
Or would there be some other, more logical way of getting larger LVs?

OS/HW is HP-UX B.11.23 U 9000/800 if it matters.

Thanks very much in advance!

/Jani
7 REPLIES 7
Hasan  Atasoy
Honored Contributor

Re: Changing max physical disk size on volume group

hi jani;


you need vgmodify command. you need to install some patches on the system for vgmodify add on.

please look at thread

http://forums11.itrc.hp.com/service/forums/questionanswer.do;HP-FORUMS-S-WPA-IDX=HvhYbkZw29h44VvZKL2JTPYRKBB5Swp1m5Y2T1bhJwpBmnqNQvKl!-1544579960!479818414?threadId=1175506


Hasan

Geoff Wild
Honored Contributor

Re: Changing max physical disk size on volume group

You need a utility called vgmodify.

Or, create a new vg and lvols and copy/restore youre data.

You can not move a lvol from one vg to another.

http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1199903110324+28353475&threadId=987360

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
James R. Ferguson
Acclaimed Contributor

Re: Changing max physical disk size on volume group

Hi:

To enable 'vgmodify' on 11.23 you need to install PHCO_36744 together with PHKL_31500 and PHKL_32095.

Manpages accompany the 'vgmodify'. You can also read more about it in this 11.31 whitepaper.

http://www.docs.hp.com/en/LVM-11iv3features/LVM_New_Features_11iv3.pdf

The patches I cited back-port the 11.31 command to 11.23.

Regards!

...JRF...
Tim Nelson
Honored Contributor

Re: Changing max physical disk size on volume group

Keep in mind also that the VGRA area on the disk ( the area that hols the vg/lv information ) may not be big enough to hold the additional extents.

You can use the vgmodify command to increase this area but you have to also move data in the ajoining extents. Good luck ( i say this tongue in cheek as the vgmodify command really ends up to be too much work with too much risk ).

Create a new volume group and lvol with enough storage ( maybe even set the max_pe and pe_siz to higher numbers ), mount this and mirgrate your data to it.

Mridul Shrivastava
Honored Contributor

Re: Changing max physical disk size on volume group

Please have a look on the following doc as well before proceeding with vgmodify.

Title: HPUX 11i V2 - vgmodify and PE Number Zero Document ID: emr_na-c01007551-1

http://www12.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01007551-1
Time has a wonderful way of weeding out the trivial
Jani Joeli
New Member

Re: Changing max physical disk size on volume group

Hi All,

vgmodify seemed too risky so I took the approach of creating a new vg and moving data on it. Now the new vg has a physical disk size limit of 1TB so adding new disks in the future shouldn't be a problem anymore. :)

Thanks for all the help!

/Jani
Jani Joeli
New Member

Re: Changing max physical disk size on volume group

possible using vgmodify but possibly too risky, took another approach instead