1825810 Members
3063 Online
109688 Solutions
New Discussion

Re: extending /var

 
SOLVED
Go to solution
maria paschali
Frequent Advisor

extending /var

Hi,

I am trying to extend /var and have done the following.

since /var is already mounted extended the logical volume

lvextend -l 400 /dev/vg00/lvol8

i have tried to change run levels by running

- init s
- killall

but when i try to umount /var i get an error message that the device is busy and cannot unmount the device. So i tried it the traditional way.

-shutdown

waited for the 60 sec grace period and the 20 sec single user mode period . now i know i am definately in single user mode.

however when i try to umount /var i still get the same error message. i run bdf and can see that

/
/var
/usr
/home

are mounted

i don't think this is very normal. Is there anything else I can try to unmount /var to extend it. I am not using on-line JFS, using version 11.0, A-class.

if i remove the entry from the /etc/fstab file will that be a bad thing?

thanks in advance
Maria

8 REPLIES 8
Michael Tully
Honored Contributor
Solution

Re: extending /var

Hi Maria,

Sometimes some processes associated with
some filesystems will not terminate
going into single user mode, going down.
I suggest you reboot the system into
single user mode, and then increasing
your logical volume.

interrupt the boot
At the ISL prompt:

ISL> hpux -is
system boots in single user mode
increase your logical volume
extend your filesystem using 'extendfs'
put system into multi-user mode,
control-d or init 3 or 4 depending
on the first line or /etc/inittab

HTH
Michael
Anyone for a Mutiny ?
T G Manikandan
Honored Contributor

Re: extending /var

BFA6
Respected Contributor

Re: extending /var

Hello,

You can use fuser to find out which processes are using the filesystem.

processes like syslogd write to /var

Hope this helps

Hilary
Carlos Fernandez Riera
Honored Contributor

Re: extending /var


As said Michael, the easy way is by rebooting in single user mode.

lvextend -l 400 will extent up 1.6 Gb !!!

I usualy create a new lvol to store /var/adm/sw/save. If you cant reboot now this is a easy trick to dealocate space in /var.

lvcreate -L 500 /dev/vg00
newfs /dev/vg00/rlvolxxx

mount /dev/vg00/lvolxx /tmp_mnt


cd /var/adm/sw/save

mv * /tmp_mnt

umount /tmp_mnt
edit /etc/fstab and add a new filesystem to mount

/dev/vg00/lvolxxx /var/adm/sw/save vxfs delaylog 0 2


mount /var/adm/sw/save.


And please do not remove /var from /etc/fstab.






unsupported
Mateja Bezjak
Respected Contributor

Re: extending /var

Hi Maria,

I usually take the following steps. They work for me:

1. Reboot and in single user mode type:
2. boot pri isl
3. hpux -isl
4. mount -a
5. umount /dev/vg00/lvol8
6. lvextend -L 400 /dev/vg00/lvol8
7. extendfs /dev/vg00/lvol8
8. mount /dev/vg00/lvol8 /var
9. reboot

Regards,
Mateja
Sukant Naik
Trusted Contributor

Re: extending /var

Hi Maria,

First couple of queries.

1. Have you got OnlineJFS?
If yes, then use fsadm to do extend the /var filesystem. So there is no issue of unmounting the /var filesystem.

2. If you dont have OnlineJFS then you need to unmount the filesystem after you run the lvextend command. Because mere running lvextend will not extend the filesystem, you need to run the 'extendfs' command. So my suggestion is to straight away shutdown the machine and then boot it in single user mode by using ISL> hpux -is
After that use extendfs to extend the filesystem.

-Sukant
Who dares he wins
maria paschali
Frequent Advisor

Re: extending /var

hi
thanks for all your help,
using ISL worked.

Why doesn't the "shutdown (boot in single user mode)" command work?

even after rebooting the system? I don't understand why it would still have processors attached to it if you do a reboot then a shutdown into single user mode without using the ISL fuction?

Carols thanks for the tip, I was trying to extend /var for that particular purpose. didn't think to move it elsewhere.

Maria
Carlos Fernandez Riera
Honored Contributor

Re: extending /var