[Pacemaker] How to create OCF Resource Agents

Dominik Klein dk at in-telegence.net
Tue Apr 28 02:47:07 EDT 2009



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




More information about the Pacemaker mailing list