Operating System - HP-UX
1833770 Members
2258 Online
110063 Solutions
New Discussion

Unable to unmount filesystem

 
SOLVED
Go to solution
dictum9
Super Advisor

Unable to unmount filesystem

This is 11.23, L class

What can I do to unmount it?

# umount /dev/vgignite2/lvol2
umount: cannot unmount /sapmnt/LLC : Device busy
umount: return error 1.
#
# fuser -cu /sapmnt/LLC
/sapmnt/LLC:

# fuser -ku /sapmnt/LLC
/sapmnt/LLC:

# umount /dev/vgignite2/lvol2
umount: cannot unmount /sapmnt/LLC : Device busy
umount: return error 1.
#
6 REPLIES 6
Pete Randall
Outstanding Contributor
Solution

Re: Unable to unmount filesystem

fuser is not terribly reliable. Try using lsof to find out who/what is using the lvol:

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.77/


Pete

Pete
DCE
Honored Contributor

Re: Unable to unmount filesystem



try lsof

http://gatekeep.cs.utah.edu/hppd/cgi-bin/search?package=on&description=on&term=lsof&Search=Search

It is much more efficient than fuser.

Also, dumb question - is /sapmnt/LLC your current directory? You cannot unmount a filesystem if you in it (or in a child directory)
A. Clay Stephenson
Acclaimed Contributor

Re: Unable to unmount filesystem

Fuser is rather useless for this task (although it is intended to do this task); lsof will find processes that fuser never does. Download and install lsof and use it to track down your processes which still are using the file system.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: Unable to unmount filesystem

Hi:

One classic error is to be 'cd'ed into the directory that you are trying to unmount. Make sure that you aren't.

You can also try 'fuser' using the block special device file instead of the mountpoint:

# fuser -ku /dev/dsk/cXtYdZ

Regards!

...JRF...
Peter Nikitka
Honored Contributor

Re: Unable to unmount filesystem

Hi,

perhaps this filesystem is NFS-exported.
Unexport it via
exportfs -uv /sapmnt/LLC

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Jov
Honored Contributor

Re: Unable to unmount filesystem

>> One classic error is to be 'cd'ed into the directory that you are trying to unmount.

True, but fuser tends to show this even as useless as it is.

Best is to use lsof as suggested by all above.


Jov