Operating System - HP-UX
1833726 Members
2582 Online
110063 Solutions
New Discussion

Can vgmodify be used in order to add bigger disk to VG?

 
SOLVED
Go to solution
John Town
Advisor

Can vgmodify be used in order to add bigger disk to VG?

Hi,
I have a volume group (vg04) with a 72gb disk and would like to know if I can use vgmodify in order to add 146gb disk to the (vg04) and then mirror from the 72gb to the 146gb, can this be done? If so, what would be the value of the max_pe in the command
"vgmodify -v -r -o -e ##### n /dev/vg04"?

I have hpux 11.23 and I know that I would need to install patches PHCO_35524 and PHKL_36244 in order to have vgmodify.

vg04 is currently like this:

logical volumes 1
physical volumes 1
physicall active vol 1
extent size (MB 4
MB of Alloc 69996
physical free 0
space total 69996


Looking for good answers and I'm a generous assigning points.

JT

Looki












10 REPLIES 10
Steven E. Protter
Exalted Contributor

Re: Can vgmodify be used in order to add bigger disk to VG?

Shalom,

My understanding is that is a 11.31 only feature.

There may have been a patch since I last waded through the documentation, but that's what I remember.

SEP
hpuxadmin in gtalk
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: Can vgmodify be used in order to add bigger disk to VG?

I also remember it being vgchange.

Maybe not.

http://linux.die.net/man/8/vgchange

SEP
hpuxconsulting in yahoo messenger
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete Randall
Outstanding Contributor

Re: Can vgmodify be used in order to add bigger disk to VG?

The vgchange command is used to activate a volume group.

The vgmodify command has been available for just this sort of purpose since 11.11 (an undocumented add-on download, if you could find it) and I believe the patches you referenced will enable it in 11.23.


Pete

Pete
Mel Burslan
Honored Contributor

Re: Can vgmodify be used in order to add bigger disk to VG?

And in addition to the Pete's comments, the anecdotal evidence says the success factor is about 50% for vgmodify in hpux 11.11 and slightly higher in v.11.23 but still unsupported until v.11.31. So, proceed at your own risk.
________________________________
UNIX because I majored in cryptology...
John Town
Advisor

Re: Can vgmodify be used in order to add bigger disk to VG?

I will try it and see how it works.


So if I set the max_pe_extents to 65535 this means that I could later add bigger disk to vg04? example 250gb ?


extent size max_pe
4(mb) x 65535 = 262140 mb

aprox 255gb drives




sen_ux
Valued Contributor

Re: Can vgmodify be used in order to add bigger disk to VG?

You can change the max_pe to a higher value and add the 146G disk to vg04.

review the results of vgmodify with -r option and apply after verifying it.

#vgmodify -v -r -e 65535 vg04

then

#vgmodify -v -e 65535 vg04

check the possible values using -t.
Hakki Aydin Ucar
Honored Contributor

Re: Can vgmodify be used in order to add bigger disk to VG?

Lijeesh N G_1
Respected Contributor
Solution

Re: Can vgmodify be used in order to add bigger disk to VG?

Hi,

1) I have a volume group (vg04) with a
72gb disk and would like to know if I can use vgmodify in order to add
146gb disk to the (vg04) and then mirror from the 72gb to the 146gb, can this be done?
==>Yes

2) If so, what would be the value of the max_pe in the command
"vgmodify -v -r -o -e ##### n /dev/vg04"?
==>
PV Size -- 146GB
PE Size -- 4 MB
Max PE/PV -- PV Size / PE Size
-- 146GB / 4 MB
-- 37376

3) I have hpux 11.23 and I know that I would need to install patches PHCO_35524 and PHKL_36244 in order to have vgmodify.

vg04 is currently like this:

logical volumes 1
physical volumes 1
physicall active vol 1
extent size (MB 4
MB of Alloc 69996
physical free 0
space total 69996
==>Yes, you are correct. You need to install patches for enabling vgmodify command.


4)So if I set the max_pe_extents to 65535 this means that I could later add bigger disk to vg04? example 250gb ?


extent size max_pe
4(mb) x 65535 = 262140 mb

aprox 255gb drives

==>Max. size of PV,with the following parameters,
PE Size = 4MB
Max PE/PV = 65535
Max PV Size = PE Size x Max PE/PV
= 4MB x 65535
= 255GB

Regards,
LIJEESH N G
Lijeesh N G_1
Respected Contributor

Re: Can vgmodify be used in order to add bigger disk to VG?

Hi,

you have to install LVM commands patch PHCO_38717 (latest one)
along with its dependencies PHKL_31500 and PHKL_32095 to enable vgmodify command.

I would suggest you to run the command in preview mode 1st by,

#vgmodify -r -e

Regards
LIJEESH N G
John Town
Advisor

Re: Can vgmodify be used in order to add bigger disk to VG?

Hi, I was able to install the patches an use the vgmodify command. All I could do with it was change the max_pv of the volume group. When I tried to increase the max physical extents the system returned a message to use -n option, but I still could'nt use that option. It only works if the first PE is not in use or 0. I had to recreate the volume group with the new 146gb and restore from a backup. I tried it with 11.23. Maybe it works with 11.31. Thank for the assistances. Points for everyone!!!