NFS (Network File System) version 3 and 4

Sometime NFS can result in weird problems. For example, NFS mounted directories sometimes contain stale file handles. If you run command such as ls or vi you will see an error:

Issue

# ls -l
.: Stale File Handle

# grep -i nfsĀ /var/log/messages

kernel: NFS: server lhub.nas error: fileid changed
kernel: fsid 0:13: expected fileid 0x1015734f5, got 0x15734f5
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 from 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.

solution

A possible Solution is to Remount the directory from the NFS Client

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

 

Leave a Reply

Your email address will not be published. Required fields are marked *