
7.2 Writing OCF Resource Agents
All OCF RAs are available in
/usr/lib/ocf/resource.d/
, see Section 17.1,
“Supported Resource Agent Classes” (page 193) for more information. To avoid naming
contradictions, create a new subdirectory for each new resource agent. 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 the 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 (page 3).
80
High Availability Guide
Содержание LINUX ENTERPRISE 11 - HIGH AVAILABILITY
Страница 10: ......
Страница 11: ...Part I Installation and Setup...
Страница 12: ......
Страница 28: ......
Страница 38: ......
Страница 39: ...Part II Configuration and Administration...
Страница 40: ......
Страница 68: ......
Страница 108: ......
Страница 114: ......
Страница 115: ...Part III Storage and Data Replication...
Страница 116: ......
Страница 126: ......
Страница 140: ......
Страница 141: ...Part IV Troubleshooting and Reference...
Страница 142: ......
Страница 148: ......
Страница 166: ...See Also cibadmin 8 page 142 156 High Availability Guide...
Страница 202: ......
Страница 210: ......
Страница 231: ...OCF_RESKEY_arp_mac ARP MAC MAC address to send the ARP packets to For advanced users only HA OCF Agents 221...
Страница 246: ...OCF_RESKEY_nfs_ip IP address The floating IP address used to access the the nfs service 236 High Availability Guide...
Страница 285: ...Part V Appendix...
Страница 286: ......