You are not logged in.

#1 2014-04-09 06:55:58

marko2010
Member
Registered: 2010-04-17
Posts: 70

automount hangs whenver a server that is not running is called

I have several nfs4 servers on my local network which I access using autofs. If I inadvertently type the name of a nfs4 server that is shut down into a terminal automount hangs and refuses to mount anything else until it it restarted. If I run  "automount -f -v" to diagnose the problem the last line it prints out before hanging is something like:

attempting to mount entry /net/server.that.is.off

After that, automount will do nothing unless killed and restarted, then is works fine until I accidentally type the name of a nfs4 server that is off again (this is easy to do with autocomplete turned on in zsh)

Offline

#2 2014-04-09 07:09:26

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: automount hangs whenver a server that is not running is called

I'm not familiar with autofs - do you have the option to set a timeout anywhere?

As an alternative, you could look at systemd's automount feature - see systemd.mount(5) and systemd.automount(5) for more details.

Offline

#3 2014-04-10 03:18:22

marko2010
Member
Registered: 2010-04-17
Posts: 70

Re: automount hangs whenver a server that is not running is called

tomk wrote:

do you have the option to set a timeout anywhere?

There is a timeout  you can specify in the /etc/auto.master file, but that seems to be for unmouting after a period on inactivity. In my case I never get that far since automount will not create any new mounts once it hangs.

Offline

Board footer

Powered by FluxBB