Operating System - HP-UX
1753784 Members
7187 Online
108799 Solutions
New Discussion юеВ

Re: vgextend gives file too large?

 
SOLVED
Go to solution
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.