[SUMMARY] NFS - strange .nfsXXXX files

From: Levi Ashcol <leviashcol_at_HotPOP.com>
Date: Mon Sep 02 2002 - 14:27:37 EDT
My Original Post is below.
Thanks to:
 -Vahid Moghaddasi , t-online.de, Dragon King  , Jason Heiss, David
  Jay Lessert ,  Andrew Rotramel, Darren Dunham, Kacem El Kassemi
  L. Barnard, Thomas Wardman, Debbie Tropiano, Ric Anderson ,Matthew
  Reginald Beavers, Wout Mertens, Casper Dik. 

- You need to go back to CS school first before posting such question.
- Did you read the details of the NFS protocol ?
- Not a problem it is how NFS work. They are files created for good
- Short Explanation:
    When a client still has an NFS shared file open and some process
    the file on the same client, the NFS client renames it to
".nfsXXXXX" in
    the same directory.  Then, when process that has the file open
    e.g., when the client shuts down cleanly, the client tells the NFS
    server to remove the file.   
    The file is renamed to prevent the program that still has the file
    from getting "stale NFS file handle" errors. 
- More Details:
   Because NFS is stateless the server has no concept of an open file. 
   However an NFS client does "understand" the concept of an open 
   file.  When an unlink(remove) is done on a NFS client and the file is
   the NFS client sends a rename request to the server.  The file is 
   still accessible to any processes that have it open just like on 
   an open file system. The file is renamed to .nfsNNNN.  
   When the last close is done on the file, the client then sends a 
   remove file request to the server.  These files are probably sitting 
   around due to a client crash.  

- In the past there have been bugs were clients left these files around;

  make sure your clients are up to date. 
- These files are mentioned in the FILES section of the nfsd man page. 

- Make sure that the following entry exists in the root crontab on the
   15 3 * * 0 /usr/lib/fs/nfs/nfsfind 
   nfsfind script cleans these files out from time to time if they
because of a client crash without sending a  
   remove request to the server.(nfsfind script exists in both Solaris

- Links:

 - http://www.cse.unsw.edu.au/faq/questions/help-nfs.html

Thanks Guys.


-----Original Message-----
From: sunmanagers-admin@sunmanagers.org
[mailto:sunmanagers-admin@sunmanagers.org] On Behalf Of Levi Ashcol
Sent: Friday, August 30, 2002 11:21 AM
To: sunmanagers@sunmanagers.org
Subject: NFS - strange .nfsXXXX files 

Hi Gurus,
I have users' home directories NFS auto-mounted from an E3000 server.
(Solaris 6) 

I found many files in the users' home directories in the format
(.nfsXXXX =.nfs05E4 .nfs06A0........).

It looks like an nfs problem. It seems they are temporary files but they
are randomly created and never being deleted again. 

- Did any Guru out there know what is the source of these files ?
- How can I stop these files from being created ? (sometimes they
populate the user directory and fill up his quota !)
- Any link/URL/document that describe the nature of this problem ?
- Any patch/kernel parameter/Environment variable/NFS setting/mount
option to set to get rid of these files ?

Will Summarize.


sunmanagers mailing list
sunmanagers mailing list
Received on Mon Sep 2 13:30:27 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:54 EST