
Availability OCF RAs if possible. For more information, see
http://wiki
.linux-ha.org/HeartbeatResourceAgent
.
Linux Standards Base (LSB) Scripts
LSB resource agents are generally provided by the operating system/distribution
and are found in
/etc/init.d
. To be used with the cluster, they must conform
to the LSB specification. For example, they must have several actions implemented,
which are, at minimum,
start
,
stop
,
restart
,
reload
,
force-reload
,
and
status
as explained in
http://www.linuxbase.org/spec/
refspecs/LSB_3.0.0/LSB-Core- generic/LSB-Core-generic/
iniscrptact.html
.
Open Cluster Framework (OCF) Resource Agents
OCF RA agents are best suited for use with High Availability, especially when you
need master resources or special monitoring abilities. The agents are generally lo-
cated in
/usr/lib/ocf/resource.d/heartbeat/
. Their functionality is
similar to that of LSB scripts. However, the configuration is always done with en-
vironmental variables which allow them to accept and process parameters easily.
The OCF specification (as it relates to resource agents) can be found at
http://
www.opencf.org/cgi-bin/viewcvs.cgi/specs/ra/
resource-agent-api.txt?rev=HEAD 4
. OCF specifications have strict
definitions of which exit codes must be returned by actions. The cluster follows
these specifications exactly. For more information, see
http://wiki.linux-ha
.org/OCFResourceAgent
. For a detailed list of all available OCF RAs, refer
to Chapter 18, HA OCF Agents (page 201).
STONITH Resource Agents
This class is used exclusively for fencing related resources. For more information,
see Chapter 8, Fencing and STONITH (page 81).
The agents supplied with the High Availability Extension are written to OCF specifica-
tions.
17.2 OCF Return Codes
According to the OCF specification, there are strict definitions of the exit codes an action
must return. The cluster always checks the return code against the expected result. If
194
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: ......