[Pacemaker] Resource Stickiness

Andrew Beekhof andrew at beekhof.net
Tue Mar 23 15:26:39 UTC 2010


On Tue, Mar 23, 2010 at 3:58 PM, frank <frank at dead-link.org> wrote:
>
> 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?

yes, you told it to:

> location cli-prefer-failover-ip failover-ip \
>        rule $id="cli-prefer-rule-failover-ip" inf: #uname eq data01

100000000 == inf




More information about the Pacemaker mailing list