[CentOS] disable autofs timeout

Tue May 11 14:35:03 UTC 2010
Brian Mathis <brian.mathis at gmail.com>

On Tue, May 11, 2010 at 10:01 AM, Rudi Ahlers <rudiahlers at gmail.com> wrote:
> On Sat, May 8, 2010 at 5:12 PM, Brian Mathis <brian.mathis at gmail.com> wrote:
>>
>> A simple solution would be to setup a cron job that runs every 5
>> minutes and does
>>    ls /mount/point > /dev/null
>
> How would this fix the problem though? I'm asking cause I sit with the same
> problem, and haven't figured out yet to tell a remote server what todo if
> the NFS server is unavailable (be it network problems, maintenance,
> incorrect password, etc)
>
> Rudi Ahlers

It doesn't fix it -- it's an ugly workaround -- but it works to keep
them mounted.  I don't know of an elegant solution if the NFS server
goes away.  I've seen it hang the clients until they timeout.  Maybe
an NFS expert on the list will be able to provide a better solution.