Sunday 20 May 2018

NFS Stale File Handle error and solution

In linux machine we have NFS mounted directories sometimes contain stale file handles. If you run command such as ls or vi you will see an error

# ls
.: Stale File Handle

Before moving to fix this issue first we need to understand the concept of Stale File Handle.

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.

To fixed this issue, the best solution is to remount directory from the NFS client using mount command.

# umount -f /test
# mount -t nfs nfsserver:/path/to/share /test

5 comments:

  1. In the wake of going over a modest bunch of the blog articles on your site, I really appreciate your procedure of composing a blog. I bookmarked it to my bookmark site page list and will return sooner rather than later. Kindly look at my site also and let me understand your opinion.
    evrmag

    ReplyDelete
  2. Extremely extraordinary elements you composed right here..fantastic stuff...I think you've made some in actuality entrancing points.keep occurring the five star do its stuff-battle. Bandicam Registered Free

    ReplyDelete
  3. I appreciate something you have acquainted with my skill base.Admiring the arise as outdated and exertion you put into your weblog and nitty gritty reference you pay for.thanks. Farming Simulator 22 Download

    ReplyDelete
  4. Congrats on the appearance of your delightful child. Inform us as to whether you want anything - we're here to help! The very best to your developing! Thums Up Baby Wishes I Hope You Grow

    ReplyDelete
  5. Thank you for sharing such a nice and interesting blog and really very helpful article.
    Want to become Oracle Recruiting Cloud Certified Specialist or Consultant? Attend this Best Oracle Recruiting Cloud Training course offered by the Unogeeks (Rated as Top Oracle Recruiting Cloud Training Institute in the market)

    ReplyDelete