On Jan 14, 2008, at 8:17 PM, Thomas Glanzmann wrote:
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
the original stonithd maintainer left some time ago...
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?
clones can only have one "child" resource, so
<clone>
<group>
<primitive id="apache-01-fencing">... </primitive>
<primitive id="apache-02-fencing">... </primitive>
</group>
<clone>
is allowed, and so is
<clone>
<primitive id="apache-01-fencing">... </primitive>
<clone>
<clone>
<primitive id="apache-02-fencing">... </primitive>
<clone>
but not
<clone>
<primitive id="apache-01-fencing">... </primitive>
<primitive id="apache-02-fencing">... </primitive>
<clone>
also, lars is suggesting that apache-01-fencing and apache-02-fencing
could be combined into the same resource.
but not having ever used the external/ipmi agent, i've no idea if this
is feasible or not
does that help?
- 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
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems