Operating System - HP-UX
1836599 Members
2235 Online
110102 Solutions
New Discussion

How to increse "Max PV" of a volume group

 
Paul Ettema
Advisor

How to increse "Max PV" of a volume group

Hi,

I have a Volume Group on HPUX 11.31
curently "Max PV" is 16, but "Act PV" is also 16.
I want to add more PV's so
How can I incriese "Max PV"

root@un2007 [/root] # vgdisplay vgora03
--- Volume groups ---
VG Name /dev/vgora03
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 5
Open LV 5
Max PV 16
Cur PV 16
Act PV 16
Max PE per PV 1536
VGDA 32
PE Size (Mbytes) 8
Total PE 24560
Alloc PE 17524
Free PE 7036
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0.0

Paul.
13 REPLIES 13
Torsten.
Acclaimed Contributor

Re: How to increse "Max PV" of a volume group

Have a look at "vgmodify ... -p ...".

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!   
gstonian
Trusted Contributor

Re: How to increse "Max PV" of a volume group

vgmodify

-p max_pv Set the maximum number of physical volumes
that the volume group is allowed to contain
(see vgcreate(1M) -p). The maximum number of
physical volumes can range from the current
number of physical volumes in the volume
group to 255.

The -t option displays a table of possible
max_pv values for vg_name.
Asif Sharif
Honored Contributor

Re: How to increse "Max PV" of a volume group

see

http://h20000.www2.hp.com/bc/docs/support/SupportManual/c01920387/c01920387.pdf (BSC link updated by admin)
Regards,
Asif Sharif
Emil Velez
Honored Contributor

Re: How to increse "Max PV" of a volume group

see vgmodify a supported tool to change max pe per pv or max pv per vg
Vishu
Trusted Contributor

Re: How to increse "Max PV" of a volume group

Hi Paul,

vgmodify having good features with 11.31. You can increase the Max PV parameter with vgmodify -p option. Also, if required you can check it the things in preview mode before actually implementing it.

The above link is a good one to go through.
Paul Ettema
Advisor

Re: How to increse "Max PV" of a volume group

@all,

Thanks for reply.

-t option give enough information for argument for option -p.

But when I want perform:
vgmodify -p 20 vgora14
I got:
vgmodify: The volume group "vgora14"is active on this system.
Is there any way a possibility that it can be done on the fly?

Paul.
Torsten.
Acclaimed Contributor

Re: How to increse "Max PV" of a volume group

Your hp-ux release version is probably too old. I don't remember exactly, maybe since march 2009 release vgmodify can do this online, any version before need a vgchange -a n ... first.

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!   

Re: How to increse "Max PV" of a volume group

the vg version is 1.0 , for online vg modification is only supported with version 2.0.

To increase the max PV value you have to deactivate the vg using vgchange command
then use vgmodify to change the number of max PV options .

go through the man page of vgmodify
Torsten.
Acclaimed Contributor

Re: How to increse "Max PV" of a volume group

@Amit: The vgmodify_wp has examples about online changes in chapter "Common Version 1.0 examples".

and says

"...
vgmodify for Version 1.0 volume groups


...
To run vgmodify on an activated volume group (online mode), invoke it with the â a option. To run vgmodify on a deactivated volume group (offline mode), invoke it without the â a option.

..."

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!   
Torsten.
Acclaimed Contributor

Re: How to increse "Max PV" of a volume group

... and another example from the WP:

# vgmodify -p 19 vg02 #Offline mode
or
# vgmodify -a -p 19 vg02 #Online mode

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!   
Paul Ettema
Advisor

Re: How to increse "Max PV" of a volume group

@Amit

How can I see witch version I got?
If I have v1.0, how can I upgrade to v2.0? (online?)


@Torsten

When I use â a option, I got illegal option.

[0]..# vgmodify -a -p 20 vgora14
Usage: vgmodify
[-e MaxPhysicalExtents]
[-p MaxPhysicalVolumes]
[-l MaxLogicalVolumes]
[-v]
[-n]
[-r]
[-B bootable]
VolumeGroupName {[pv_path] [pv_path] ....}

or vgmodify -o [-v] [-r] [-B bootable] VolumeGroupName {[pv_path] ....}

or vgmodify -t [-v] [-n] [-B bootable] VolumeGroupName {[pv_path] ....}
"a": Illegal option.


Paul.
Paul Ettema
Advisor

Re: How to increse "Max PV" of a volume group

some more info about system

HP-UX un2012 B.11.31 U 9000/800 2486151888 unlimited-user license



Base-VXFS B.11.31 Base VxFS File System 4.1 Bundle for HP-UX
Base-VXVM B.4.10.032 Base VERITAS Volume Manager Bundle 4.1 for HP-UX
BaseLVM B.11.31.0709.01 Logical Volume Manager

Paul.
Torsten.
Acclaimed Contributor

Re: How to increse "Max PV" of a volume group

Your LVM is september 2007 - too old to do online changes.

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!