[Linux-HA] stonith with crm
Peter Kruse
pk at q-leap.com
Wed Sep 28 06:03:57 MDT 2005
Hello all,
How would I configure the stonith-devices when every node in the cluster
has it's own poweswitch? When both nodes in a cluster are connected
to the same powerswitch this fragment works fine:
<resources>
<clone id="DoFencing">
<instance_attributes>
<attributes>
<nvpair id="DoFencing-1" name="clone_max" value="2"/>
<nvpair id="DoFencing-2" name="clone_node_max" value="1"/>
</attributes>
</instance_attributes>
<primitive id="child_DoFencing" class="stonith"
type="apcmastersnmp">
<operations>
<op id="DoFencing-monitor-1" name="monitor" interval="20s"
timeout="40s" prereq="nothing"/>
<op id="DoFencing-start-2" name="start" timeout="20s"
prereq="nothing"/>
</operations>
<instance_attributes>
<attributes>
<nvpair id="child_DoFencing-1" name="ipaddr" value="apc"/>
<nvpair id="child_DoFencing-2" name="port" value="161"/>
<nvpair id="child_DoFencing-3" name="community"
value="community"/>
</attributes>
</instance_attributes>
</primitive>
</clone>
</resources>
If I understand correctly a "clone" will use the same configuration on
every node. So what do I have to use if I need a different
configuration for each node so that
nodeA uses apcA to stonith nodeB
and
nodeB uses apcB to stonith nodeA
?
Peter
More information about the Linux-HA
mailing list