1837777 Members
3310 Online
110119 Solutions
New Discussion

Re: question on vgextend

 
Wade Adams
New Member

question on vgextend

Basicly I have 2 800 gig vol's and need to create a alt path for these. Problem is I only have 2 free Physical extents. Does anyone know a formular to figure out how many I will need ?

thx
14 REPLIES 14
Wade Adams
New Member

Re: question on vgextend

In case it matters, this is on HPUX 11.
Tobias Hartlieb
Trusted Contributor

Re: question on vgextend

HI,

first of all, you might get a more qualified answere in the HP-UX area, because this is about LVM.
Anyway, if you just want to create an alternate link (i.e. accessing the same physical disks via an alternate route), you just do an vgextend /dev/VGNAME /dev/dsk/DEVICE_FILE_OF_NEW_DISK_ROUTE
There are no more PE used, because the information is stored in the LVM tab and the LVM header of the disks, which has been created already initally by doing pvcreate.
Santosh Nair_1
Honored Contributor

Re: question on vgextend

If by alt path, you mean that you want to access the same phyiscal disk via a different controller, then this should use up no additional PEs. You just have to do a vgextend /dev// and the new disk will be added to the VG. You can verify by doing a vgdisplay -v ...it should list both disks in the VG marking one as an alternate link. Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans
Ron Cornwell
Trusted Contributor

Re: question on vgextend

Please explain more... I understand you have (2) 800GB VG's. What confuses me is the inclusion of the PE remark in your question. Are you looking to create alternate links to you PV's in the OS?? Are you trying to set the alternate boot path to a boot disk ??

Ron
Wade Adams
New Member

Re: question on vgextend

I have 2 paths (host adapters) to our raid storage. I beleive the volume was created with 32 (meg?)extent(s). vgdisplay shows 2 physical extents free.
When I run >vgextend /dev/vg01 /dev/dsk/c7t0d0 I get a error

Too many physical extents for volume group. Can not add physical volume to Volume group. LVM_MAXPXS:65535

This is a new setup and there is no data currently.

I did not create the volumes but beleive the solution is to recreate the volume with a larger extent size. I'm just trying to figure out what that value should be.

Thx
Ron Cornwell
Trusted Contributor

Re: question on vgextend

What are you trying to do? Mirror the lvols? create redundant paths? or provide a little load balancing?
Patrick Wallek
Honored Contributor

Re: question on vgextend

Wade Adams
New Member

Re: question on vgextend

set the redundant path.
Ron Cornwell
Trusted Contributor

Re: question on vgextend

harry d brown jr
Honored Contributor

Re: question on vgextend

Can you post :

vgdisplay -v vg01

for us?

thanks,

live free or die
harry
Live Free or Die
Sridhar Bhaskarla
Honored Contributor

Re: question on vgextend

Wade,

If it is a 10.20 system, then it's a problem and you need to install the patch PHCO_23437.

//start (Part of Patch description)

PHCO_17118:
vgextend does not allow extension of volume group
more than 65535(LVM_MAXPXS), which is the value for a
physical volume. The actual limit for volume group
should be 65535 * 255 (LVM_MAXPXS * LVM_MAXPVS).

//End

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Sridhar Bhaskarla
Honored Contributor

Re: question on vgextend

Oops.. Didn't read your second message. Yours is a 11.0 system. Then the above is not applicable. But still I suggest to install the lastest LVM commands patch PHCO_24437 and see if it fixes the problem. I didn't read the patch description.

Now as a work around, when you get sometime, probably you can do a vgexport and import the volume group back. I suppose the problem is only with the command that is doing a wrong check. So, vgimport should be able to get the other disk also back.

#vgchange -a n vgxx
#vgexport -v -s -m /tmp/vgxx.map vgxx
#mkdir /dev/vgxx
#mknod /dev/vgxx/group c 64 0x0?0000
#vgimport -v -s -m /tmp/vgxx.map vgxx

Do a vgdisplay and see if you got the alternate link.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Ron Cornwell
Trusted Contributor
Nodoz
Occasional Advisor

Re: question on vgextend

Kewl, I didn't have access to that area but it would seem the patch in 5003407064 is what we need. I'll try it and let you all know. Thx for the help.