[Pacemaker] Resource Stickiness

frank frank at dead-link.org
Tue Mar 23 10:58:32 EDT 2010


Hey Guys,
wondering why resource stickiness does not work.

node data01 \
        attributes standby="off"
node data02 \
        attributes standby="off"
primitive data01-stonith stonith:external/riloe \
        params hostlist="data01" ilo_user="root"
ilo_hostname="data01-ilo" ilo_password="xxxxxx" ilo_can_reset="1"
ilo_protocol="2.0" ilo_powerdown_method="button" \
        op monitor interval="120s" timeout="40s" \
        meta target-role="Started"
primitive data02-stonith stonith:external/riloe \
        params hostlist="data02" ilo_user="root"
ilo_hostname="data02-ilo" ilo_password="xxxxxx" ilo_can_reset="1"
ilo_protocol="2.0" ilo_powerdown_method="button" \
        op monitor interval="120s" timeout="40s" \
        meta target-role="Started"
primitive failover-ip ocf:heartbeat:IPaddr \
        params ip="xxx.xxx.xxx.xxx" \
        op monitor interval="10s" \
        meta target-role="Started"
location cli-prefer-failover-ip failover-ip \
        rule $id="cli-prefer-rule-failover-ip" inf: #uname eq data01
property $id="cib-bootstrap-options" \
        dc-version="1.0.7-54d7869bfe3691eb723b1d47810e5585d8246b58" \
        cluster-infrastructure="openais" \
        expected-quorum-votes="2" \
        stonith-enabled="true" \
        no-quorum-policy="ignore" \
        last-lrm-refresh="1269212475"
rsc_defaults $id="rsc-options" \
        resource-stickiness="100000000"

Killed Corosync on data01, the node goes down as expected and the
resource fails over to data02. After data01 is up again the failover-ip
moves back to data01.

Any ideas?

Frank





More information about the Pacemaker mailing list