[Pacemaker] automated failback for a group

Glenn Elliott gelliott at stvincents.com.au
Wed Mar 2 01:21:45 EST 2011


Hello,
 
I cant seem to setup a group to failback automatically after a failure has
occurred to dnstest1-serv or dnstest2-serv (failover works fine). Can anyone give
me a hint? I am trying to setup a pair of floating ip addresses used in dns, I
have my own heartbeat script that manages dns.

node dnsprv1.foo.com.au
node dnsprv2.foo.com.au
primitive dnstest1-ip ocf:heartbeat:IPaddr \
        params ip="10.99.20.106" \
        op monitor interval="10s"
primitive dnstest1-serv ocf:heartbeat:bind \
        op monitor interval="15s" \
        params query="gw10x99x0x1.foo.com.au" receive="10.99.0.1" \
        meta is-managed="true" target-role="Started" migration-threshold="2"
failure-timeout="120s"
primitive dnstest2-ip ocf:heartbeat:IPaddr \
        params ip="10.99.20.107" \
        op monitor interval="10s"
primitive dnstest2-serv ocf:heartbeat:bind \
        op monitor interval="15s" \
        params query="gw10x99x0x1.foo.com.au" receive="10.99.0.1" \
        meta is-managed="true" target-role="Started" migration-threshold="2"
failure-timeout="120s"
primitive pingd ocf:pacemaker:pingd \
        params host_list="10.99.16.1" \
        op monitor interval="90s" timeout="20s"
group grp-dnstest1 dnstest1-ip dnstest1-serv
group grp-dnstest2 dnstest2-ip dnstest2-serv
clone c_pingd pingd \
        meta globally-unique="false"
location dnstest1_on_connected_node grp-dnstest1 \
        rule $id="dnstest1_on_connected_node-rule" -inf: not_defined pingd or
pingd lte 0
location dnstest2_on_connected_node grp-dnstest2 \
        rule $id="dnstest2_on_connected_node-rule" -inf: not_defined pingd or
pingd lte 0
property $id="cib-bootstrap-options" \
        dc-version="1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd" \
        cluster-infrastructure="openais" \
        expected-quorum-votes="2" \
        stonith-enabled="false" \
        no-quorum-policy="ignore" \
        default-resource-stickiness="0"


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been virus
scanned and although no viruses were detected by the system, St Vincents &
Mater Health Sydney accepts no liability for any consequential damage
resulting from email containing any computer viruses.

**********************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110302/9e55acc9/attachment-0002.html>


More information about the Pacemaker mailing list