[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Fault-tolerance for master OpenLDAP server

On Thu, 2005-09-01 at 10:12 +0200, Diego de Felice wrote:
> > 1) After a failover to the secondary master, what should we do with the
> > primary? What if the primary comes back online? The simplest solution is
> > provided by that article pointed out by Gary: prevent the failed node to
> > re-acquire the virtual IP.
>  I'm facing the same problem in these days. I'm using Heartbeat and
> the problem is that when the failed node comes back Heartbeat doesn't
> start it automatically as slave. I'll try to put a script that starts
> OpenLDAP automatically as slave at boot time and see what happens.
> Then the master will update automatically (thanks to slurpd) this new
> slave... at last I hope so :-)


What you could is to add a check in your slapd init script:
if the server holds the heartbeat service address starts slapd as
master, otherwise starts slapd as slave.

Samuel Tran <stran@amnh.org>
Systems Administration - Information Technology
American Museum of Natural History
(P) 212-313-7231