<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body fPStyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<p>Sorry if this sounds like a simple issue, but for some reason I can not get this to work properly. I have two openSuSE<a></a> servers running in a cluster (one Master and one Slave). I have an OCF<a></a> resource defined using Ipaddr2<a></a> for a virtual
 IP (ClusterIP<a></a>). The ClusterIP<a></a> resource fails over to the slave if the Master fails as expected.
</p>
<p> </p>
<p>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<a></a>..." 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.
</p>
<p> </p>
<p>Can someone tell me what I am doing wrong? Below is my full configuration.</p>
<p> </p>
<p>Thanks,</p>
<p>Keith</p>
<p> </p>
<p>node test-db1 \<br>
        attributes standby="off" pgsql-data-status="LATEST"<br>
node test-db2 \<br>
        attributes standby="off" pgsql-data-status="DISCONNECT"<br>
primitive ClusterIP ocf:heartbeat:IPaddr2 \<br>
        meta target-role="Started" is-managed="true" \<br>
        operations $id="ClusterIP-operations" \<br>
        op start interval="0" timeout="60s" on-fail="stop" \<br>
        op monitor interval="10s" timeout="60s" on-fail="restart" \<br>
        op stop interval="0" timeout="60s" on-fail="block" \<br>
        params ip="172.16.0.110" cidr_netmask="24"<br>
primitive MasterDB ocf:heartbeat:Dummy \<br>
        meta target-role="Started" \<br>
        operations $id="MasterDB-operations" \<br>
        op monitor interval="10" timeout="20"<br>
primitive PostgreSQL lsb:postgresql-9.2 \<br>
        operations $id="PostgreSQL-operations" \<br>
        op monitor interval="15" timeout="15" on-fail="ignore" \<br>
        op start interval="0" timeout="15" on-fail="ignore" \<br>
        meta target-role="Started"<br>
ms msPostresql PostgreSQL \<br>
        meta clone-max="2" notify="true" target-role="Started" clone-node-max="1<br>
" master-max="1" master-node-max="1"<br>
property $id="cib-bootstrap-options" \<br>
        dc-version="1.1.6-b988976485d15cb702c9307df55512d323831a5e" \<br>
        cluster-infrastructure="openais" \<br>
        stonith-enabled="false" \<br>
        last-lrm-refresh="1358778294" \<br>
        no-quorum-policy="ignore" \<br>
        pe-input-series-max="0" \<br>
        stonith-action="poweroff" \<br>
        pe-warn-series-max="0" \<br>
        dc-deadtime="60s" \<br>
        expected-quorum-votes="2" \<br>
        start-failure-is-fatal="false" \<br>
        crmd-transition-delay="0" \<br>
        default-resource-stickiness="1000"<br>
rsc_defaults $id="rsc_defaults-options" \<br>
        resource-stickiness="100"<br>
op_defaults $id="op_defaults-options" \<br>
 record-pending="false"<br>
</p>
<p> </p>
</div>
</body>
</html>