Hello,
the previous extern/ipmi configuration worked, but I don't know why.
However here is one that seems to be follow standard practice:
<resources>
<primitive id="postgres-01-fencing" class="stonith"
type="external/ipmi" provider="heartbeat">
<operations>
<op id="postgres-01-fencing-monitor" name="monitor"
interval="60s" timeout="20s" prereq="nothing"/>
<op id="postgres-01-fencing-start" name="start"
timeout="20s" prereq="nothing"/>
</operations>
<instance_attributes id="postgres-01-fencing-ia">
<attributes>
<nvpair id="postgres-01-fencing-hostname"
name="hostname" value="postgres-01"/>
<nvpair id="postgres-01-fencing-ipaddr"
name="ipaddr" value="172.18.0.121"/>
<nvpair id="postgres-01-fencing-userid"
name="userid" value="Administrator"/>
<nvpair id="postgres-01-fencing-passwd"
name="passwd" value="password"/>
</attributes>
</instance_attributes>
</primitive>
<primitive id="postgres-02-fencing" class="stonith"
type="external/ipmi" provider="heartbeat">
<operations>
<op id="postgres-02-fencing-monitor" name="monitor"
interval="60s" timeout="20s" prereq="nothing"/>
<op id="postgres-02-fencing-start" name="start"
timeout="20s" prereq="nothing"/>
</operations>
<instance_attributes id="postgres-02-fencing-ia">
<attributes>
<nvpair id="postgres-02-fencing-hostname"
name="hostname" value="postgres-02"/>
<nvpair id="postgres-02-fencing-ipaddr"
name="ipaddr" value="172.18.0.122"/>
<nvpair id="postgres-02-fencing-userid"
name="userid" value="Administrator"/>
<nvpair id="postgres-02-fencing-passwd"
name="passwd" value="password"/>
</attributes>
</instance_attributes>
</primitive>
</resources>
<constraints>
<rsc_location id="postgres-01-fencing-placement"
rsc="postgres-01-fencing">
<rule id="postgres-01-fencing-placement-rule-1"
score="-INFINITY">
<expression id="postgres-01-fencing-placement-exp-02"
value="postgres-02" attribute="#uname" operation="ne"/>
</rule>
</rsc_location>
<rsc_location id="postgres-02-fencing-placement"
rsc="postgres-02-fencing">
<rule id="postgres-02-fencing-placement-rule-1"
score="-INFINITY">
<expression id="postgres-02-fencing-placement-exp-02"
value="postgres-01" attribute="#uname" operation="ne"/>
</rule>
</rsc_location>
</constraints>
============
Last updated: Wed Jan 16 14:35:50 2008
Current DC: postgres-02 (211523e0-a549-49b7-bf29-f646915698ef)
2 Nodes configured.
4 Resources configured.
============
Node: postgres-02 (211523e0-a549-49b7-bf29-f646915698ef): online
Node: postgres-01 (24a3fa1b-6b62-470c-a6e1-4c1598875018): online
Full list of resources:
Master/Slave Set: ms-drbd0
drbd0:0 (heartbeat::ocf:drbd): Master postgres-02
drbd0:1 (heartbeat::ocf:drbd): Started postgres-01
Resource Group: postgres-cluster
fs0 (heartbeat::ocf:Filesystem): Started postgres-02
ip0 (heartbeat::ocf:IPaddr2): Started postgres-02
pgsql0 (heartbeat::ocf:pgsql): Started postgres-02
postgres-01-fencing (stonith:external/ipmi): Started postgres-02
postgres-02-fencing (stonith:external/ipmi): Started postgres-01
Thomas
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems