1832350 Members
2485 Online
110041 Solutions
New Discussion

vgextend

 
SOLVED
Go to solution
Brian butler
Frequent Advisor

vgextend

Ok i have about 4000mb left on my root disk is there any way that i can extend or add on space to any particular mount point

/dev/vg00/lvol3 /
/dev/vg00/lvol1 /stand
/dev/vg00/lvol8 /var
/dev/vg00/lvol7 /usr
/dev/vg00/lvol4 /tmp
/dev/vg00/lvol6 /opt
/dev/vg00/lvol5 /home

I keep getting this message that i have unallocated disk space
You may use the LVM (Logical Volume Manager)
portion of SAM to allocate more disk space for your use

and i go into the logical volume manager in sam and it claims that there is some policy on the drive that does not let me preform this, meanwhile i just installed HP UX 11.11 on this machine, and i forgot to use all of the space, and i would like to extend, can anyone help
Reboot and give me twenty....
9 REPLIES 9
Wodisch
Honored Contributor

Re: vgextend

Hello Brian,

only some LVOLs need the special policy called "strict & contigous", and those are the ones used for "/", "/stand", and "swap" (not shown in your list) - usually they are "lvol1" to "lvol3". All the others can be extended (command "lvextend" for the LVOL and then the command "extendfs" or "fsadm" for the file-system in that LVOL).
If neccessary you may change the policy using "lvchange" for your LVOLs 4, 5, 6, and 8.

Regards,
Wodisch

harry d brown jr
Honored Contributor

Re: vgextend

Brian,

The only way to add more space to / or /stand is to do a "make_tape_recovery -Avi" and restore your system, then when in recovery extending your / or /stand.

For the others you can do it while the system is running IF you have ONLINE-JFS. Otherwise you have to stop any processes from using them because you have to unmount them to extend them. The best way to do such is to go into single user mode.

Also, clean up your system of unneeded files. One culprit is usually regular files in /dev. Do this:

find /dev -type f -exec ls -l {} \;

In /dev you usually only have Character and Block device files, directory files, and sometimes sockets and pipes. The find command above should return back with nothing.

Use the search function to the left under the "IT Resource center" title, select "community forums", and enter in the search string:

+vgextend +root +ignite

here's one that will help:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa7e95e938a10d6118ff40090279cd0f9,00.html


live free or die
harry

Live Free or Die
Wilfred Chau_1
Respected Contributor

Re: vgextend

Do you have on-line JFS installed?
Use swlist -l product |grep -i online
or strings /stand/vmunix |grep -i vx

If not, you can umount the file system,
vgextend, lvextend, extendfs.

umount /?
vgextend vg01 /dev/dsk/c?t?d?
lvextend -L 1000M /dev/vg01/lv?
extendfs -F vxfs /dev/vg01/rlv?
mount /?

Online JFS allows you to extend a fs live without umounting any file system.
Wodisch
Honored Contributor
Solution

Re: vgextend

Hi again,

well, just to oppose one of our famous "sandy" hats: yes, you can increase the root file system (without Ignite/UX, nor reboot), and I have done that in that past, successfully!

Read the description over there:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x957b06295e00d6118ff40090279cd0f9,00.html

But be careful - it needs additional software (Online JFS), additional hardware (and unused disk drive of the neccessary size), some time, and it is not supported (AFAIK)...

Regards,
Wodisch
S.K. Chan
Honored Contributor

Re: vgextend

Wodisch, unconventional , but very cool workaround. I like it !!

..(no points please..)
harry d brown jr
Honored Contributor

Re: vgextend

Wodisch, like SK Chan said "cool" workaround, but I have to ask: have you been drinking again? :-))

btw: save one for me

live free or die
harry
Live Free or Die
John Carr_2
Honored Contributor

Re: vgextend

Hi

If you need to extend lvol1-3 there is also an alternative way which I use when possible

to do this you can use ignite backing the system up to a tape then restoring with a larger file system.

/opt/ignite/bin/make_recovery -p -A

edit the config.recover file to increase the size of the required file system/s.

/opt/ignite/bin/make_recovery -r

once the tape has finished,
halt the system
boot from tape

wait for restore to finish

all done.

cheers
John.



sudhir_3
Advisor

Re: vgextend

Hi
1) unmount the point which you want to extend let say /tmp
umount /tmp
lvexted -L total size in mb
/dev/vg00/lvol4
extendfs -F filesystem type
/dev/vg00/rlvol4
mount /dev/vg00/lvol4 /tmp


chears sudhir


No end of technology
Wodisch
Honored Contributor

Re: vgextend

Hi again,

S.K. & Harry: thanks :-)

Harry: I was completely sober when I did that - and I am still staying on the arabian paeninsula (no alcohol here; guess what, I am drinking Mango juice and WATER).
Well, I'll be back in germany next weekend, but my boss has announced a job in Qatar (two hours by car from here, no alcohol), then one in athens, and then one in finland (alcohol seems to be rare and expensive there); but at least the greek DO have great wine (I prefer the strong and sweet, both red and white)...