Operating System - HP-UX
1748142 Members
3730 Online
108758 Solutions
New Discussion юеВ

Re: Kernel parameter for "Max PV"

 

Kernel parameter for "Max PV"

I saw there's no parameter for "Max PV"
But when I make VG, this message was printed on my screen.
=============================================
# vgcreate -p 255 /dev/vg01 /dev/dsk/c1t2d1
Increased the number of physical extents per physical volume to 11508.
vgcreate: Volume group "/dev/vg01" 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.
==============================================
How can I solve this problem?
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor

Re: Kernel parameter for "Max PV"

Hi:

See:

http://www.docs.hp.com/en/B3921-60631/vgcreate.1M.html

Do you really need 255 physical volumes in your volume group? If so, increase the 'pe_size' with '-s pe_zize'. The default value is four (4). When performing a 'vgcreate' the LVM metadata must fit into _one_ physical disk extent. The 'pe_size' and 'max_pe' have the biggest affect on the size of the extent needed. To a lesser extent, 'max_pv' and 'mac_lv' play a role.

Regards!

...JRF...
Suraj K Sankari
Honored Contributor

Re: Kernel parameter for "Max PV"

Hi,

Change kernel parameter value of max_pv & max_lv then you try with the same command.

Suraj
Viktor Balogh
Honored Contributor

Re: Kernel parameter for "Max PV"

there are no max_pv nor max_lv kernel parameter...

the default extent size is 4MB, this way the VGRA area would be too large and this would be a waste of space. you need to give a larger extent size with the -s option:

# vgcreate -p 255 -s 16 /dev/vg01 /dev/dsk/c1t2d1

if it gives an error, try with a larger extent size, (it should be the power of 2!)

****
Unix operates with beer.
Fabian Brise├▒o
Esteemed Contributor

Re: Kernel parameter for "Max PV"

I had the same problem last week.

And I had to recreate my VG.

Note: First make a backup of the data so you can restore it afterwards, this will destroy the VG and therefore data will be lost.

Example(my case).
1. vgchange -a n /dev/vg02 (deactivate)

2. vgexport /dev/vg02 (delete)

3. mkdir /dev/vg02 (make directory)

4. mknod /dev/vg02/group c 64 0x020000 (create special files)

5. ioscan -fnC disk (see HW path of disks)
pvcreate -f /dev/rdsk/c9t0d0 (readys for LVM)
pvcreate -f /dev/rdsk/c9t0d1 (readys for LVM)

6. vgcreate -s 4 -p 150 /dev/vg02 /dev/dsk/c9t0d0 /dev/dsk/c9t0d1

-s size of physical extents
-p maximum # of physical volumes

Hope this helps.

Remember to assign points for helpful answers.
Knowledge is power.
Viktor Balogh
Honored Contributor

Re: Kernel parameter for "Max PV"

Fabian: he wants to create a new VG, not to extend an already existing one!

****
Unix operates with beer.
Fabian Brise├▒o
Esteemed Contributor

Re: Kernel parameter for "Max PV"

oopss, sorry guys I misunderstood the question.

Knowledge is power.

Re: Kernel parameter for "Max PV"

Thanks for you gouys advice.
If I have any chance that I can test, I'll reply test result
Viktor Balogh
Honored Contributor

Re: Kernel parameter for "Max PV"

could you test it?
****
Unix operates with beer.