Operating System - HP-UX
1833491 Members
2768 Online
110052 Solutions
New Discussion

Re: Creation of files .nfs

 
Sergiy Dudkovskyy_1
New Member

Creation of files .nfs

Hi all,
At work with files on NFS the catalogue, created files .nfs1234, where 1234 is PID process. These files, exact copy of the open files. After closing original files, .nfs do not remove.

In what a problem?
Sergiy.
2 REPLIES 2
RAC_1
Honored Contributor

Re: Creation of files .nfs

These are indeed NFS files. If you unmounted nfs mount cleanly, they should go away on their own. But if they are not, you can safely delete them.
There is no substitute to HARDWORK
Dave Olker
Neighborhood Moderator

Re: Creation of files .nfs

Hi Sergiy,

A ".nfs" file is created when more than one process has the same file open on an NFS client and one of the processes attempts to remove the file.

The NFS client kernel is smart enough to recognize that another process is still using the file, so rather than delete it the client renames the file to .nfsXXXXX so that any new processes looking for the original file won't find it but any existing processes that are still using the file will not be affected by the file's removal.

The NFS client is supposed to remove this .nfsXXXX file once the last process using the file on the client stops referencing the file. There are occasions when this doesn't happen for legitimate reasons (client is rebooted before it is able to send the REMOVE request) and non-legitimate reasons (bug in the client code where the last reference to the file doesn't decrement all the appropriate counters and the REMOVE is never sent).

In any case, the appearance of a .nfsXXXX file is not really a concern unless you start seeing a lot of them and they never disappear on their own. If that is the case you should first ensure that you're running the latest ONC and VM patches (NFS and buffer cache).

Hope this helps,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo