1834449 Members
2729 Online
110067 Solutions
New Discussion

Error creating VG

 
SOLVED
Go to solution
Carlos Vanegas
Occasional Advisor

Error creating VG

I want to create a VGxx in my server, but when I assigned the name and select the disk (253530), received the next messages:

vgcreate: Volume group "/dev/vgid2" 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. What parameter I need to increase in kernel??

Thanks.
5 REPLIES 5
Massimo Bianchi
Honored Contributor

Re: Error creating VG

Hi, no kernel parameter, but vgcreate parameter.


if you don't specify, you use a PE of 4 M

you may try with a PE size of 16M


see "man vgcreate" for the details.

HTH,
Massimo

Stuart Abramson_2
Honored Contributor

Re: Error creating VG

Let's see the commands you used with error message.
James R. Ferguson
Acclaimed Contributor

Re: Error creating VG

Hi Carlos:

There is no kernel parameter to change. As the message indictes you need to modify the 'max_pe', 'pe_size', 'max_pv' and/or 'max_lv' to create a smaller LVM header which will fit in one physical extent.

The most likely parameter to change is the 'pe_size'. Enlarge it. See the man pages for 'vgcreate' for more details.

Regards!

...JRF...
Jairo Campana
Trusted Contributor
Solution

Re: Error creating VG

Usually, if you set up a new volume group without any command line switches, the default physical extent size (pe_size=4MB) is used. pe_size can be in the range 1 to 256MB. pe_size must be equal to a power of 2 (1, 2, 4, 8, etc.). The default value for maximal physical extents (max_pe) is 1016.

However, if the size of any physical volume exceeds 1016 times the pe_size, the default value for max_pe is adjusted automatically to match the physical volume size. The maximum number of physical extents can be a value in the range 1 to 65535.

This automatic procedure does not work, if you manually set the pe_size, e.g.:

# vgcreate -s 8 vgXY /dev/dsk/cCtTdD

In this example the vgcreate only works with disks smaller or equal than 8128 MB (1016 times 8MB).

If you want to use larger disks you have also to apply the max_pe value, e.g. for a 64GB disk:

# vgcreate -s 8 -e 8192 vgXY /dev/dsk/cCtTdD

NOTE: Plan these values carefully, thinking of the largest disk you want to use in the future. You cannot change pe_size and max_pe, resp., for an existing volume group.

legionx
Caesar_3
Esteemed Contributor

Re: Error creating VG

Hello!

Intresting what size of your disk?
No it's not kernel, it's VG creation parms.

You must change the PE size when you
create PE (make it bigger 16-32 depend)

You can also try to use SAM and see what
size he will choose.

Caesar