Hi,

On Thu, Nov 20, 2008 at 08:32:52AM -0700, Ryan Kish wrote:
> Hi Rob,
> 
> I am using heartbeat 2 to run an HA OpenLDAP system. The cluster has
> two nodes, one designated as the master and the other as a slave. Thus
> far it has been very stable, and handles failover quite well. In a
> nutshell, this is how it is set up.
> 
>  - Both nodes have a two ldap configurations, one for running as the
> master, one for running as the slave. I had to write a couple of OCF
> scripts for each service (master and slave).

I guess that this could be better handled by a multi-state
(master-slave) resource. For which you'd need an appropriate OCF
RA. Basically, what you already have could be combined in a
single RA, with two extra operations (actions): promote (slave to
master) and demote (vice versa). Your configuration would also be
simpler.

Thanks,

Dejan

>  - one VIP is used, it is bound to the master ldap service using a
> colocation. The VIP also has a place defined, node1 should be the
> master unless something bad is happening.
>  - a second colocation is used to ensure the master and slave do not
> try to start on the same node
>  - I leverage the OpenLDAP replication feature to ensure the slave
> node is up to date.
> 
> If the primary is to fail, or is placed in standby mode, OpenLDAP is
> stopped (as the slave) and restarted as the master, and of course the
> VIP moves as well. This momentary blip is cushioned by the fact that I
> am running nscd on all of my ldap connected nodes.
> 
> Cheers,
> Ryan
> 
> On Wed, Nov 19, 2008 at 2:50 PM, Rob Tanner <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I'm running DNS and DHCP, both of which are simple flat file databases on
> > Linux HA and it works great.
> > The next thing to try is OpenLDAP and MySQL, both of which are critical
> > services and both of which are for more complex.  Is anyone running them on
> > Linux HA.  Does it work reliably when you switch, etc.  How do you have it
> > all configured?
> >
> > Thanks,
> >
> > Rob Tanner
> > Linfield College
> >
> > _______________________________________________
> > Linux-HA mailing list
> > [email protected]
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> >
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to