Computing.Net > Forums > Unix > Does anyone use lsof?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Does anyone use lsof?

Reply to Message Icon

Name: Brent G
Date: April 16, 2003 at 09:52:03 Pacific
OS: AIX
CPU/Ram: ?
Comment:

I have read a little on lsof. I want to know if this is a good tool to use.

- I have software mounted accross the network for C compiler

- When i try to unmount the files it fails. Another process(es) are using these files.

- How can I find out what process is using these files?

=== More detail ===

My Development server will not shutdown properly when the prod compiler (/usr/ccs) directory is mounted across the network to the development server. The "umount /usr/ccs" command does not work. There is an error message (1861-15 16) that could not be found in any documentation.

The dev server has to be powered down manually because the "shutdown -Fr" command to reboot the server does not work. The server seems to hang.

It appears that the nfs daemons are shutdown BEFORE the umounting of all the drives. The server doesn't know what to do so it hangs. Will lsof help find out what is causing this problem? Is there anything else I could use?



Sponsored Link
Ads by Google

Response Number 1
Name: Jerry Lemieux
Date: April 16, 2003 at 17:03:16 Pacific
Reply:

Try:


lsof -i | egrep "COMMAND|LISTEN|UDP"

Jerry


0

Response Number 2
Name: Jigujigu
Date: April 22, 2003 at 09:57:57 Pacific
Reply:

Have you tried using "fuser" on the files that are complained as "in use"? The fuser command usage is:
fuser filename

The fuser is available in /usr/sbin/fuser in HPUX. If you do not have root access you can copy the fuser to /tmp, chmod 755 /tmp/fuser on it and then execute it as /tmp/fuser filename to check which process is using this file.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


sed on a file users in a group



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Does anyone use lsof?

anyone using Teco? www.computing.net/answers/unix/anyone-using-teco/4119.html

Using lsof and movefiles that are not op www.computing.net/answers/unix/using-lsof-and-movefiles-that-are-not-op/2192.html

Connecting a Linux PC with a Windows PC using PPP www.computing.net/answers/unix/connecting-a-linux-pc-with-a-windows-pc-using-ppp/540.html