Operating System - HP-UX
1834814 Members
2813 Online
110070 Solutions
New Discussion

vgextend gives file too large?

 
SOLVED
Go to solution
Mark Hoensheid
Advisor

vgextend gives file too large?

I'm trying to get my mirroring setup and when I go to vgextend my vg01 to the target disk is get the following:

vgextend /dev/vg01 $COOK
vgextend: Couldn't install the physical volume "/dev/dsk/c2t2d0".
File too large

Only one logical volume with a size of 30GB on vg01. Both disks are identical in size?

Any ideas from the pro's?
15 REPLIES 15
Pete Randall
Outstanding Contributor

Re: vgextend gives file too large?

I guess I have to ask what $COOK is set to.


Pete

Pete
Mark Hoensheid
Advisor

Re: vgextend gives file too large?

RAW=/dev/rdsk/c2t2d0
COOK=/dev/dsk/c2t2d0

Less typing....
Pete Randall
Outstanding Contributor

Re: vgextend gives file too large?

That certainly seems OK. Can you post a vgdisplay -v output?


Pete

Pete
Thierry Poels_1
Honored Contributor

Re: vgextend gives file too large?

Hi,

I suppose $COOK = /dev/dsk/c2t2d0

A little voice tells me you need some patches. So which HPUX version, and how "recently" has it been patched?

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
S.K. Chan
Honored Contributor

Re: vgextend gives file too large?

I believe this has something to do with the size of your extent (default 4MB). In a large volume group you would see this problem even during the creation (did you not ?) because you need to increase the PE size from a default 4MB to a larger value (-s option in vgcreate).
Pete Randall
Outstanding Contributor

Re: vgextend gives file too large?

There's some "file too large" info in this thread, have a look:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x566d0fe6d0f7d61190050090279cd0f9,00.html



Pete



Pete
James R. Ferguson
Acclaimed Contributor

Re: vgextend gives file too large?

Hi Mark:

Do a 'pvdisplay' for both disks. Make sure that the 'PE Size' is the same.

Regards!

...JRF...
Mark Hoensheid
Advisor

Re: vgextend gives file too large?

 
Mark Hoensheid
Advisor

Re: vgextend gives file too large?

Running HPUX 11i with December 2002 patch bundles
James R. Ferguson
Acclaimed Contributor

Re: vgextend gives file too large?

Hi (again):

I'd still like to see a '*pv*display' for /dev/dsk/c2t2d0 and /dev/dsk/c2t0d0. Is the report PE Size smaller for c2t2d0 ?

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: vgextend gives file too large?

From reading that other thread I pointed you to, it sounds like your PE size might be too small to accomodate the LVM structures.


Pete

Pete
Mark Hoensheid
Advisor

Re: vgextend gives file too large?

pvdisplay /dev/dsk/c2t0d0
--- Physical volumes ---
PV Name /dev/dsk/c2t0d0
VG Name /dev/vg01
PV Status available
Allocatable yes
VGDA 2
Cur LV 1
PE Size (Mbytes) 4
Total PE 8681
Free PE 1181
Allocated PE 7500
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On

NEW DISK
pvdisplay /dev/dsk/c2t2d0
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c2t2d0" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c2t2d0"

When I created the pv is used:
pvcreate -f -B $RAW and is said is was created successfully with no warning or errors?
Patrick Wallek
Honored Contributor
Solution

Re: vgextend gives file too large?

I don't think this will make a difference, but since this is vg01 and this drive is not a boot drive, you don't need the '-B' option to pvcreate. The '-B' tells it to make the disk bootable.

Try just doing a

# pvcreate -f /dev/rdsk/c2t2d0

then vgextend and see what happens.
Pete Randall
Outstanding Contributor

Re: vgextend gives file too large?

According to

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&admit=-682735245+1047658241436+28353475&docId=200000062909773

you can calculate the PE size required thusly:

2*(30 + MAX_PE)/1024

In your case that comes out to a PE size of just over 8MB. I think you need to recreate the VG with a PE size of 16.


Pete

Pete
Thierry Poels_1
Honored Contributor

Re: vgextend gives file too large?

Sorry, still doesn't sound right. A 30GB drive should not require a PE-size of 16.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.