Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is lsof? Is it a good tool?

Status
Not open for further replies.

bgreen

Programmer
Feb 20, 2003
185
CA
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?
 

lsof is an excellent tool. Try 'lsof <directory>' on the suspected filesystem.

Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top