NFS Stale File Handle Error causes and work around


Recommended Posts

I recently started running into the dredded "Stale file handle" error when accessing a share via NFS (which I do between linux machines so that rsync based backups that support file versioning work; like rdiff-backup. as they need to be able to do hard and sym links to work, so SMB is out.

 

What I've discovered:

 

Exporting a share that has a cache enabled, works well... until the mover moves the files.  Then I start to get "Stale file handle" errors on the client side.  For some reason it doesn't recover, and unmount/remount doesn't work from client to correct.

 

To correct the issue: on unRaid console do: `exportfs -ra` 

 

Work Around:

Disable cache for NFS exported shares, or keep it only on cache, or an unassigned drive. i.e. don't move the files! :)

 

I put in the general support as I guess this isn't a "bug" per se... however, it would be good to have a solution; perhaps mover script can call exportfs?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.