[Pacemaker] how to setup stonith clone resource ?

Andrew Beekhof beekhof at gmail.com
Thu Sep 25 05:52:07 EDT 2008


On Sep 25, 2008, at 10:49 AM, Bruno Voigt wrote:

> I tried to setup a stonith resource, but it seems to me
> that the class "stonith" is not accepted.
>
> By changing it to class "ocf" for testing the xml is accepted.
> What is the right way to do it?
>
> root at xen20a:/etc/xen# cibadmin -V -C -o resources -x ./stonith- 
> xen20a.xml
> cibadmin[23783]: 2008/09/25_10:46:08 info: main: Starting mainloop
> cibadmin[23783]: 2008/09/25_10:46:09 WARN: cibadmin_op_callback: Call
> cib_create failed (-47): Update does not conform to the configured
> schema/DTD
> Call cib_create failed (-47): Update does not conform to the  
> configured
> schema/DTD
> <null>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <clone id="clone-stonith-xen20a">
> <primitive id="stonith-xen20a" provider="heartbeat" class="stonith"

stonith resources have no provider.  everything else looks fine.

>
> type="external/riloe">
>  <operations>
>    <op name="start"   interval="0"   id="stonith-xen20a-start"
> timeout="60s" start-delay="0"/>
>    <op name="stop"    interval="0"   id="stonith-xen20a-stop"
> timeout="300s"/>
>    <op name="monitor" interval="30s" id="stonith-xen20a-monitor"
> timeout="20s" requires="nothing"/>
>  </operations>
>  <instance_attributes id="stonith-xen20a-ia">
>    <nvpair id="stonith-xen20a-ia01" name="hostlist"  
> value="xen20a.fqdn"/>
>    <nvpair id="stonith-xen20a-ia02" name="RI_HOST"  
> value="xen20a.fqdn"/>
>    <nvpair id="stonith-xen20a-ia03" name="RI_HOSTRI"
> value="xen20a.ilo.fqdn"/>
>    <nvpair id="stonith-xen20a-ia04" name="RI_LOGIN" value="login"/>
>    <nvpair id="stonith-xen20a-ia05" name="RI_PASSWORD"  
> value="password"/>
>    <nvpair id="stonith-xen20a-ia06" name="ilo_powerdown_method"
> value="power"/>
>    <nvpair id="stonith-xen20a-ia07" name="ilo_can_reset" value="1"/>
>    <nvpair id="stonith-xen20a-ia08" name="ilo_protocol" value="2.0"/>
>  </instance_attributes>
> </primitive>
> </clone>
>
> TIA,
> Bruno
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at clusterlabs.org
> http://list.clusterlabs.org/mailman/listinfo/pacemaker





More information about the Pacemaker mailing list