Novell SUSE LINUX ENTERPRISE SERVER 10 SP2 HEARTBEAT Manual page 58

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

Advertisement

<primitive id="filesystem_resource" class="ocf" provider="heartbeat"
type="Filesystem">
<instance_attributes id="ia-filesystem_1">
<attributes>
</attributes>
</instance_attributes>
</primitive>
Configuring drbd
Before starting with the drbd Heartbeat configuration, set up a drbd device manually.
Basically this is configuring drbd in /etc/drbd.conf and letting it synchronize.
The exact procedure for configuring drbd is described in the Storage Administration
Guide. For now, assume that you configured a resource r0 that may be accessed at the
device /dev/drbd0 on both of your cluster nodes.
The drbd resource is an OCF master slave resource. This can be found in the description
of the metadata of the drbd RA. However, more important is that there are the actions
promote and demote in the actions section of the metadata. These are mandatory
for master slave resources and commonly not available to other resources.
For Heartbeat, master slave resources may have multiple masters on different nodes.
It is even possible to have a master and slave on the same node. Therefore, configure
this resource in a way that there is exactly one master and one slave, each running on
different nodes. Do this with the meta attributes of the master_slave resource.
Master slave resources are a special kind of clone resources in Heartbeat. Every master
and every slave counts as a clone.
<master_slave id="drbd_resource" ordered="false">
<meta_attributes>
<attributes>
</attributes>
</meta_attributes>
<primitive id="drbd_r0" class="ocf" provider="heartbeat" type="drbd">
<instance_attributes id="ia-drbd_1">
50
Heartbeat
<nvpair id="filesystem-nv-1" name="device" value="/dev/drbd0"/>
<nvpair id="filesystem-nv-2" name="directory" value="/srv/failover"/>
<nvpair id="filesystem-nv-3" name="fstype" value="reiserfs"/>
<nvpair id="drbd-nv-1" name="clone_max" value="2"/>
<nvpair id="drbd-nv-2" name="clone_node_max" value="1"/>
<nvpair id="drbd-nv-3" name="master_max" value="1"/>
<nvpair id="drbd-nv-4" name="master_node_max" value="1"/>
<nvpair id="drbd-nv-5" name="notify" value="yes"/>
<attributes>

Advertisement

Table of Contents
loading

Table of Contents