You are not logged in.

#1 2011-09-28 06:21:36

unhammer
Member
Registered: 2009-10-01
Posts: 99
Website

SOLVED netfs can't unmount if disconnected while ls nfs, can't suspend

I have a drive connected to my router, shared with NFS, and a laptop running Arch Linux using a wifi connection.

If I get a connection loss while some program is reading from the NFS, or simply disconnect and type "ls /path/to/NFS", that ls will hang of course, but also I can't stop the nfs daemon:

$ sudo /etc/rc.d/netfs stop
:: Unmounting Network Filesystems                                                                                                                           [BUSY]
umount.nfs: /media/NFS-delt: device is busy                                                                                                                 [FAIL]

nor will my laptop suspend. If I reconnect and let whatever process is looking for the nfs finish, I get to suspend (even dismount the nfs).

Is there a way to make this more "robust"? Why can't the "netfs stop" make ls let go of the NFS?

Last edited by unhammer (2011-12-11 00:05:29)

Offline

#2 2011-12-09 12:16:26

unhammer
Member
Registered: 2009-10-01
Posts: 99
Website

Re: SOLVED netfs can't unmount if disconnected while ls nfs, can't suspend

on a related note, rsync-ing to the NFS makes my computer intermittently really unresponsive. If I kill the rsync process, the computer more or less freezes (or, just runs as slow as to make no difference; I can sudo reboot and it says "going down" and nothing happens and I end up hard rebooting)

Offline

#3 2011-12-10 15:03:20

kurych
Member
From: Saint-Petersburg, Russia
Registered: 2011-12-07
Posts: 27

Re: SOLVED netfs can't unmount if disconnected while ls nfs, can't suspend

You must understand options "soft" and "hard" to mount nfs file system. In this happens try "mount -t nfs -o soft,timeo=5,retry=5 ..." parameters to mount net disk.

Offline

#4 2011-12-11 00:04:53

unhammer
Member
Registered: 2009-10-01
Posts: 99
Website

Re: SOLVED netfs can't unmount if disconnected while ls nfs, can't suspend

kurych wrote:

You must understand options "soft" and "hard" to mount nfs file system. In this happens try "mount -t nfs -o soft,timeo=5,retry=5 ..." parameters to mount net disk.

Thanks! That solved the problem with suspending smile

(The rsync problem remains though – here the connection is constantly up, but the computer just becomes very unresponsive, and I don't want to soft mount when I'm making backups - but I guess that's for another thread.)

Offline

Board footer

Powered by FluxBB