Main Page | Report this Page
Linux Forum Index  »  Linux - Gentoo Forum  »  stop nfsmount on network loss...
Page 1 of 1    

stop nfsmount on network loss...

Author Message
Vitus Jensen...
Posted: Mon Sep 21, 2009 5:23 am
Guest
Hej!

On my laptop there is a problem when NFS shares are mounted and I move the
suspended laptop to another network where the NFS server is no longer
reachable. In this case I can no longer suspend and "umount -t nfs -a -f"
usually results in a system lock.

The solution could be to change RC_NET_STRICT_CHECKING (/etc/conf.d/rc)
from "lo" back to the default "no". This would stop netmount whenever
wlan connection is lost (which unfortunately happens a lot at my place,
this is the reason why I changed to default) but it will also stop sshd
and syslogd which I definitely want to keep whatever happens to the
machine. I don't care whether I loose a SSH connection but I want to
reconnect!

So I changed the "uses" lines in /etc/init.d/sshd and
/etc/init.d/syslogd-ng from net to net.lo. Nobody complained so far, I
haven't made the test to travel with the configuration. Nevertheless it
feels like a hack to change something in /etc/init.d/. Are there better
methods to get what I want? Unmount NFS on suspend, mount on resume?


Bye,
Vitus

--
Vitus Jensen, Hannover, Germany, Earth, Universe (current)
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Thu Dec 03, 2009 11:24 pm