Hi,

On Tue, Jan 22, 2008 at 01:55:13PM -0800, Brian Stamper wrote:
> I'm trying to configure heartbeat for ldap, mostly working off this old
> article:  http://www.linuxjournal.com/article/5505
> 
> I seem to be missing something.
> 
> I need both nodes running ldap to maintain sync between master and slave.
> I'm not sure how to set up haresources.  The article says:
> 
> Masternode 1.2.3.vip service
> 
> The problem is, this only starts the service on the primary node at bootup.
> If I chkconfig ldap to "on" on the slave node, it starts, but heartbeat
> shuts it down when it establishes communication.  I can manually start it,
> and things run fine.

The v1 style configuration, the one described in that article,
doesn't really support such master-slave configurations. It is
possible though with some extra effort on the part of the
resource agent to simulate it (that's how it is done in the
article). Also, as you noticed, the slave ldap server must be
started by hand after the Heartbeat start.

> If I configure haresources as:
> 
> Masternode 1.2.3.vip ldap
> Slavenode 1.2.3.vip ldap

That is not supported.

> Both nodes seem to contend for the vip.
> 
> I was thinking I could do:
> 
> Masternode 1.2.3.vip ldap
> Slavenode 1.2.3.realip ldap

Neither is this.

> But I assume in that situation, if the slavenode failed, the masternode
> would attempt to take the slavenode real ip as a vip.
> 
> I'm sure I'm overlooking something simple.  I did some searching in the list
> archive, but most people are recommending crm, and it's not something I
> really want to use for what should be a relatively simple setup.

Right, crm would be the way to go if you want to have native
support for master-slave resources. With v1 it's not impossible,
but you'll need to pay attention to how failbacks are handled.
BTW, this is not exactly a simple setup. The complexity is in the
management of the ldap database. I think that it was already
discussed on the list.

Thanks,

Dejan

> Help appreciated,
> 
> -Brian
> 
> 
> _______________________________________________
> 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