<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">OK I’ll wait until it is in GIT.<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">Is there a way I could edit the LSB RA to take ‘reload’? Where is the RA file for LSB init scripts? Or is it built in to Pacemaker?<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">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Max<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""> Serge Dubrouski [mailto:sergeyfd@gmail.com]
<br>
<b>Sent:</b> 05 October 2011 04:32<br>
<b>To:</b> The Pacemaker cluster resource manager<br>
<b>Subject:</b> Re: [Pacemaker] Reloading a resource after a failover<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><br>
Please also notice that named RA in the git is a little bit broken. You need to apply a patch that I recently sent, or wait little bit till it's applied to GIT.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Tue, Oct 4, 2011 at 8:08 AM, Florian Haas <<a href="mailto:florian@hastexo.com">florian@hastexo.com</a>> wrote:<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">On 2011-10-04 12:26, Max Williams wrote:<br>
> Thanks Serge.<br>
><br>
> How exactly do I tell pacemaker to use this RA? Is there an ‘import’<br>
> command I need to run?<o:p></o:p></p>
</div>
<p class="MsoNormal">No, you just drop the resource agent in the appropriate provider<br>
directory (/usr/lib/ocf/resource.d/<provider/) and set its x bit. Then<br>
it immediately becomes available to the LRM and Pacemaker.<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
> Also, does this mean I need to change some of the paths in the RA?<o:p></o:p></p>
</div>
<p class="MsoNormal">Yes it does. Well, really it means you're using an elderly version of<br>
the resource agents package which expects the heartbeat shellfuncs<br>
library in a different location than the new RA.<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
> [root@host001 ~]# ocf-tester -n named<br>
> /usr/lib/ocf/resource.d/heartbeat/named<br>
><br>
> Beginning tests for /usr/lib/ocf/resource.d/heartbeat/named...<br>
><br>
> /usr/lib/ocf/resource.d/heartbeat/named: line 16:<br>
> /usr/lib/ocf/lib/heartbeat/ocf-shellfuncs: No such file or directory<br>
><br>
> * rc=1: Your agent has too restrictive permissions: should be 755<br>
><br>
> /usr/lib/ocf/resource.d/heartbeat/named: line 16:<br>
> /usr/lib/ocf/lib/heartbeat/ocf-shellfuncs: No such file or directory<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">If you change the path in that line 16 to<br>
"/usr/lib/ocf/resource.d/heartbeat/.ocf-shellfuncs" (note leading dot in<br>
filename and resource.d, not lib), then the RA should be able to find<br>
the shell function library.<br>
<br>
What's a much better idea though is of course to move to a recent<br>
version of resource-agents, but that may or may not be an option for you.<br>
<br>
Hope this helps.<br>
Cheers,<br>
Florian<br>
<span style="color:#888888"><br>
--<br>
Need help with High Availability?<br>
<a href="http://www.hastexo.com/now" target="_blank">http://www.hastexo.com/now</a><br>
<br>
</span><br>
_______________________________________________<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" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">
http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">
http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <br>
Serge Dubrouski.<o:p></o:p></p>
</div>
</div>
<br clear="both">
________________________________________________________________________<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>