1834169 Members
2736 Online
110064 Solutions
New Discussion

Can't extend /var volume

 
SOLVED
Go to solution
David Owens_1
Advisor

Can't extend /var volume

After bringing my system down to single user mode, I can increase the size of the /var volume but cannot extend because I am unable to unmount it.

To increase size I used:
# lvextend -L 1000 /dev/vg00/lvol8
This work fine.

I then needed to unmount the volume to run extenfs and the system would not allow because it was busy.

I do not have onlineJFS. Is there an easy way to unmont this volume?

David Owens
Ingersoll-Rand
4 REPLIES 4
Santosh Nair_1
Honored Contributor

Re: Can't extend /var volume

Unfortunately, when you transition down to single user from multiuser, the OS kills most, but not all, of the services. You can find out which ones are still using /var by using the fuser command, i.e. :

fuser -cu /var

and killing off those processes. Also remember to kill off swagentd and rpcd (these programs use sockets in /var which are not picked up by fuser). Then you should be able to umount and extendfs /var and then bring it back into multiuser mode.

If that doesn't work, you might have to reboot the machine and bring it into single user mount. /var should not be mounted at this point and you should be able to do the extendfs.

Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans
Michael Tully
Honored Contributor
Solution

Re: Can't extend /var volume

Hi,

Sometimes some filesystems will not umount no
matter what you try going from multi to single
user. You do one of two things.
First boot the system into single user mode,
then extend the filesystem using
# extendfs /dev/vg00/lvol8

interrupt the boot and interactive with ISL
ISL> hpux -is

extend the filesystem and then press control-D
this will continue the boot sequence and
mount all your filesystems. Another way to do
this is to boot off your make_recovery tape if
have one.

HTH
-Michael
Anyone for a Mutiny ?
James R. Ferguson
Acclaimed Contributor

Re: Can't extend /var volume

David:

This is often a problem with filesystems like /var/ and /usr particularly in the absence of Online JFS. You can try to find and kill processes with open files to /var with 'fuser' and then proceed to 'extendfs'.

The easier way is to boot up in single-user mode and do your LVM maintenance with the commands in /sbin.

If you have already done the 'lvextend', you can still take this approach. Boot into single-user mode and begin where you left off.

Regards!

...JRF...
David Owens_1
Advisor

Re: Can't extend /var volume

Thanks everybody!!!

It worked when I went to single user mode at boot up.