Manual Configuration Of A Resource - Novell SUSE LINUX ENTERPRISE SERVER 10 SP2 HEARTBEAT Manual

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

Advertisement

3 In the new window, select ipaddress1 as Resource to migrate and select
node1 from the To Node drop-down list.
3.2 Manual Configuration of a
Resource
Resources are any type of service that a computer provides. Resources are known to
Heartbeat when they may be controlled by RAs (Resource Agents), which are LSB
scripts, OCF scripts, or legacy Heartbeat 1 resources. All resources are configured in
the CIB (Cluster Information Base) in the resources section. For an overview of
available resources, look at
To add a resource to the current configuration, first write an XML file with the specific
date for this resource. For example, to add the IP address 10.10.0.1 to your cluster,
use the following example:
<primitive id="ip_1"
class="ocf"
type="IPaddr"
provider="heartbeat"
<instance_attributes>
<attributes>
<nvpair name="ip" value="10.10.0.1" />
</attributes>
</instance_attributes>
</primitive>
The value of the id attribute of the primitive tag may be chosen freely. Like
all IDs in XML, it must be unique and should follow a system. For example, ip_1
may be read as the first ip primitive.
The three attributes class, type, and provider determine the exact script
that is used for this primitive. In this example, the script is at /usr/lib/ocf/
resource.d/heartbeat/IPaddr.
All the attributes for a resource agent are entered in a list of nvpair tags. This
should not be confused with the XML attributes that are added, for example, to
the primitive tag.
Appendix A, HB OCF Agents
>
(page 109).
Setting Up a Simple Resource
27

Advertisement

Table of Contents
loading

Table of Contents