[Pacemaker] IPaddr local_start_script" fails or wrong usage?

Bernd Helber bernd at helber-it-services.com
Fri Nov 4 13:32:07 UTC 2011


> Hi,
>
Hi Dejan,
thanks for the quick Response. 
 
> On Tue, Nov 01, 2011 at 12:25:54PM +0100, Bernd Helber wrote:
> > Hi List.
> > 
> > i use a IPaddr Ressource with local_start_script Value.
> > I'm kind a wondered, cause if i trigger thoses scripts, from the Console
> > it works like a charme.
> > 
> > If i trigger it from the Cluster to failover, it to the other node.
> > The Ressource cleanly  fails over, but what makes me wonder, the script
> > doesn't get triggered.
> > 
> > SO it absolutely unclear to me why it's not triggerd.
> 
> Looking at the script, it is clear to me. It simply never gets
> invoked. The code was removed at one point, but unfortunately the
> parameters remained in the meta-data. It also means that nobody
> tried to use this since 2006.
> 
Thanks for Clarification, as i suspected, but i wasn't sure. Pacemaker isn't 
my daily meal.  


The issue is solved.

i checked out an old Version of the Agent from Github.
https://github.com/ClusterLabs/resource-
agents/blob/adb868da496127c7784f9a3afdf5ef404d61b317/heartbeat/IPaddr.in

Added this piece of Code at Line t Line 638

###################################################
#added local_start_script_value################
if [ ! -z "${OCF_RESKEY_local_start_script}" ]; then
if [ -x "${OCF_RESKEY_local_start_script}" ]; then
${OCF_RESKEY_local_start_script} $*
      fi
fi
####################################################

 

> > My current issue, ist that i have to trigger this Script, cause i have to
> > tell the Switches at my Weboster  with Useranme an Password, that it's a
> > regular failover, unfortunately i don't have an alternative, to this
> > procedure.
> 
> Interesting. What kind of equipment is that?
>
Unfortunately i can't tell you what kind of equipment they use.
 
> Thanks,
> 
Thank you too. :-)

> Dejan
> 
Kind regards

Bernd






More information about the Pacemaker mailing list