Unix/Linux Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

NFS write error on host xyz: Stale NFS file handle - Solaris 10

Solaris


Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 10-16-2017   -   Original Discussion by psychocandy
psychocandy's Unix or Linux Image
psychocandy psychocandy is offline
Registered User
 
Join Date: Apr 2011
Last Activity: 5 December 2017, 5:54 AM EST
Posts: 74
Thanks: 19
Thanked 1 Time in 1 Post
NFS write error on host xyz: Stale NFS file handle - Solaris 10


Code:
Oct 13 12:19:15 xyz nfs: [ID 626546 kern.notice] NFS write error on host xyz: Stale NFS file handle.
Oct 13 12:19:15 xyz nfs: [ID 702911 kern.notice] (file handle: 68000000 1bc5492e 20000000 377c5e 1ce9395c 720a6203 40000000 bdfb0400)
Oct 13 12:19:15 xyz nfs: [ID 626546 kern.notice] NFS write error on host zyz: Stale NFS file handle.
Oct 13 12:19:15 xyz nfs: [ID 702911 kern.notice] (file handle: 68000000 1bc5492e 20000000 377c5e 1ce9395c 720a6203 40000000 bdfb0400)
Oct 13 12:19:15 xyz nfs: [ID 626546 kern.notice] NFS write error on host xyz: Stale NFS file handle.
Oct 13 12:19:15 xyz nfs: [ID 702911 kern.notice] (file handle: 68000000 1bc5492e 20000000 377c5e 1ce9395c 720a6203 40000000 bdfb0400)

Is it possible to determine which file this file handle refers to?
Sponsored Links
    #2  
Old Unix and Linux 10-16-2017   -   Original Discussion by psychocandy
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 15 December 2017, 4:40 AM EST
Location: Devon, UK
Posts: 1,664
Thanks: 241
Thanked 408 Times in 346 Posts
This may be caused by access to a single file failing but it's most likely that the remotely NFS shared directory has gone offline, been unshared, renamed or deleted. The client has been sitting there holding open the NFS handle and when it has tried to read or write something, the object has disappeared.

Try changing directory (cd) to each of the remotely mounted resources and see if you can list the file (ls) on it. If you can't, try and remount that remote NFS resource. If you can't, there's your problem.

Last edited by hicksd8; 10-16-2017 at 10:29 AM.. Reason: Amend command suggestions to lower case
Sponsored Links
    #3  
Old Unix and Linux 10-16-2017   -   Original Discussion by psychocandy
psychocandy's Unix or Linux Image
psychocandy psychocandy is offline
Registered User
 
Join Date: Apr 2011
Last Activity: 5 December 2017, 5:54 AM EST
Posts: 74
Thanks: 19
Thanked 1 Time in 1 Post
Sorry forgot to say the host is actually a storage array. i.e. xyz

Also, there are lots of mount points on this particular client. I'll try them all...


Would you expect this error to re-occur? Would be useful for future reference if there was a way to decrypt the file handle too (Although I guess not so easy if the host is not solaris).
    #4  
Old Unix and Linux 10-16-2017   -   Original Discussion by psychocandy
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 15 December 2017, 4:40 AM EST
Location: Devon, UK
Posts: 1,664
Thanks: 241
Thanked 408 Times in 346 Posts
If it's a reputable storage array/SAN then, no, it shouldn't happen baring power failures and the like. Dare I suggest that the network or storage team accidently did something that they shouldn't have?
The Following User Says Thank You to hicksd8 For This Useful Post:
psychocandy (10-16-2017)
Sponsored Links
    #5  
Old Unix and Linux 10-16-2017   -   Original Discussion by psychocandy
jim mcnamara's Unix or Linux Image
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 14 December 2017, 3:00 PM EST
Location: NM
Posts: 11,253
Thanks: 577
Thanked 1,122 Times in 1,034 Posts
NFS has an inherent problem. It is not very good at knowing if the mounted resource is available or not, so it depends on a response from the host providing the resource - but only after some applications asks for it.

Example NFS4 on a Solaris 10 machine used to hang shutdown when a user executed a cd to the NFS directory, and then just left the process sitting. The machine had zones (virtuals) and some NFS connections were required from zone to zone. Not a great idea.

This meant that if NFS zone1 -> zone2 and zone2 was taken down, the machine would not reboot because NFS could not figure out how close the open file, and NFS will wait for long periods of time for a resource.

You may have what amounts to a similar problem. A user on one machine has an NFS mounted directory open - the directory lives on another virtual or machine. Something happens on the remote and the local one hangs. NFS has problems, avoid it if you can. NFS can negatively affect simple commands like pwd and system calls like realpath() if the parent directory of your current directory has an external NFS mount. And that directory no long is available.
The Following User Says Thank You to jim mcnamara For This Useful Post:
psychocandy (10-17-2017)
Sponsored Links
    #6  
Old Unix and Linux 10-17-2017   -   Original Discussion by psychocandy
psychocandy's Unix or Linux Image
psychocandy psychocandy is offline
Registered User
 
Join Date: Apr 2011
Last Activity: 5 December 2017, 5:54 AM EST
Posts: 74
Thanks: 19
Thanked 1 Time in 1 Post
Thanks all.

Out of interest - is it even possible to do anything with those file handles?
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
What is a file handle? for NFS troubleshooting stale issue. rveri UNIX for Advanced & Expert Users 3 05-24-2013 12:02 AM
Stale NFS file handle alphasahoo UNIX and Linux Applications 3 05-12-2008 01:31 PM
NFS write error on host : Stale NFS file handle AirWalker83 Solaris 2 03-27-2008 04:42 AM
Error Message: find: cannot open /: Stale NFS file handle ezsurf Solaris 1 10-11-2007 09:04 PM
Stale NFS file handle rein UNIX for Advanced & Expert Users 5 01-30-2005 01:30 PM



All times are GMT -4. The time now is 08:19 AM.