Finding processes on another system that have a file open | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Finding processes on another system that have a file open

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-16-2013
Special_K Special_K is offline
Registered User
 
Join Date: Dec 2008
Last Activity: 4 December 2013, 8:09 PM EST
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Finding processes on another system that have a file open

I am familiar with using "lsof <filename>" or "fuser <filename>" to determine what process has a given file (usually a .nfs) open. However, I recently used this command and it returned a blank list. I suspect the process that has the .nfs file open might be on another system. Is there a way to determine what process has a file open if the process is on another system?
Sponsored Links
    #2  
Old 08-17-2013
RudiC RudiC is offline Forum Advisor  
Registered User
 
Join Date: Jul 2012
Last Activity: 1 August 2014, 2:47 PM EDT
Location: Aachen, Germany
Posts: 3,950
Thanks: 63
Thanked 939 Times in 891 Posts
Why do you suspect a process holding a file open when your list is empty?

If there are open files, there must be process(es) on the local side holding the files open; it might be children (or so) of the NFS daemon. Did you check the NFS log files?
Sponsored Links
    #3  
Old 08-17-2013
Special_K Special_K is offline
Registered User
 
Join Date: Dec 2008
Last Activity: 4 December 2013, 8:09 PM EST
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by RudiC View Post
Why do you suspect a process holding a file open when your list is empty?

If there are open files, there must be process(es) on the local side holding the files open; it might be children (or so) of the NFS daemon. Did you check the NFS log files?
I suspect a process holding a file open because the directory has a .nfs################# (the #'s are random numbers) file in it and won't let me delete it because the file is in use.

My understanding was that using the lsof or fuser commands would let me see what process has that directory/file open.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Finding the age of a unix process, killing old processes, killing zombie processes sukerman Shell Programming and Scripting 0 04-14-2010 04:48 AM
Finding most busy file system naw_deepak Solaris 5 09-15-2009 01:19 PM
Finding out which file system a machine has mojoman UNIX for Dummies Questions & Answers 1 02-06-2009 09:12 PM
Finding unix file system dmarques UNIX for Dummies Questions & Answers 4 01-02-2009 08:26 PM
How to obtain system open file table value in Linux mahesh. Shell Programming and Scripting 0 05-25-2007 10:25 AM



All times are GMT -4. The time now is 06:28 PM.