Operating System - HP-UX
1840016 Members
2978 Online
110159 Solutions
New Discussion

how can I increase LV - /var ? it is 90%, please help ....

 
SOLVED
Go to solution
Jennie Gutentag
Occasional Contributor

how can I increase LV - /var ? it is 90%, please help ....

I had some memory problems (ran out of place), so I used "sam" in order to extract the logical volumes.
The problem is - while trying to increase /var - obviously it cant unmount (since "sam" is located there ...),
how can I do it ? (increase the LV I am working on ....), please note, I tried also to do it without "sam" using extendfs etc. but it didnâ t work either.
I apologize in advance, I am not a system administrator, so please give as much details as u can, thank u very much, Jenn
6 REPLIES 6
Mark Grant
Honored Contributor

Re: how can I increase LV - /var ? it is 90%, please help ....

You are probably going to have to boot into single user mode on this machine to unmount /var. Ultimately you need to know everything that hasa file opened in that filesystem "fuser -cu /var" and kill it all off before you can unmount it. This is unlikely to be possible on your running system and so the above mentioned boot is probably your best route.

However, if you have onlineJFS and /var is a vxfs filesystem (which is probably is) you can extend it online using "fsadm -b xxxM /var", assuming you have already increased the logical volume it sits on first.

If you need more detailed information, please post back again.
Never preceed any demonstration with anything more predictive than "watch this"
Stefan Farrelly
Honored Contributor

Re: how can I increase LV - /var ? it is 90%, please help ....

You need OnlineJFS to extend /var without rebooting or unmount it. Check if you have it with this command;

swlist -l bundle|grep -i onlinejfs

If it returns something like below then you have it and can extend it;

B3929BA B.11.00 HP OnLineJFS (Advanced VxFS)

If not then the thing to do is cleanup /var. You can do this with;

cd /var/tmp
rm *

run the SD cleanup command;
cleanup -c 1

This deletes old superceeded patches. This should free up quite a bit of space on /var without needing to extend it.

Im from Palmerston North, New Zealand, but somehow ended up in London...
Robert-Jan Goossens
Honored Contributor

Re: how can I increase LV - /var ? it is 90%, please help ....

Hi Jenn,

Before you increase /var check if you can free more space inside.

Preview
# cleanup -p -c 1

Hope it helps,
Robert-Jan.
aparna challagulla
Valued Contributor

Re: how can I increase LV - /var ? it is 90%, please help ....

hi Jenn,

you should have onlineJFS utility to increase the logical volume online.
To check whether u have onlineJFS or not

#swlist | grep onlineJFS


From the command line

1.#bdf - to find the mounted filesystems and their coressponding logical volumes

here i am assuming that /var is mounted on /dev/vg00/lvol1

2. umount the filesystem

umount /dev/vg00/lvol1

3. increase the logical volume

lvextend -L 4000 /dev/vg00/lvol1

4. extend the filesystem to occupy the increased space

extendfs /dev/vg00/rlvol1

5.mount the filesystem

mount /dev/vg00/lvol1 /var

the filesystem will not be unmounted if it is being used by other users/processes.

type fuser -u /var to find the processes using /var

type fuser -uk /var to kill the processes

HTH
aparna



If you don't have time to do it right you must have time to do it over
Robert-Jan Goossens
Honored Contributor
Solution

Re: how can I increase LV - /var ? it is 90%, please help ....

Here is a doc to extend /var if you do not have online jfs installed and you can not free space inside the volume.

http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000069475982

Regards,
Robert-Jan
Jennie Gutentag
Occasional Contributor

Re: how can I increase LV - /var ? it is 90%, please help ....

2 all of u guyz, Thank u so much !!!,

I will try to follow your advices one by one, and let u know what happened,
the speed u answered is amazing !!!

hope one day soon 2 b able to advice to others like u did !!!