[Pacemaker] How to create OCF Resource Agents

Paul Osier Paul.Osier at itouchpoint.com
Tue Apr 28 15:23:22 UTC 2009


I ran that and it just says:

* rc=3: Your agent does not support the validate-all action

I thought validate-all was optional. But, that being the case, how do I
set it up? My script should just start/stop/monitor SER, there are no
variables being passed to it.

Sorry, I'm just learning Pacemaker and how it works.

Thanks.

-----Original Message-----
From: Dominik Klein [mailto:dk at in-telegence.net] 
Sent: Monday, April 27, 2009 11:47 PM
To: pacemaker at oss.clusterlabs.org
Subject: Re: [Pacemaker] How to create OCF Resource Agents



Paul Osier wrote:
> I'm trying to create an OCF resource agent that will
start/stop/monitor
> SER. I've read through the opencf.org resource agent api doc and the
> wiki.linux-ha.org OCF resource agent doc and all those documents talk
> about is what is needed in the resource agent, not necessarily how to
> format/create it. I did try to take a resource agent from the
> /usr/lib/ocf/resource.d/heartbeat directory that looked similar to
what
> I wanted to do and change it to work for SER, but it's not working.
> After running crm_mon the following error message appears in
> /var/log/syslog:
> 
>  
> 
> ERROR: unpack_rsc_op: Hard error - SERapp_monitor_0 failed with rc=5:
> Preventing SERapp from re-starting on pri-pacemaker
> 
>  
> 
> Is there another log to check for resource agent error messages? Is
> there any documentation out there with a simple sample resource agent?

Pacemaker comes with a tool called "ocf-tester", which will help you
find out what your RA's problem are.

Regards
Dominik

_______________________________________________
Pacemaker mailing list
Pacemaker at oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker




More information about the Pacemaker mailing list