1833831 Members
2598 Online
110063 Solutions
New Discussion

Can't umount /var?

 
SOLVED
Go to solution
Jon Mattatall
Esteemed Contributor

Can't umount /var?

Hi there -
On HP-UX 11.00, I've lvextended /var and am now trying to extend the fs to the new size. However, when I:
shutdown -y 0
umount /dev/vg00/lvol8
it says "Device in use" - if I reboot to hpux -lm, and try to umount, the message is "requires block file"
I'm fairly new to this, but how can I determine what's in use?
(ps -ef |grep var shows nothing, but I'm not sure if it should)

Jon
A little knowledge is dangerous - none is absolutely terrifying!!!
7 REPLIES 7
Jon Mattatall
Esteemed Contributor

Re: Can't umount /var?

Oops - I'm using a Web Console to a remote location - that may have some impact as well
A little knowledge is dangerous - none is absolutely terrifying!!!
Vincenzo Restuccia
Honored Contributor

Re: Can't umount /var?

#fuser -ku /var
eran maor
Honored Contributor
Solution

Re: Can't umount /var?

Hi

use fuser to see which user are working or open a file in the /var .

you dont need to boot with lm option but to boot with isl>hp-ux -is
to boot to a single user mode and then do you action on the /var .

you can also active the vg if you are booting with lm .

the Web Console dont have any effect on this .

tell me if you need more help
love computers
Robin Wakefield
Honored Contributor

Re: Can't umount /var?

Hi Jon,

For a mounted filesystem, use:

fuser -cu /var

to see who is using it.

However, the extendfs will need to be done in single-user mode, since a number of multi-user processes will be using /var, e.g. the logging tools.

Rgds, Robin.
Jon Mattatall
Esteemed Contributor

Re: Can't umount /var?

Good ideas, but -
when I boot with hpux -is and try
umount /dev/vg00/lvol8
I get - "umount: cannot umount /var : Block device required"

Doesn't that mean a disk?

I do not grok this at all, 30 secs before this I umounted, extendfs, mounted lvol7 without a problem.

Would this have a chance?
shutdown -y 0
fuser -k /var
umount ......
A little knowledge is dangerous - none is absolutely terrifying!!!
Jon Mattatall
Esteemed Contributor

Re: Can't umount /var?

Forgive me, my error...

I forgot that /var ISNT MOUNTED at this point

Eran, you were right on the money

Thanks very much
Jon
A little knowledge is dangerous - none is absolutely terrifying!!!
Robin Wakefield
Honored Contributor

Re: Can't umount /var?

Hi Jon,

Can you show us what the output of the following commands shows:

ls -l /dev/vg00
mount -p

Rgds, Robin.