Lars,
> Yes. You have more than one primitive within the clone, which doesn't
> work.
> Why do you do that?
Because there is no documentation, the maintainer doesn't answer to e-mail and
this was the only example that I found in the archives. And it seemed to work.
But I guess I was just lucky.
> You could either clone a group, or just not clone the two; it's not
> needed.
So could you please say that in plain xml? I still don't get it. Is that
what you have in mind?
- Don't use clone or group
- One primitive per ipmi device
- Location constraints
<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>
<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>
<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>
<constraints>
<rsc_location id="postgres-01-fencing-placement"
rsc="postgres-01-fencing">
<rule id="postgres-01-fencing-placement-1" score="INFINITY">
<expression attribute="#uname" operation="eq"
value="postgres-02"/>
</rule>
</rsc_location>
<rsc_location id="postgres-02-fencing-placement"
rsc="postgres-02-fencing">
<rule id="postgres-02-fencing-placement-2" score="INFINITY">
<expression attribute="#uname" operation="eq"
value="postgres-01"/>
</rule>
</rsc_location>
</constraints>
Thomas
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems