Operating System - HP-UX
1830354 Members
2049 Online
110001 Solutions
New Discussion

Need to add an lv where the vg has no space

 
SOLVED
Go to solution
Walmsley Charles
Occasional Contributor

Need to add an lv where the vg has no space

Got a problem here in that I need to add an lv in the following vg :
root@miahp052:/home/root # vgdisplay /dev/ESS06miadzxx1_3
--- Volume groups ---
VG Name /dev/ESS06miadzxx1_3
VG Write Access read/write
VG Status available
Max LV 64
Cur LV 64
Open LV 64
Max PV 64
Cur PV 2
Act PV 2
Max PE per PV 710
VGDA 4
PE Size (Mbytes) 16
Total PE 1024
Alloc PE 648
Free PE 376
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

root@miahp052:/home/root #

I'm looking for the most economical way - in space and in time - to accomplish this. Would really be thankful for any help.
Fairly obviously, the easy way out here is either to use another vg - which already exists and has space, or to create a new vg. Please notice that the reason for this request is because the requestor has some very fixed ideas about naming conventions within a given environment.
6 REPLIES 6
Torsten.
Acclaimed Contributor

Re: Need to add an lv where the vg has no space

Hi,

your problem is here:

Max LV 64
Cur LV 64

Because up to 11.23 you cannot change this max value - you need to take a new disk and create a new VG.
(the default is 255, but set to the current value by the user)

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!   
A. Clay Stephenson
Acclaimed Contributor

Re: Need to add an lv where the vg has no space

Well, the most straightforward iapproach would be to add additional PV's to this VG and then create an additional LVOL; however, in this case that dog won't hunt on account of you have done gone and max'ed out the number of LVOL's. This limit can't be increased after the vg has been created.

If the user absolutely insists upon adding to this VG then the answer is to back everything up, recreate the VG, and restore. Given that alternative, I would use your already stated easy way out and add the LVOL to another VG.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: Need to add an lv where the vg has no space

Well, the most straightforward approach would be to add additional PV's to this VG and then create an additional LVOL; however, in this case that dog won't hunt on account of you have done gone and max'ed out the number of LVOL's. This limit can't be increased after the vg has been created.

If the user absolutely insists upon adding to this VG then the answer is to back everything up, recreate the VG, and restore. Given that alternative, I would use your already stated easy way out and add the LVOL to another VG.
If it ain't broke, I can fix that.
Peter Godron
Honored Contributor

Re: Need to add an lv where the vg has no space

Hi,
similar to this earlier thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=58045

One solution would be to re-build the disk, another to remove an existing LV.

Would it be possible to use links to a different VG ?
Create a directory on your mount point and link it to a different directoy on a different disk.
Torsten.
Acclaimed Contributor
Solution

Re: Need to add an lv where the vg has no space

You didn't mention your OS version, but if you are already on HP-UX 11iv3 (11.31) you an use vgmodify to adjust the max_lv 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!   
Walmsley Charles
Occasional Contributor

Re: Need to add an lv where the vg has no space

Thanks very much folks. I have my solution and some additional information - I didn't know the version in which vgmodify was to be found.