Troubleshooting common NFS errors
Over the years I have seen some of the most common NFS Error/Issues which occurs in very common now and then to most of Solaris system admins. So I decided to share here... Hope this helps some of you<>Error: "Server Not Responding"
- Check your NFS server and the client using RPC message and they must be functional/online.
tracerouteto check are they reaching each other, if not check your NIC using ethtool to verify IP address.
- sometimes due to heavy server or network loads causes the RPC message response to time out causing error message. try to increase timeout option.
- NFS server or client was unable to resolve DNS. check forward/reverse DNS name resolution works.
- Check your DNS servers or /etc/hosts
- check export permission for the NFS file systems.
# showmount -e nfsserver (on client) # exportfs -a (on nfs server)
- check you dont have any syntax issues in file /etc/exports(e.g space, permissions, typos..etc)
- NFS requires both NFS service and portmapper service running on both client and the server, try:
# rpcinfo -p or # /etc/init.d/portmap status
- if not, start the portmap service
- system call 'open' calls to access NFS file in the same way application uses local file they by returns a file descriptor or handle which programs useses I/O commands to identify the file manipulations
- When an NFS file share is either unshared or NFS server changes the file handler, and any NFS client which attempts to do further I/O on the share will receive the 'NFS Stale File Handler'.
- on the client:
# umount -f /nfsmount
- or if it is unable to unmount and remount kill the processes which uses that /nfsmount
- or incase if above options didn't work, you can reboot the client to clear the stale NFS.
- This could be reported when client attempts to mount the NFS file system, even when the client can ping them successfully.
- This can be due to RPC messages being filtered by either host firewall, client firewall or network switch. verify firewall rules. stop suing iptables and try to check the port 2049