Operating System - HP-UX
1753529 Members
4668 Online
108795 Solutions
New Discussion юеВ

Re: vgmodify is hanging when trying to set max_pe and max_pv

 
Ken Mueller
Advisor

vgmodify is hanging when trying to set max_pe and max_pv

The volume group is vg00.
diskinfo shows 50GB available on the disk.
Currently the vg is 40GB - we'd like to expand it to use the 50 available on the disk:
*********************************************
(hpa:/)# vgdisplay 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 5016
VGDA 2
PE Size (Mbytes) 8
Total PE 5007
Alloc PE 5006
Free PE 1
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 627g
VG Max Extents 80256

(hpa:/)# vgmodify -a -v -r -p 14 -e 6396 vg00
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 5016
PE Size (Mbytes) 8
VGRA Size (Kbytes) 688
The current and new Volume Group parameters differ.
An update to the Volume Group IS required


New Volume Group settings:
Max LV 255
Max PV 14
Max PE per PV 6396
PE Size (Mbytes) 8
VGRA Size (Kbytes) 752
Review complete. Volume group not modified
(hpa:/)# vgmodify -a -v -p 14 -e 6396 vg00
*********************************************
At this point it hangs. Any ideas? This is hp-ux v11.31 (shiny and new) running on an rx2660 with an EVA4400 disk array.
Thanks, Ken
6 REPLIES 6
sujit kumar singh
Honored Contributor

Re: vgmodify is hanging when trying to set max_pe and max_pv

hi

vgmodify -a -E

can you try this

regards
sujit
sujit kumar singh
Honored Contributor

Re: vgmodify is hanging when trying to set max_pe and max_pv

Hi

please refer to following if you are attempting the ONline DLE.

http://h20000.www2.hp.com/bc/docs/support/SupportManual/c01920387/c01920387.pdf (BSC link updated by admin)

Online vgmodify procedures
Performing an online DLE
1. The trigger for dynamic expansion of a disk is usually when you find out that a configuration
operation fails because of lack of space on a particular physical volume. For example, you
have a contiguous logical volume on a particular physical volume PV1. You plan to extend
this logical volume, but do not have the required space on PV1. In this case, one option is to
dynamically expand the LUN and use vgmodify to take account of the size change.
2. Decide on the correct size to which to expand the LUN. Expanding the disk to a larger size
arbitrarily might not be the right thing to do. Here, you can use vgmodify in table mode to
decide on the optimal size to which the disk is to be expanded.
# vgmodify -t ├в v vg1 #Use the table output to determine the right size
for expansion. (Form ore information, see the Common
Version 1.0 examples.)
3. Perform the DLE operation using the relevant disk utilities.
4. Use the review mode to ensure that a DLE on the disk will yield the desired results as follows:
# vgmodify -v ├в r ├в a ├в E vg1 #Note ├в r, review mode.
5. Perform the actual DLE operation in the change mode as follows:
# vgmodify ├в a ├в E vg1 #Note, same options and arguments as in
the previous step, but without ├в r option.


regards
sujit
Ken Mueller
Advisor

Re: vgmodify is hanging when trying to set max_pe and max_pv

Thanks Sujit. This is what I tried (see my original post where I paste the results of those commands).
sujit kumar singh
Honored Contributor

Re: vgmodify is hanging when trying to set max_pe and max_pv

Hi


as this is an Online DLE that is you are incresing the underlying LUN size to reflect in the VG.
thats why this requires the -a -E options
regards
Karey Sadler
Occasional Contributor

Re: vgmodify is hanging when trying to set max_pe and max_pv

Thanks sujit - I guess I wasn't clear. I think I am following the documentation very closely - it is still not working.
I'm working with HP support now (and so far they've had no luck figuring it out either).
Thanks for your help.
Ken
Ken Mueller
Advisor

Re: vgmodify is hanging when trying to set max_pe and max_pv

no solution yet - working with HP support now