Marian Marinov escribió:
On Monday 20 October 2008 17:50:54 Michael Schwartzkopff wrote:
Am Montag, 20. Oktober 2008 16:22 schrieb Marian Marinov:
Hello,
I'm building a cluster which is using drbd as primary/primary with ocfs2.
Is there any tutorial on configuring HeartbeatV2 with this setup?
Regards
Marian Marinov
You will need DRBD version 8.
I have setuped the DRBD with OCFS2 already :)
I simply want to setup the Heartbeat configuration for those.
I'm still reading it, but what I was asking was: Is there a tutorial for
Heartbeat for such setup?
Cause most of the tutorials are for Primary/Secondary which is not what I want
to accomplish.
This tutorials aren't OK too.
You need to configure a Master/Slave. In the tutorials you have:
<master_slave id="ms-drbd0">
<meta_attributes id="ma-ms-drbd0">
<attributes>
<nvpair id="ma-ms-drbd0-1" name="clone_max" value="2"/>
<nvpair id="ma-ms-drbd0-2" name="clone_node_max" value="1"/>
<nvpair id="ma-ms-drbd0-3" name="master_max" value="1"/>
<nvpair id="ma-ms-drbd0-4" name="master_node_max" value="1"/>
<nvpair id="ma-ms-drbd0-5" name="notify" value="yes"/>
<nvpair id="ma-ms-drbd0-6" name="globally_unique" value="false"/>
<nvpair id="ma-ms-drbd0-7" name="target_role" value="stopped"/>
</attributes>
</meta_attributes>
<primitive id="drbd0" class="ocf" provider="heartbeat" type="drbd">
<instance_attributes id="ia-drbd0">
<attributes>
<nvpair id="ia-drbd0-1" name="drbd_resource" value="drbd0"/>
</attributes>
</instance_attributes>
<operations>
<op id="op-drbd0-1" name="monitor" interval="59s" timeout="10s"
role="Master"/>
<op id="op-drbd0-2" name="monitor" interval="60s" timeout="10s"
role="Slave"/>
</operations>
</primitive>
</master_slave>
You need to change this lines:
<nvpair id="ma-ms-drbd0-3" name="master_max" value="2"/>
With this the cluster is allowed to has 2 master at max (If you need
more, you should increase this number).
With this you should have a cluster with two nodes as a master DRBD.
Regards
Marian
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems