From: Ian Kent <raven@themaw.net>
To: "Eric B." <ebenze@hotmail.com>
Cc: autofs@linux.kernel.org
Subject: Re: How to make Autofs check if ldap server is back online
Date: Tue, 15 Dec 2009 09:23:11 +0800 [thread overview]
Message-ID: <4B26E4FF.80908@themaw.net> (raw)
In-Reply-To: <BLU135-W27268A9EEAD4CF84BBA96DC8D0@phx.gbl>
Eric B. wrote:
>
> "Ian Kent" <raven@themaw.net> wrote in message
> news:4B18C1D7.7020703@themaw.net...
>> Eric B. wrote:
>>> Hi,
>>>
>>> I'm using Autofs and LDAP for mounting my home directories via nfs.
>>> In general, everything seems to work fine. However, I have one small
>>> problem.
>>>
>>> If I reboot my server using autofs while my LDAP server is down, I
>>> get the following error message in my logs: automount[3358]:
>>> bind_ldap_anonymous: lookup(ldap): Unable to bind to the LDAP server:
>>> (default), error Can't contact LDAP server
>>>
>>> which is understandable, since my ldap server is temporarily down.
>>>
>>> My problem, however, is that once my ldap server is back up, autofs
>>> never seems to retry to connect to it, so all my /home mounts fail.
>>> Basically, it means I have to make sure that my LDAP server is never
>>> down while another server is rebooting.
>>>
>>> I figure there must be something in the configuration file that would
>>> allow me to tweak this to indicate to autofs to recheck the ldap
>>> server periodically to see if it has come back up, but can't seem to
>>> find anything.
>> Yeah, there are problems in that area.
>>
>> What does your nsswitch.conf have for the "automount:" entry?
>> Is your master map also located on the LDAP server?
>> Does sending a HUP signal to automount make things work again when the
>> server is back?
>
>
> nsswitch.conf:
> automount: files ldap
>
> Restarting autofs will make things work again. Similarly, issuing a HUP
> signal will make things work again once the server is back online.
>
> Thanks for any suggestions.
Right, I've started working on this.
But if your master map is also in LDAP then your stuck until I work out
how to deal with the problem.
Ian
prev parent reply other threads:[~2009-12-15 1:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-27 19:04 How to make Autofs check if ldap server is back online Eric B.
2009-12-07 22:10 ` Guillaume Rousse
2009-12-10 20:55 ` Eric B.
2009-12-15 1:23 ` Ian Kent [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B26E4FF.80908@themaw.net \
--to=raven@themaw.net \
--cc=autofs@linux.kernel.org \
--cc=ebenze@hotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.