Hello Dejan,<div><br></div><div>If the LVS support is not there, then stop script part doesn't work. I have added below piece of code to line 587, just before line beginning with <span style="background-color:rgb(255,255,255);color:rgb(51,51,51);font-family:'Bitstream Vera Sans Mono','Courier New',monospace;font-size:12px;line-height:16px;white-space:pre">delete_route.</span></div>
<div><br></div><div><div> if [ ! -z "${OCF_RESKEY_local_stop_script}" ]; then</div><div> if [ -x "${OCF_RESKEY_local_stop_script}" ]; then</div><div> ${OCF_RESKEY_local_stop_script} $*</div>
<div> fi</div><div> fi</div><div><br></div><div><br></div><div>I have tested it in my environment (Centos 6.2, Pacemaker 1.1.6) and it works.</div><div><br></div><div>thanks,</div>
<div><br></div><div>huseyin</div><div><br></div><br><div class="gmail_quote">On Mon, Nov 7, 2011 at 5:50 PM, Dejan Muhamedagic <span dir="ltr"><<a href="mailto:dejanmm@fastmail.fm">dejanmm@fastmail.fm</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Fri, Nov 04, 2011 at 02:32:07PM +0100, Bernd Helber wrote:<br>
> > Hi,<br>
> ><br>
> Hi Dejan,<br>
> thanks for the quick Response.<br>
><br>
> > On Tue, Nov 01, 2011 at 12:25:54PM +0100, Bernd Helber wrote:<br>
> > > Hi List.<br>
> > ><br>
> > > i use a IPaddr Ressource with local_start_script Value.<br>
> > > I'm kind a wondered, cause if i trigger thoses scripts, from the Console<br>
> > > it works like a charme.<br>
> > ><br>
> > > If i trigger it from the Cluster to failover, it to the other node.<br>
> > > The Ressource cleanly fails over, but what makes me wonder, the script<br>
> > > doesn't get triggered.<br>
> > ><br>
> > > SO it absolutely unclear to me why it's not triggerd.<br>
> ><br>
> > Looking at the script, it is clear to me. It simply never gets<br>
> > invoked. The code was removed at one point, but unfortunately the<br>
> > parameters remained in the meta-data. It also means that nobody<br>
> > tried to use this since 2006.<br>
> ><br>
> Thanks for Clarification, as i suspected, but i wasn't sure. Pacemaker isn't<br>
> my daily meal.<br>
><br>
><br>
> The issue is solved.<br>
><br>
> i checked out an old Version of the Agent from Github.<br>
> <a href="https://github.com/ClusterLabs/resource-" target="_blank">https://github.com/ClusterLabs/resource-</a><br>
> agents/blob/adb868da496127c7784f9a3afdf5ef404d61b317/heartbeat/IPaddr.in<br>
><br>
> Added this piece of Code at Line t Line 638<br>
><br>
> ###################################################<br>
> #added local_start_script_value################<br>
> if [ ! -z "${OCF_RESKEY_local_start_script}" ]; then<br>
> if [ -x "${OCF_RESKEY_local_start_script}" ]; then<br>
> ${OCF_RESKEY_local_start_script} $*<br>
> fi<br>
> fi<br>
> ####################################################<br>
<br>
</div></div>OK. Added back the missing code. Don't like the feature<br>
particularly, but if somebody wants to use it...<br>
<br>
Thanks,<br>
<br>
Dejan<br>
<div class="HOEnZb"><div class="h5"><br>
> > > My current issue, ist that i have to trigger this Script, cause i have to<br>
> > > tell the Switches at my Weboster with Useranme an Password, that it's a<br>
> > > regular failover, unfortunately i don't have an alternative, to this<br>
> > > procedure.<br>
> ><br>
> > Interesting. What kind of equipment is that?<br>
> ><br>
> Unfortunately i can't tell you what kind of equipment they use.<br>
><br>
> > Thanks,<br>
> ><br>
> Thank you too. :-)<br>
><br>
> > Dejan<br>
> ><br>
> Kind regards<br>
><br>
> Bernd<br>
><br>
><br>
><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>
_______________________________________________<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>
</div></div></blockquote></div><br></div>