What kind of RA you do you use? LSB one doesn't support reload, OCF - does. You need to get OCF RA from github,.<br><br><div class="gmail_quote">On Thu, Sep 29, 2011 at 3:04 AM, Max Williams <span dir="ltr"><<a href="mailto:Max.Williams@betfair.com">Max.Williams@betfair.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-GB">
<div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Yes this is what I would like to do. Ideally have named as a clone and then have an order like this:<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">crm(live)configure# order named-service-clone-after-Cluster_IP inf: Cluster_IP:start Named_Service:reload<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">But it gives this error:<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">ERROR: bad resource action/instance definition: Named_Service:reload<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Is there a way to achieve this?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Can I edit an RA file so that it takes reload as a action? If so, which file?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Or configure pacemaker to run an external command when a resource fails over or moves?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Many thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Max<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US"> Serge Dubrouski [mailto:<a href="mailto:sergeyfd@gmail.com" target="_blank">sergeyfd@gmail.com</a>]
<br>
<b>Sent:</b> 28 September 2011 18:17<br>
<b>To:</b> The Pacemaker cluster resource manager<br>
<b>Subject:</b> Re: [Pacemaker] Reloading a resource after a failover<u></u><u></u></span></p><div><div></div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p>Put bind itself under pacemaker control. You can use LSB RA or OCF RA that I recently created.<u></u><u></u></p>
<div>
<p class="MsoNormal">On Sep 28, 2011 10:46 AM, "Max Williams" <<a href="mailto:Max.Williams@betfair.com" target="_blank">Max.Williams@betfair.com</a>> wrote:<br>
> Hi,<br>
> I have a pair of clustered DNS servers with a virtual IP (VIP) configured. The problem is that when the VIP fails over, named on the new host of the VIP will not listen on port 53/UDP of the VIP until it is reloaded (I think this is because this daemon uses
UDP, not TCP).<br>
> <br>
> So I'd like to be able to reload named after a failover of the VIP address. Is this possible?<br>
> <br>
> I could do it by configuring named as a cloned resource and then configuring an order so that it is restarted when the VIP fails over or moves but I would much rather have named reload instead of restart.<br>
> <br>
> Any ideas? I'd rather not have to resort to a wrapper script or anything like that.<br>
> <br>
> Thanks,<br>
> Max<br>
> <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>
> <br>
> _______________________________________________<br>
> Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">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><u></u><u></u></p>
</div>
</div></div></div><div><div></div><div class="h5">
<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>
</div></div></div>
<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><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Serge Dubrouski.<br>