Find an open file(s)



Are there any tools in Solaris to find what is preventing a file system from being unmounted? I suspect lsof can do it, but I don't have that installed on this box and just wondered if Solaris has something.

The file system is used by Apache, so after stopping httpd, it should be unmountable I think.

chaffinch # /etc/init.d/apache2 stop

But I can't unmount it.

chaffinch # umount /usr/local/apache2
umount: /usr/local/apache2 busy


It did unmount some time later OK, so perhaps apache had not exited fully, but I've seen this sort of thing before and would like to know the best way to solve it.


--
Dave K

http://www.southminster-branch-line.org.uk/

Please note my email address changes periodically to avoid spam.
It is always of the form: month-year@domain. Hitting reply will work
for a couple of months only. Later set it manually. The month is
always written in 3 letters (e.g. Jan, not January etc)
.



Relevant Pages

  • Re: Find an open file(s)
    ... > installed on this box and just wondered if Solaris has something. ... > The file system is used by Apache, so after stopping httpd, it should be ... > But I can't unmount it. ... directory within the filesystem. ...
    (comp.unix.solaris)
  • Re: FC6 mount ntfs-3g problem.
    ... normally the users option given in fstab will let anyone mount the device (only root or the user who mounted it can then unmount it), however FUSE filesystems apparently need setuid style permissions to operate like this. ... user Allow an ordinary user to mount the file system. ... If any user should be able to unmount, then use users instead of user in the fstab line. ...
    (Fedora)
  • Re: automounting cd-rom & cd-rw devices
    ... I guess what I'd really meant is automount in the Windoze sense ... I (regular joe user) don't have to su, ... > figure out whether I've got a music cd or a file system, ... length of time to unmount a CD-ROM, however, you will not be able to ...
    (freebsd-questions)
  • Re: umount question
    ... Please don't suggest reinstalling without even trying to understand the problem. ... But how do I unmount it. ... Some other file system is probably being fsck'ed at boot because it was not mounted cleanly. ... could you mention this filesystem and provide any possible clue as to why this might be happening? ...
    (comp.os.linux.development.system)
  • lvextend reverse command HPUX v11
    ... but I have not unmounted the file system yet. ... this command before I unmount. ... information contained in it for any purpose other than to notify us. ... Any views expressed in this message are those of the individual sender, ...
    (comp.sys.hp.hpux)