What is a file handle? for NFS troubleshooting stale issue.


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users What is a file handle? for NFS troubleshooting stale issue.
# 1  
Old 05-23-2013
What is a file handle? for NFS troubleshooting stale issue.

Experts,
Can any one please explain about a "File Handle" , what it is.
Can we see it, like an inode number.

- Also what is the significance of it in
Code:
"Stale NFS file handle"

error.

Thanks,
# 2  
Old 05-23-2013
I believe it's rather talking about the unique ID it gets when an NFS is mounted... Stale can mean the remote server has rebooted and ergo doesn't remember you having mounted that filesystem, and turns down your requests. The filesystem may need remounting.
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 05-23-2013
Corona688 , thanks for the response, yes it is taking about the unique ID.
- Stale mean the server has rebooted: But not always necessarily true.
- Stale error can comes with many situations, I have posted this error seeing Stale error , on SAP packages , that throws intermittently on the nfs mounted client. One stale error happening due to improper use of file handle or multiple places the same file being used. But not sure about how this is happening and doubt some SAP process causing it on the hp-ux unix side , some SAP note says so. I got one good document in the search process : link given:

Code:
15.1.2 File Handles
Each object on the NFS-mounted filesystem is referenced by a unique object called a file handle. A file handle is viewed by the client as being opaque?the client cannot interpret the contents. However, to the server, the contents have considerable meaning. The file handles uniquely identify every file and directory on the server computer.

The Unix NFS server stores three pieces of information inside each file handle.

Filesystem identifier
Refers to the partition containing the file (file identifiers such as inode numbers are usually unique only within a partition).

File identifier
Can be something as simple as an inode number, used to refer to a particular item on a partition.

Generation count
A number that is incremented each time a file is unlinked and recreated. The generation count ensures that when a client references a file on the server, that file is, in fact, the same file that the server thinks it is. Without a generation count, two clients accessing the same file on the same server could produce erroneous results if one client deleted the file and created a new file with the same inode number. The generation count prevents such situations from occurring: when the file is recreated, the generation number is incremented, and the second client gets an error message when it attempts to access the older, now nonexistent, file.



Code:
http://etutorials.org/Linux+systems/unix+internet+security/Part+III+Network+and+Internet+Security/Chapter+15.+Network+Filesystems/15.1+Understanding+NFS/

Thanks ....
# 4  
Old 05-24-2013
A reboot of a sane NFS server retains the NFS file handle!
And sane clients continue without stale NFS handle!
Sporadic stale handles most likely is an internal congestion in the bad Linux NFS client, and congestions are most likely in bad SuSE kernels.

Last edited by MadeInGermany; 05-24-2013 at 12:11 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

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

Oct 13 12:19:15 xyz nfs: NFS write error on host xyz: Stale NFS file handle. Oct 13 12:19:15 xyz nfs: (file handle: 68000000 1bc5492e 20000000 377c5e 1ce9395c 720a6203 40000000 bdfb0400) Oct 13 12:19:15 xyz nfs: NFS write error on host zyz: Stale NFS file handle. Oct 13 12:19:15 xyz nfs: ... (5 Replies)
Discussion started by: psychocandy
5 Replies

2. Windows & DOS: Issues & Discussions

VxWorks - W2003 issue loading file from NFS share

We recently replaced an existing Windows Server 2000 with a Windows Server 2003. The server‘s primary function is file/print in our development environment. One of the directories is shared using NFS. All compiled software is kept in this share (we use C & C++). The generated “.out” and “.ndb”... (0 Replies)
Discussion started by: BigBuff52
0 Replies

3. UNIX for Advanced & Expert Users

How to decode nfs file handle in HP-UX?

Hi Experts, Any idea how to decode file handle in HP-UX? I am getting the following error continously in my HP-UX 11.31 box :mad: Apr 26 07:15:00 host62 su: + tty?? root-bb Apr 26 07:15:00 host62 su: + tty?? root-abcadm Apr 26 07:15:01 host62 vmunix: NFS write error on host peq9vs:... (1 Reply)
Discussion started by: vipinable
1 Replies

4. Linux

NFS file handle question

Hello All, I have a small question regarding the NFS file handles. Suppose I have a NFS client who has requested for a particular file from the NFS server.Now lets assume that I am using a NFS v2 server. So I get the filehandle for that file and I can use it. Suppose later I upgrade the server to... (0 Replies)
Discussion started by: prathamesh
0 Replies

5. UNIX and Linux Applications

Stale NFS file handle

There are a filesystem /GWD/appbase/projects/GRIDDB Under this filesystem there is a directory called backup. But When I am trying to access the backup directory ,it is showing me the following error: # cd /GWD/appbase/projects/GRIDDB # cd backup -bash: cd: backup: Stale NFS file handle ... (3 Replies)
Discussion started by: alphasahoo
3 Replies

6. Solaris

NFS write error on host : Stale NFS file handle

:confused:Hi all When i see in the /var/adm/messages, i saw the following error unix: NFS write error on host : Stale NFS file handle. unix: (file handle: 45ca415 3e7 a0000 2c7f6 3ebfc25f a0000 2 3e49) It is using sunOS 5.7. Is anybody know what is this error? Is is related to any network... (2 Replies)
Discussion started by: AirWalker83
2 Replies

7. Solaris

Error Message: find: cannot open /: Stale NFS file handle

I am using the "find" command below and it respond with the error message " find: cannot open /: Stale NFS file handle" what does it mean? what can I do about it? Need advice, thanks. below are the command that I enter, the respond and the error message: root@ScripServer:/# find / -name... (1 Reply)
Discussion started by: ezsurf
1 Replies

8. Solaris

NFS file/dir disappear issue

We have bunch of Sun Sparc workstations(solaris 7 & 8) connecting to a linux file server with NFS exports. Recently we upgraded our file server from fedora core1 to redhat enterprise linux 4. And since then we are experiencing a nightmare of file/dir missing. It happens randomly, couple of times... (1 Reply)
Discussion started by: motor98
1 Replies

9. UNIX for Advanced & Expert Users

Stale NFS file handle

Hi, I get an error saying "Stale NFS file handle" how can I solve this? Is it possible to do this with a umount/ mount command? (5 Replies)
Discussion started by: rein
5 Replies

10. UNIX for Advanced & Expert Users

NFS file handle

How can I kill mount connection(NFS , made by automount) if remote filesystem is down? I tried: fuser -ku /auto /auto: umount /auto nfs umount: ERROR: /auto is busy If I try cd /auto - I get - /auto: Stale remote file handle. I know that reboot will help but I cannot reboot this... (2 Replies)
Discussion started by: kazimir
2 Replies
Login or Register to Ask a Question