HomeEvergreen: Basic System Admin FunctionsErrorsNFS Stale File Handle error and solution

8.4. NFS Stale File Handle error and solution

Sometimes, NFS can result in to weird problems. For example, NFS mounted directories sometimes contain stale file handles. If you run a command from a shell prompt you will see an error similar to this one for offline transactions:
$ cat foo.log
foo.log: Stale NFS file handle

Managing NFS and NIS, 2nd Edition book defines filehandles as follows:

A filehandle becomes stale whenever the file or directory referenced by the handle is removed by another host, while your client still holds an active reference to the object. A typical example occurs when the current directory of a process, running on your client, is removed on the server (either by a process running on the server or on another client).

So this can occur if the directory is modified on the NFS server, but the directories modification time is not updated.

How do I fix this problem?

Find a good base directory mount point and execute the following:

$ mount -o remount [directory you selected]

This basically refreshes the NFS mount across all mounted points.

This page was: Helpful | Not Helpful