I run the attached cib.xml.
It seems that this configuration works well (but I need more tests)
If there is any strange elements, please let me know.
Thanks,
Junko
> Sorry for all of my mistakes...
> I have a wrong /etc/hosts.
> It works well for now.
>
> By the way, Could I config this plugin on two Dom0 and two DomU?
>
> ex.) domU-1 on Dom0-1, and domU-2 o Dom0-2
>
> Thanks,
> Junko
>
>
>
> > Hi,
> >
> > My operation is here;
> >
> > # ssh x3650g
> >
> > # export dom0="x3650g"
> >
> > # export hostlist="dom-d1:/etc/xen/dom-d1 dom-d2:/etc/xen/dom-d2"
> >
> > # /usr/lib64/stonith/plugins/external/xen0 on dom-d1
> >
> > # echo $?
> >
> > 0
> >
> > dom-d1 was created well.
> >
> > # /usr/lib64/stonith/plugins/external/xen0 reset dom-d1
> >
> > # echo $?
> >
> > # 1
> >
> > dom-d1 was destroyed but return code was not zero,
> > so Heartbeat handled that this stonith operation failed.
> >
> > When I edit the plugin like this, it work well.
> >
> > --- xen0.org 2009-03-06 17:22:44.000000000 +0900
> > +++ xen0 2009-03-06 17:22:52.000000000 +0900
> > @@ -140,7 +140,7 @@ reset)
> > exit 0
> > fi
> >
> > - exit 1
> > + exit 0
> > ;;
> > status)
> > CheckHostList
> >
> >
> > Is this some timing issue?
> >
> > Thanks,
> > Junko
> >
> >
> > _______________________________________________________
> > Linux-HA-Dev: [email protected]
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> > Home Page: http://linux-ha.org/
>
> _______________________________________________________
> Linux-HA-Dev: [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
<cib admin_epoch="0" epoch="0" num_updates="0">
<configuration>
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
<attributes>
<nvpair id="cib-bootstrap-options-no-quorum-policy" name="no-quorum-policy" value="ignore"/>
<nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="true"/>
<nvpair id="cib-bootstrap-options-default-resource-stickiness" name="default-resource-stickiness" value="INFINITY"/>
<nvpair id="cib-bootstrap-options-default-resource-failure-stickiness" name="default-resource-failure-stickiness" value="-INFINITY"/>
<nvpair id="cib-bootstrap-options-default-action-timeout" name="default-action-timeout" value="120"/>
<nvpair id="cib-bootstrap-options-startup-fencing" name="startup-fencing" value="true"/>
</attributes>
</cluster_property_set>
</crm_config>
<nodes/>
<resources>
<group id="grpDummy">
<primitive id="dummy" class="ocf" type="Dummy" provider="heartbeat">
<operations>
<op id="dummy-start" name="start" timeout="30s" on_fail="restart"/>
<op id="dummy-monitor" name="monitor" timeout="30s" on_fail="restart" interval="10s"/>
<op id="dummy-stop" name="stop" timeout="30s" on_fail="fence"/>
</operations>
</primitive>
</group>
<primitive id="child_DoFencing-1" class="stonith" type="external/xen0" provider="heartbeat">
<operations>
<op id="fence_start-1" name="start" timeout="30s" on_fail="restart"/>
<op id="fence_monitor-1" name="monitor" timeout="30s" on_fail="restart" interval="10s"/>
<op id="fence_stop-1" name="stop" timeout="30s" on_fail="block"/>
</operations>
<instance_attributes id="fence_inst_attr-1">
<attributes>
<nvpair id="xen-dom0-1" name="dom0" value="x3650g"/>
<nvpair id="xen_hostlist-1" name="hostlist" value="dom-d1:/etc/xen/dom-d1"/>
</attributes>
</instance_attributes>
</primitive>
<primitive id="child_DoFencing-2" class="stonith" type="external/xen0" provider="heartbeat">
<operations>
<op id="fence_start-2" name="start" timeout="30s" on_fail="restart"/>
<op id="fence_monitor-2" name="monitor" timeout="30s" on_fail="restart" interval="10s"/>
<op id="fence_stop-2" name="stop" timeout="30s" on_fail="block"/>
</operations>
<instance_attributes id="fence_inst_attr-2">
<attributes>
<nvpair id="xen-dom0-2" name="dom0" value="x3650h"/>
<nvpair id="xen_hostlist-2" name="hostlist" value="dom-d2:/etc/xen/dom-d2"/>
</attributes>
</instance_attributes>
</primitive>
</resources>
<constraints>
<rsc_location id="grpDummy-node1" rsc="grpDummy">
<rule id="grpDummy-node1-rule:1" score="200">
<expression attribute="#uname" id="grpDummy-node1-rule:1-expression:1" operation="eq" value="dom-d1"/>
</rule>
</rsc_location>
<rsc_location id="grpDummy-node2" rsc="grpDummy">
<rule id="grpDummy-node2-rule:1" score="100">
<expression attribute="#uname" id="grpDummy-node2-rule:1-expression:1" operation="eq" value="dom-d2"/>
</rule>
</rsc_location>
<rsc_location id="prmStonith1" rsc="child_DoFencing-1">
<rule id="prmStonith-node1-rule:1" score="200">
<expression attribute="#uname" id="prmStonith-node1-rule:1-expression:1" operation="eq" value="dom-d2"/>
</rule>
</rsc_location>
<rsc_location id="prmStonith2" rsc="child_DoFencing-2">
<rule id="prmStonith-node2-rule:1" score="200">
<expression attribute="#uname" id="prmStonith-node2-rule:1-expression:1" operation="eq" value="dom-d1"/>
</rule>
</rsc_location>
</constraints>
</configuration>
<status/>
</cib>
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/