1826073 Members
3718 Online
109690 Solutions
New Discussion

LVM question

 
SOLVED
Go to solution
Chris Fadrowski
Super Advisor

LVM question

i am trying to create a 400 gb lun from my IA64 11.23v2 unix server using LVM.

when i did the vgcreate i get this.. can someone tell me what the problem is? i don't see the kernel parameter that it may be asking me to change...

root@host:/>vgcreate vg22 /dev/dsk/ch7t1d4
Warning: Max_PE_per_PV for the volume group (65535) too small for this PV (102399).
Using only 65535 PEs from this physical volume.
Increased the number of physical extents per physical volume to 65535.
vgcreate: Volume group "/dev/vg22" could not be created:
VGRA for the disk is too big for the specified parameters. Increase the
extent size or decrease max_PVs/max_LVs and try again.
4 REPLIES 4
Torsten.
Acclaimed Contributor

Re: LVM question

IMHO, the command is telling you exactly what you need to do.

see man vgcreate.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
James R. Ferguson
Acclaimed Contributor
Solution

Re: LVM question

Hi Chris:

The error is self-explanatory. The maximum number of EXTENTS is 65,535. You need to choose a *larger* value for the EXTENT SIZE to accomodate fully utilizing your disk.

See the manpages for 'vgcreate' and choose a larger value for '-s pe_size'.

Regards!

...JRF...
Chris Fadrowski
Super Advisor

Re: LVM question

using the -s 8 worked. I have never seen this before. All luns created have been 100 gb. thanks.
Ninad_1
Honored Contributor

Re: LVM question

Hi Chris,

There are basically 2 errors.
First error is telling you that using default values of PE Size = 4 MB (as you have not specified any) and your disk being 400 GB :(400*1024)/4 = 102399 Physical extents would be needed to be configured, whereas LVM has a limitation of being able to use only 65535 PEs.
Next error imdicates that the VGRA (Volume Group Reserved Area) is small for the configuration you are trying to use - (again using default value of PE size = 4MB) expecting the VGRA to store more number of extents information than it can.
Thus you need to specify the parameters in such a way that all limits are stuck to.
Try using PE Size = 8 MB or 16 MB [ or as you would prefer ] using parameter -s 8
or -s 16 while doinf a vgcreate.

Regards,
Ninad