<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I&#8217;m not quite sure about your requirements because it sounds like you want to be able to perform a manual check of a host post failure AND have automatic fail back but perhaps you could remove the resource stickiness and look at setting migration-threshold to 1 and failure-timeout to 3600:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="http://www.clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/s-resource-options.html">http://www.clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/s-resource-options.html</a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Warrior [mailto:dareevil666@gmail.com] <br><b>Sent:</b> 08 June 2011 16:11<br><b>To:</b> pacemaker@oss.clusterlabs.org<br><b>Subject:</b> [Pacemaker] (Linux-HA)resource-stickiness automatically move all resources in certain time<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>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=&quot;06d57c5a-3d47-4ef1-b518-7b8501f5ca9d&quot; <a href="http://premailman1.mpt.es">premailman1.mpt.es</a> <br>node $id=&quot;9af2ea3b-b7ad-458f-b7d0-2491b72db28f&quot; <a href="http://premailman.mpt.es">premailman.mpt.es</a> <br>primitive IP-Virtual ocf:heartbeat:IPaddr \ <br>&nbsp; &nbsp; params ip=&quot;10.1.24.201&quot; <br>primitive apache_mailman lsb:httpd \ <br>&nbsp; &nbsp; op monitor interval=&quot;15&quot; timeout=&quot;15&quot; start-delay=&quot;15&quot; \ <br>&nbsp; &nbsp; meta target-role=&quot;Started&quot; <br>primitive apache_webmail lsb:httpd \ <br>&nbsp; &nbsp; op monitor interval=&quot;15&quot; timeout=&quot;15&quot; start-delay=&quot;15&quot; \ <br>&nbsp; &nbsp; meta target-role=&quot;Started&quot; <br>primitive httpd_mailman ocf:heartbeat:anything \ <br>&nbsp; &nbsp; params binfile=&quot;/usr/local/bin/httpd_mailman&quot; <br>primitive httpd_webmail ocf:heartbeat:anything \ <br>&nbsp; &nbsp; params binfile=&quot;/usr/local/bin/httpd_webmail&quot; <br>primitive mailman ocf:heartbeat:anything \ <br>&nbsp; &nbsp; params binfile=&quot;/var/mailman/bin/mailmanctl&quot; cmdline_options=&quot;start&quot; \ <br>&nbsp; &nbsp; op start interval=&quot;0s&quot; timeout=&quot;60s&quot; on-fail=&quot;restart&quot; \ <br>&nbsp; &nbsp; op monitor interval=&quot;10s&quot; timeout=&quot;60s&quot; on-fail=&quot;restart&quot; \ <br>&nbsp; &nbsp; op stop interval=&quot;0s&quot; timeout=&quot;60s&quot; on-fail=&quot;block&quot; <br>primitive smtp_postfix ocf:heartbeat:postfix \ <br>&nbsp; &nbsp; params binary=&quot;/etc/init.d/postfix&quot; \ <br>&nbsp; &nbsp; op start interval=&quot;0s&quot; timeout=&quot;60s&quot; on-fail=&quot;restart&quot; \ <br>&nbsp; &nbsp; op monitor interval=&quot;10s&quot; timeout=&quot;60s&quot; on-fail=&quot;restart&quot; \ <br>&nbsp; &nbsp; op stop interval=&quot;0s&quot; timeout=&quot;60s&quot; on-fail=&quot;block&quot; <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=&quot;cib-bootstrap-options&quot; \ <br>&nbsp; &nbsp; dc-version=&quot;1.1.1-b9b672590e79770afb63b9b455400d92fb6b5d9e&quot; \ <br>&nbsp; &nbsp; cluster-infrastructure=&quot;Heartbeat&quot; \ <br>&nbsp; &nbsp; stonith-enabled=&quot;false&quot; \ <br>&nbsp; &nbsp; start-failure-is-fatal=&quot;false&quot; \ <br>&nbsp; &nbsp; no-quorum-policy=&quot;ignore&quot; \ <br>&nbsp; &nbsp; last-lrm-refresh=&quot;1306416533&quot; <br>rsc_defaults $id=&quot;rsc-options&quot; \ <br>&nbsp; &nbsp; resource-stickiness=&quot;INFINITY&quot; <br><br>as I said everything works well, but i need just one thing, i have the <br>directive &quot; resource-stickiness=&quot;INFINITY&quot;, when node1 is down, the node2 <br>starts all resources and prevent &nbsp;failback again though the node1 is up, <br>&nbsp;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? <o:p></o:p></p></div><BR>
________________________________________________________________________<BR>
In order to protect our email recipients, Betfair Group use SkyScan from <BR>
MessageLabs to scan all Incoming and Outgoing mail for viruses.<BR>
<BR>
________________________________________________________________________<BR>
</body></html>