[Pacemaker] Custom OCF Resource Agents
Sean.Feeney at sonydadc.com
Sean.Feeney at sonydadc.com
Fri Jul 1 18:47:02 UTC 2011
Okay, my script is now passing the ocf-tester but it is exhibiting strange
behavior. It is based on:
#!/bin/sh
service=smbd
if ps ax | grep -v grep | grep ${service} > /dev/null
then
echo "$service service running, everything is OK"
else
echo "$service is not running"
fi
So in the monitor() method of my RA:
service=smbd
if ps ax | grep -v grep | grep ${service} > /dev/null
then
return $OCF_SUCCESS
else
return $OCF_NOT_RUNNING
fi
Whether the smbd service running or not, in the RA the first case is
always returned: "return $OCF_SUCCESS"
Any ideas?
Thanks,
Sean Feeney
From:
Andrew Beekhof <andrew at beekhof.net>
To:
The Pacemaker cluster resource manager <pacemaker at oss.clusterlabs.org>
Date:
06/30/2011 10:07 PM
Subject:
Re: [Pacemaker] Custom OCF Resource Agents
On Fri, Jul 1, 2011 at 7:32 AM, <Sean.Feeney at sonydadc.com> wrote:
I have written a few ocf resource agents and need to debug. Is there any
way to do this outside of pacemaker/crm?
ocf-tester is your friend :-)
If I need to do this within pacemaker/crm, will the cluster pick up my
changes to the ocf files automatically or do I need to run some sort of
refresh or do I have to completely delete and re-add the resource?
Nope. We don't cache the contents of your script.
Thanks,
Sean Feeney
Internet Email Confidentiality: Privileged/Confidential Information may be
contained in this message. If you are not the addressee indicated (or
designated as responsible for delivery of this message to such person),
you may not copy or deliver this to anyone else. In such case, you should
destroy this message, and notify me immediately. Thank you.
_______________________________________________
Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker
Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs:
http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
_______________________________________________
Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker
Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs:
http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
Internet Email Confidentiality: Privileged/Confidential Information may be
contained in this message. If you are not the addressee indicated (or
designated as responsible for delivery of this message to such person),
you may not copy or deliver this to anyone else. In such case, you should
destroy this message, and notify me immediately. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110701/d3cd73b5/attachment.htm>
More information about the Pacemaker
mailing list