Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

stop nfsmount on network loss

1 view
Skip to first unread message

Vitus Jensen

unread,
Sep 21, 2009, 7:23:18 AM9/21/09
to
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)

0 new messages