<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&nbsp;openSuSE<a></a> servers running in a cluster (one Master and one Slave). I have an&nbsp;OCF<a></a> resource defined using&nbsp;Ipaddr2<a></a> for a virtual
 IP (ClusterIP<a></a>). The&nbsp;ClusterIP<a></a> resource fails over to the slave if the Master fails as expected.
</p>
<p>&nbsp;</p>
<p>However, I do not want the resource to move back to the Master automatically when it recovers. I saw in the &quot;Pacemaker-1.1-Clusters_from_Scratch<a></a>...&quot; document in section 5.3.2, that changing the resource-stickiness to &quot;100&quot; 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>&nbsp;</p>
<p>Can someone tell me what I am doing wrong? Below is my full configuration.</p>
<p>&nbsp;</p>
<p>Thanks,</p>
<p>Keith</p>
<p>&nbsp;</p>
<p>node test-db1 \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; attributes standby=&quot;off&quot; pgsql-data-status=&quot;LATEST&quot;<br>
node test-db2 \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; attributes standby=&quot;off&quot; pgsql-data-status=&quot;DISCONNECT&quot;<br>
primitive ClusterIP ocf:heartbeat:IPaddr2 \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; meta target-role=&quot;Started&quot; is-managed=&quot;true&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; operations $id=&quot;ClusterIP-operations&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op start interval=&quot;0&quot; timeout=&quot;60s&quot; on-fail=&quot;stop&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op monitor interval=&quot;10s&quot; timeout=&quot;60s&quot; on-fail=&quot;restart&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op stop interval=&quot;0&quot; timeout=&quot;60s&quot; on-fail=&quot;block&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; params ip=&quot;172.16.0.110&quot; cidr_netmask=&quot;24&quot;<br>
primitive MasterDB ocf:heartbeat:Dummy \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; meta target-role=&quot;Started&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; operations $id=&quot;MasterDB-operations&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op monitor interval=&quot;10&quot; timeout=&quot;20&quot;<br>
primitive PostgreSQL lsb:postgresql-9.2 \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; operations $id=&quot;PostgreSQL-operations&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op monitor interval=&quot;15&quot; timeout=&quot;15&quot; on-fail=&quot;ignore&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op start interval=&quot;0&quot; timeout=&quot;15&quot; on-fail=&quot;ignore&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; meta target-role=&quot;Started&quot;<br>
ms msPostresql PostgreSQL \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; meta clone-max=&quot;2&quot; notify=&quot;true&quot; target-role=&quot;Started&quot; clone-node-max=&quot;1<br>
&quot; master-max=&quot;1&quot; master-node-max=&quot;1&quot;<br>
property $id=&quot;cib-bootstrap-options&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dc-version=&quot;1.1.6-b988976485d15cb702c9307df55512d323831a5e&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cluster-infrastructure=&quot;openais&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stonith-enabled=&quot;false&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; last-lrm-refresh=&quot;1358778294&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; no-quorum-policy=&quot;ignore&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pe-input-series-max=&quot;0&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stonith-action=&quot;poweroff&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pe-warn-series-max=&quot;0&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dc-deadtime=&quot;60s&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; expected-quorum-votes=&quot;2&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; start-failure-is-fatal=&quot;false&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; crmd-transition-delay=&quot;0&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; default-resource-stickiness=&quot;1000&quot;<br>
rsc_defaults $id=&quot;rsc_defaults-options&quot; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; resource-stickiness=&quot;100&quot;<br>
op_defaults $id=&quot;op_defaults-options&quot; \<br>
&nbsp;record-pending=&quot;false&quot;<br>
</p>
<p>&nbsp;</p>
</div>
</body>
</html>