[Pacemaker] How to make the 1st resources to failover is 2nd resources is being killed?

Paul Sun paul.sun at syniverse.com
Thu Mar 14 09:15:29 CET 2013


Hi

I have 3 node setup, the FloatingIP_02 and PDNS-Recursor serve for the same purpose. The PDNS-Recursor can only be started if FloatingIP_02 is presented on the same node. I would like to configure such that if I terminate PDNS-Recursor, the FloatingIP_02 together with PDNS-Recursor will be failed over to node2.

Below is my configuration.

Thanks

- Paul

node HA_NODE1
node HA_NODE2
node HA_NODE3
primitive FloatingIP_02 ocf:heartbeat:IPaddr2 \
        params ip="192.168.206.160" cidr_netmask="32" nic="eth2" iflabel="vip2" \
        op monitor interval="30s" \
        meta resource-stickiness="1000"
primitive PDNS-Recursor lsb:pdns_recursord \
        op monitor interval="30s"
location PDNS-IP-prefer1 FloatingIP_02 -inf: HA_NODE1
location PDNS-IP-prefer2 FloatingIP_02 400: HA_NODE2
location PDNS-IP-prefer3 FloatingIP_02 300: HA_NODE3
location PDNS-Recursor-prefer1 PDNS-Recursor -inf: HA_NODE1
colocation PDNS-Recursor-Services inf: PDNS-Recursor FloatingIP_02
order PDNS-Recursor-Order inf: FloatingIP_02 PDNS-Recursor
property $id="cib-bootstrap-options" \
        dc-version="1.1.8-7.el6-394e906" \
        cluster-infrastructure="classic openais (with plugin)" \
        expected-quorum-votes="3" \
        stonith-enabled="true" \
        no-quorum-policy="ignore" \
        last-lrm-refresh="1363236700"



More information about the Pacemaker mailing list