<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’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> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </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> </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="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? <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>