Writing OCF Resource Agents

All OCF RAs are available in /usr/lib/ocf/resource.d/. The scripts that are delivered with the Heartbeat package are found in this directory in the subdirectory heartbeat. To avoid name clashes, create a different subdirectory when creating new resource agents. For example, if you have a resource group kitchen with the resource coffee_machine, add this resource to the directory /usr/lib/ocf/resource.d/kitchen/. To access this RA, the configuration would look like:

<primitive id="coffee_1" class="ocf" type="coffee_machine" provider="kitchen"/>
  

When implementing your own OCF RA, provide several actions for this agent. More details about writing OCF resource agents can be found at http://www.linux-ha.org/OCFResourceAgent. Find special information about several concepts of Heartbeat 2 at http://linux-ha.org/v2/Concepts.


SUSE Linux Enterprise Server Heartbeat Guide 10 SP2