[Pacemaker] two active-active service processes, but only one vIP

David Magda dmagda at ee.ryerson.ca
Mon Sep 8 15:02:15 UTC 2014


On Sat, Sep 06, 2014 at 02:14:29PM -0400, David Magda wrote:
> On Sep 6, 2014, at 12:00, Ken Gaillot <kjgaillo at gleim.com> wrote:
> 
> > # This allows slapd to run on both hosts.
> > clone ldap-daemon-clone ldap-daemon meta globally-unique="false" interleave="true"
> 
[...]
> I'll give it a go.

This worked.

    primitive dmn_slapd ocf:work:slapd \
        params config="/etc/ldap/slapd.d" user="openldap" \
	services="ldap:/// ldapi:///" group="openldap" \
        op monitor interval="20s" timeout="5s"
    clone dmn_slapd_clone dmn_slapd \
        meta globally-unique="false" interleave="true" target-role="Started"
    colocation colo-vip_ldap2-with-dmn_slapd +inf: vip_ldap2 dmn_slapd_clone

Since the daemon is managed by Pacemaker on each node, is there a way
to start and stop it on a per-node basis? Doing a "crm resource
<start/stop> dmn_slapd" seems to effect both systems. What if I want to do
stop it on only one?




More information about the Pacemaker mailing list