Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to resolve NFS Stale File Handle error  (Read 37710 times)

0 Members and 1 Guest are viewing this topic.

akhilt

  • Guest
How to resolve NFS Stale File Handle error
« on: June 10, 2018, 01:14:53 pm »
How to resolve NFS Stale File Handle error

This article will quickly help on how to resolve “NFS Stale File Handle error”.

We all know that, sometimes we get NFS Stale File Handle error when we try to access the NFS mount point on the client machine.

Error: ” mount.nfs: Stale file handle ”

This NFS Stale File Handle error occurs due to following reasons:

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

How to resolve this error:

Now consider below scenario we have got NFS server having hostname “myserver” . One of its mount point called /dmp is mounted using NFS on the client machine having hostname “client1”. Now we are getting “NFS Stale File Handle error” on the client machine “client1”.  Now to remove  “NFS Stale File Handle error” perform following course of action.

At NFS server:

1. See exported mounts on nfs server

Code: [Select]
#showmount -e myserver
2. Perform re-export from server

Code: [Select]
#exportfs -f
At NFS Client

1. Remount at destination

Code: [Select]
#mount -o remount /dmp
That’s all your NFS Stale File Handle error is resolved. :D