All of lore.kernel.org
 help / color / mirror / Atom feed
* How to make Autofs check if ldap server is back online
@ 2009-11-27 19:04 Eric B.
  2009-12-07 22:10 ` Guillaume Rousse
  2009-12-10 20:55 ` Eric B.
  0 siblings, 2 replies; 4+ messages in thread
From: Eric B. @ 2009-11-27 19:04 UTC (permalink / raw)
  To: autofs


[-- Attachment #1.1: Type: text/plain, Size: 1713 bytes --]


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.

My 
/etc/sysconfic/autofs file is pretty plain:
# TIMEOUT - set the default mount 
timeout (default 600).
#
TIMEOUT=300

# LOGGING - set default log 
level "none", "verbose" or "debug"
#
LOGGING="verbose"

# Other 
common LDAP 
nameing
#
MAP_OBJECT_CLASS="automountMap"
ENTRY_OBJECT_CLASS="automount"
MAP_ATTRIBUTE="ou"
ENTRY_ATTRIBUTE="cn"
VALUE_ATTRIBUTE="automountInformation"


Is 
there anything I can do to force autofs to check to see if my LDAP server
is 
back online?

Thanks,

Eric



 		 	   		  
_________________________________________________________________
Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail you.
http://go.microsoft.com/?linkid=9691817

[-- Attachment #1.2: Type: text/html, Size: 2020 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to make Autofs check if ldap server is back online
  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.
  1 sibling, 0 replies; 4+ messages in thread
From: Guillaume Rousse @ 2009-12-07 22:10 UTC (permalink / raw)
  To: Eric B., autofs

Eric B. a écrit :
> Is there anything I can do to force autofs to check to see if my LDAP server
> is back online?
If you have some kind of automated configuration management software, 
such as cfengine or puppet, you can monitor status of ldap-based mount 
maps periodically.

However, if you use those tools, you may as well distribute plain old 
file-based mount maps, than never fail.

-- 
BOFH excuse #311:

transient bus protocol violation

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to make Autofs check if ldap server is back online
  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
  1 sibling, 1 reply; 4+ messages in thread
From: Eric B. @ 2009-12-10 20:55 UTC (permalink / raw)
  To: autofs


[-- Attachment #1.1: Type: text/plain, Size: 1808 bytes --]



"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.

Eric


 
 		 	   		  
_________________________________________________________________
Windows Live: Keep your friends up to date with what you do online.
http://go.microsoft.com/?linkid=9691815

[-- Attachment #1.2: Type: text/html, Size: 2487 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to make Autofs check if ldap server is back online
  2009-12-10 20:55 ` Eric B.
@ 2009-12-15  1:23   ` Ian Kent
  0 siblings, 0 replies; 4+ messages in thread
From: Ian Kent @ 2009-12-15  1:23 UTC (permalink / raw)
  To: Eric B.; +Cc: autofs

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-12-15  1:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.