Adding or Modifying Resource Agents

Contents

7.1. STONITH Agents
7.2. Writing OCF Resource Agents

All tasks that should be managed by a cluster must be available as a resource. There are two major groups that should be distinguished: resource agents and STONITH agents. For both categories, you can add your own agents, extending the abilities of the cluster to your own needs.

STONITH Agents

A cluster sometimes detects that one of the nodes is misbehaving and needs to remove it. This is called fencing and is commonly done with a STONITH resource. All STONITH resources reside in /usr/lib/stonith/plugins on each node.

[Warning]SSH and STONITH Are Not Supported

It is impossible to know how SSH might react to other system problems. For this reason, SSH and STONITH agent are not supported for a production environment.

To get a list of all currently available STONITH devices (from the software side), use the command stonith -L.

Unfortunately, there is no documentation about writing STONITH agents yet. If you want to write new STONITH agents, consult the examples available in the source of the heartbeat-common package.