<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I believe it is preferable to bring failed nodes up manually. You'll want to investigate why the node failed exactly, resolve the issue if any, then bring the node up manually. Automatically bringing the node back up when it may be facing some random issue is ill-advised.<div><br></div><div>--Daniel</div><div><br><div><div>On Jun 8, 2011, at 10:10 AM, Warrior wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello,
<br>I`ve configured heartbeat and pacemaker with 2 nodes, all resources work
<br>well, all resources start when some of them is down, when the host is down,
<br>pacemaker moves all resources to the other one, my configuration:
<br><br>node $id="06d57c5a-3d47-4ef1-b518-7b8501f5ca9d" <a href="http://premailman1.mpt.es/">premailman1.mpt.es</a>
<br>node $id="9af2ea3b-b7ad-458f-b7d0-2491b72db28f" <a href="http://premailman.mpt.es/">premailman.mpt.es</a>
<br>primitive IP-Virtual ocf:heartbeat:IPaddr \
<br> params ip="10.1.24.201"
<br>primitive apache_mailman lsb:httpd \
<br> op monitor interval="15" timeout="15" start-delay="15" \
<br> meta target-role="Started"
<br>primitive apache_webmail lsb:httpd \
<br> op monitor interval="15" timeout="15" start-delay="15" \
<br> meta target-role="Started"
<br>primitive httpd_mailman ocf:heartbeat:anything \
<br> params binfile="/usr/local/bin/httpd_mailman"
<br>primitive httpd_webmail ocf:heartbeat:anything \
<br> params binfile="/usr/local/bin/httpd_webmail"
<br>primitive mailman ocf:heartbeat:anything \
<br> params binfile="/var/mailman/bin/mailmanctl" cmdline_options="start" \
<br> op start interval="0s" timeout="60s" on-fail="restart" \
<br> op monitor interval="10s" timeout="60s" on-fail="restart" \
<br> op stop interval="0s" timeout="60s" on-fail="block"
<br>primitive smtp_postfix ocf:heartbeat:postfix \
<br> params binary="/etc/init.d/postfix" \
<br> op start interval="0s" timeout="60s" on-fail="restart" \
<br> op monitor interval="10s" timeout="60s" on-fail="restart" \
<br> op stop interval="0s" timeout="60s" on-fail="block"
<br>colocation colocation-1 inf: IP-Virtual apache_mailman
<br>colocation colocation-2 inf: IP-Virtual smtp_postfix
<br>colocation colocation-3 inf: IP-Virtual mailman
<br>colocation colocation-4 inf: IP-Virtual httpd_mailman
<br>property $id="cib-bootstrap-options" \
<br> dc-version="1.1.1-b9b672590e79770afb63b9b455400d92fb6b5d9e" \
<br> cluster-infrastructure="Heartbeat" \
<br> stonith-enabled="false" \
<br> start-failure-is-fatal="false" \
<br> no-quorum-policy="ignore" \
<br> last-lrm-refresh="1306416533"
<br>rsc_defaults $id="rsc-options" \
<br> resource-stickiness="INFINITY"
<br><br>as I said everything works well, but i need just one thing, i have the
<br>directive " resource-stickiness="INFINITY", when node1 is down, the node2
<br>starts all resources and prevent failback again though the node1 is up,
<br> back i need move all resources to the first one when I certainly sure the
<br>node1 is runnig, is there some directive to tell pacemaker that move back
<br>again the to node1 automatically? i mean, is posibble to move back resources
<br>to node1 when It has passed certain time, maybe 1 hour or something?
_______________________________________________<br>Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br><a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br><br>Project Home: http://www.clusterlabs.org<br>Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf<br>Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker<br></blockquote></div><br><div><br></div>
<br></div></body></html>