[Pacemaker] Resource Stickiness

Keith Ouellette Keith.Ouellette at Airgas.com
Mon Jan 21 15:35:05 UTC 2013


Sorry if this sounds like a simple issue, but for some reason I can not get this to work properly. I have two openSuSE servers running in a cluster (one Master and one Slave). I have an OCF resource defined using Ipaddr2 for a virtual IP (ClusterIP). The ClusterIP resource fails over to the slave if the Master fails as expected.



However, I do not want the resource to move back to the Master automatically when it recovers. I saw in the "Pacemaker-1.1-Clusters_from_Scratch..." document in section 5.3.2, that changing the resource-stickiness to "100" should have given me that desired result. I tried that and the resource still moves back over to the Master when it recovers.



Can someone tell me what I am doing wrong? Below is my full configuration.



Thanks,

Keith



node test-db1 \
        attributes standby="off" pgsql-data-status="LATEST"
node test-db2 \
        attributes standby="off" pgsql-data-status="DISCONNECT"
primitive ClusterIP ocf:heartbeat:IPaddr2 \
        meta target-role="Started" is-managed="true" \
        operations $id="ClusterIP-operations" \
        op start interval="0" timeout="60s" on-fail="stop" \
        op monitor interval="10s" timeout="60s" on-fail="restart" \
        op stop interval="0" timeout="60s" on-fail="block" \
        params ip="172.16.0.110" cidr_netmask="24"
primitive MasterDB ocf:heartbeat:Dummy \
        meta target-role="Started" \
        operations $id="MasterDB-operations" \
        op monitor interval="10" timeout="20"
primitive PostgreSQL lsb:postgresql-9.2 \
        operations $id="PostgreSQL-operations" \
        op monitor interval="15" timeout="15" on-fail="ignore" \
        op start interval="0" timeout="15" on-fail="ignore" \
        meta target-role="Started"
ms msPostresql PostgreSQL \
        meta clone-max="2" notify="true" target-role="Started" clone-node-max="1
" master-max="1" master-node-max="1"
property $id="cib-bootstrap-options" \
        dc-version="1.1.6-b988976485d15cb702c9307df55512d323831a5e" \
        cluster-infrastructure="openais" \
        stonith-enabled="false" \
        last-lrm-refresh="1358778294" \
        no-quorum-policy="ignore" \
        pe-input-series-max="0" \
        stonith-action="poweroff" \
        pe-warn-series-max="0" \
        dc-deadtime="60s" \
        expected-quorum-votes="2" \
        start-failure-is-fatal="false" \
        crmd-transition-delay="0" \
        default-resource-stickiness="1000"
rsc_defaults $id="rsc_defaults-options" \
        resource-stickiness="100"
op_defaults $id="op_defaults-options" \
 record-pending="false"


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130121/7debe5f3/attachment-0003.html>


More information about the Pacemaker mailing list