application hang after NFS server not responding

Question : My application is hang and also df command hang after NFS server is down or not responding ?
Ans : If you have mounted the NFS disk on your server and if NFS server is down or not responding then client machine hang or the application which uses that NFS disk is hang . The solution for this issue to remount your NFS disk with following way and then your appllication will work without any problem.
1) You need to remount the same NFS disk with following options

mount -t nfs 192.168.0.1:/ftpfolder /ftpfolder -v -w -o rw,rsize=32768,wsize=32768,intr,soft,timeo=10

2) After that add the following entry in /etc/fstab and check you application.

192.168.0.1:/ftpfolder /ftpfolder  nfs   rw,rsize=32768,wsize=32768,intr,soft,timeo=10  0  0

3) Done
After that when your NFS server is down then it check only 10 sec and connection is timeout and application is working without hang.
 

Related posts

Leave a Comment