Home Man
Search
Today's Posts
Register

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

Tags
solaris

Login to Reply

 
Thread Tools Search this Thread
# 1  
Old 10-16-2017
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?
# 2  
Old 10-16-2017
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 09:29 AM.. Reason: Amend command suggestions to lower case
# 3  
Old 10-16-2017
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 10-16-2017
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)
# 5  
Old 10-16-2017
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)
# 6  
Old 10-17-2017
Thanks all.

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

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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-23-2013 11:02 PM
"Connection closed by foreign host error" in Solaris 10 kraljic Solaris 9 11-12-2012 06:19 AM
Transferring file write operation to another host akhilonnet Shell Programming and Scripting 1 01-03-2012 05:22 AM
how to handle multiple apps on host? bongo UNIX for Dummies Questions & Answers 0 09-28-2010 01:47 PM
fssnap error :snapshot error: File system could not be write locked aggadtech08 Solaris 2 09-15-2009 10:12 AM
Stale NFS file handle alphasahoo UNIX and Linux Applications 3 05-12-2008 12:31 PM
NFS write error on host : Stale NFS file handle AirWalker83 Solaris 2 03-27-2008 03:42 AM
Error Message: find: cannot open /: Stale NFS file handle ezsurf Solaris 1 10-11-2007 08:04 PM
Solaris has a lot of bugs, fstream wont write to file correctly! Joncamp Solaris 4 12-05-2006 10:57 AM
Stale NFS file handle rein UNIX for Advanced & Expert Users 5 01-30-2005 12:30 PM


All times are GMT -4. The time now is 05:56 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password