nfs server stand-by cause client hang

Bug #412351 reported by Qianqian Fang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nfs-utils (Ubuntu)
New
Undecided
Unassigned

Bug Description

I have two computers at home, both running Ubuntu. One of the computers shares a folder to the other via nfs. On the client side, I mounted the drive by the following line in fstab:
 192.168.1.2:/home/user1/share /opt/user1 nfs rsize=8192,wsize=8192,timeo=14,intr,rw

however, I found when the server becomes offline after mounting, the client side will have a lot of troubles, for example:
1. "df" takes forever to complete ("strace df" stalls at the nfs folder)
2. client computer is unable to suspend
3. file explorer (thunar) can not open any folder.

Expected behavior: system should be able to suspend, or browse files if the connection to nfs server is timed out.

Revision history for this message
John Gilmore (gnu-gilmore) wrote :

When mounting with the "intr" option, you have to interrupt a stalled program (using Control-C in a terminal, for example) in order to get it to stop trying to access the server. If you instead mount with the "soft" option, NFS accesses will eventually time out without needing to be interrupted (but you may lose data if you were writing to the NFS filesystem -- the written data will not get saved anywhere because the server isn't responding.) When the server is hung, you should be able to unmount the server's filesystem using the -l (lazy) option (umount -l /opt/user1) to avoid future hangs.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.