1771263 Members
2188 Online
109004 Solutions
New Discussion юеВ

Extend LVM Volume group

 
huismanh
New Member

Extend LVM Volume group

Is it possible to change the value of "VG Max Size"
HP-UX version 11.31
LVM-version 2

After definening a second physical volume it is not possible to use added space above the defined "VG Max Size" when the VG was created
11 REPLIES 11
Torsten.
Acclaimed Contributor

Re: Extend LVM Volume group

What value you are talking about?

> vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4238
VGDA 2
PE Size (Mbytes) 8
Total PE 4228
Alloc PE 3801
Free PE 427
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0.0


usr/sbin/vgmodify [-B bootable] [-e max_pe] [-l max_lv] [-n] [-p max_pv] [-r] [-v] vg_name [pv_path...]


Do you want to change the max_pe value?

See

http://docs.hp.com/en/B2355-60130/vgmodify.1M.html

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!   
Mridul Shrivastava
Honored Contributor

Re: Extend LVM Volume group

There is nothing call VG MAX Size....

yes you can increase Max PE per PV but you may have to increase the PE Size value as well so it can accomodate all the headre information.

Read man vgmodify for more details.
Time has a wonderful way of weeding out the trivial
Sharma Sanjeev
Respected Contributor

Re: Extend LVM Volume group

Hi

You can Change Max PE in VG with vgmodify command in 11.31, it was not supported by HP before 11.31.

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Torsten.
Acclaimed Contributor

Re: Extend LVM Volume group

This is not entirely true, see

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

(this is
HP-UX 11i Version 2: December 2007 Update)

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!   
huismanh
New Member

Re: Extend LVM Volume group

I want (my customer) to change the value of "VG Max Size"

The output below is not from the VG that needs to be extended but shows the parameter "VG Max Size" I mean.

# vgdisplay -v vgS32logexe
--- Volume groups ---
VG Name /dev/vgS32logexe
VG Write Access read/write
VG Status available
Max LV 511
Cur LV 3
Open LV 3
Max PV 511
Cur PV 1
Act PV 1
Max PE per PV 48128
VGDA 2
PE Size (Mbytes) 1
Total PE 48119
Alloc PE 47104
Free PE 1015
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 2.0
VG Max Size 47g
VG Max Extents 48128


The value must be defined in case of LVM version 2.
Sharma Sanjeev
Respected Contributor

Re: Extend LVM Volume group

Hi Torston

I mean to say before 11.31

use vgmodify on 11.23 as a patch PHCO_35524

or vgmodify is part of 11.31

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Torsten.
Acclaimed Contributor

Re: Extend LVM Volume group

OK, this is new to LVM version 2.

It's a calculated value, see

Max PE per PV 48128
PE Size (Mbytes) 1
Total PE 48119
Alloc PE 47104
VG Max Size 47g


Max PE per PV * PE Size = VG Max Size

48128 * 1MB = 48GB (rounded)

So you need to increase the max_pe value.

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: Extend LVM Volume group

Keep in mind you are currently limited by the PE_size of 1MB.

In order to increase this you must delete and re-create this VG.

See also

http://docs.hp.com/en/lvm-v2/LVM_Version2.0_VG.pdf

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!   
huismanh
New Member

Re: Extend LVM Volume group

Thanks all for you're replies.
I will inform my customer

regards,
Hennie