Novell SUSE LINUX ENTERPRISE SERVER 10 SP2 HEARTBEAT Manual page 56

Hide thumbs Also See for SUSE LINUX ENTERPRISE SERVER 10 SP2 HEARTBEAT:
Table of Contents

Advertisement

force-reload, and status as explained in
.org/spec/refspecs/LSB_1.3.0/gLSB/gLSB/iniscrptact.html.
The configuration of those services is not standardized. If you intend to use an LSB
script with Heartbeat, make sure that you understand how the respective script is con-
figured. Often you can find some documentation to this in the documentation of the
respective package in /usr/share/doc/packages/<package_name>.
When used by Heartbeat, the service should not be touched by other means. This means
that it should not be started or stopped on boot, reboot, or manually. However, if you
want to check if the service is configured properly, start it manually, but make sure that
it is stopped again before Heartbeat takes over.
Before using an LSB resource, make sure that the configuration of this resource is
present and identical on all cluster nodes. The configuration is not managed by Heartbeat.
You must take care of that yourself.
5.2.2 OCF Resource Agents
All OCF agents are located in /usr/lib/ocf/resource.d/heartbeat/. These
are small programs that have a functionality similar to that of LSB scripts. However,
the configuration is always done with environment variables. All OCF Resource Agents
are required to have at least the actions start, stop, status, monitor, and
meta-data. The meta-data action retrieves information about how to configure
the agent. For example, if you want to know more about the IPaddr agent, use the
command:
/usr/lib/ocf/resource.d/heartbeat/IPaddr meta-data
The output is lengthy information in a simple XML format. You can validate the output
with the ra-api-1.dtd DTD. Basically this XML format has three sections—first
several common descriptions, second all the available parameters, and last the available
actions for this agent.
A typical parameter of a OCF RA as shown with the meta-data command looks like
this:
<!DOCTYPE resource-agent SYSTEM "ra-api-1.dtd">
<resource-agent name="apache">
<!-- Some elements omitted -->
<parameter name="ip" unique="1" required="1">
<longdesc lang="en">
48
Heartbeat
http://www.linux-foundation

Advertisement

Table of Contents
loading

Table of Contents