View Single Post
  #4 (permalink)  
Old 05-Aug-2009, 18:30
schultzy schultzy is offline
Puzzled Penguin
 
Join Date: Aug 2009
Posts: 2
schultzy hasn't been rated much yet
Default Re: autofs slow mounting

GOOD NEWS!

I think I found a solution--at least with the NFS servers I'm using (whose maps are exported with NIS). The problem appears to be with the negotiation of the mount protocol. Specifying it explicitly took my manual test mounts down from 20+ seconds to almost instantaneous. Here's what I did:

In your /etc/sysconfig/autofs, make this modification:

LOCAL_OPTIONS="mountproto=tcp"

Then restart autofs:

service autofs restart

Of course this assumes that all your auto NFS mounts are happy with a TCP mount protocol, but mine seem to be, even the ones that chose UDP by default. We're using NetApp and Sun NFS servers, for what it's worth.

Lemme know if that helps y'all!

Jeff
Reply With Quote