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?

[EMAIL PROTECTED]:/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"
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
[email protected]
http://list.clusterlabs.org/mailman/listinfo/pacemaker

Reply via email to