All OCF RAs are available in
/usr/lib/ocf/resource.d/, see
Section 14.1, “Supported Resource Agent Classes” for more information. 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,
execute the command crm:
configure primitive coffee_1 ocf:coffee_machine: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 High Availability 2 at Chapter 1, Conceptual Overview.