On Oct 28, 2008, at 11:38 AM, Adrian Chapela wrote:

only one question. I test my constraints and the first error is:

cibadmin[24943]: 2008/10/28_10:46:21 ERROR: IDREF attribute first references an unknown ID "pingd"

pingd will be the name of a resource, need you configure resources before update a contrainsta referencing these resources ? In the past I could update constraints independently you have configured the resource. Is it a new thing ?

Yes it's new.
The schema wont allow you to add a constraint for a resource that doesn't yet exist (or remove a resource if it is referenced in a constraint).

To update the config with both at the same time, run 'cibadmin -M -- xml-file blah.xml' with something like the following:

<configuration>
<crm_config>
  <cluster_property_set id="cib-bootstrap-options">
<nvpair id="cib-bootstrap-options-stonith" name="stonith-enabled" value="false"/> <nvpair id="cib-bootstrap-options-no-quorum-policy" name="no- quorum-policy" value="ignore"/>
  </cluster_property_set>
</crm_config>
<resources>
<clone id="o2cb-clone">
        <meta_attributes id="o2cb-options">
                <nvpair id="o2cb-unique" name="globally-unique" value="false"/>
                <nvpair id="o2cb-interleave" name="interleave" value="true"/>
        </meta_attributes>
        <primitive id="o2cb" class="lsb" type="o2cb">
                <operations>
                        <op id="o2cb-check" name="monitor" interval="60s" 
timeout="30s"/>
                </operations>
        </primitive>
</clone>
<clone id="dlm-clone">
        <meta_attributes id="dlm-options">
                <nvpair id="dlm-unique" name="globally-unique" value="false"/>
                <nvpair id="dlm-interleave" name="interleave" value="true"/>
        </meta_attributes>
        <primitive id="dlm" class="ocf" provider="pacemaker" type="controld">
                <operations>
                        <op id="dlm-check" name="monitor" interval="60s" 
timeout="30s"/>
                </operations>
        </primitive>
</clone>
<clone id="fs-clone">
  <meta_attributes id="fs-options">
    <nvpair id="fs-unique" name="globally-unique" value="false"/>
    <nvpair id="fs-interleave" name="interleave" value="true"/>
  </meta_attributes>
<primitive id="fs" class="ocf" provider="heartbeat" type="Filesystem">
  <instance_attributes id="fs-attrs">
    <nvpair id="fs-dev" name="device" value="/dev/sdb"/>
    <nvpair id="fs-dir" name="directory" value="/mnt/shared"/>
    <nvpair id="fs-type" name="fstype" value="ocfs2"/>
  </instance_attributes>
    <operations>
      <op id="fs-check" name="monitor" interval="60s" timeout="30s"/>
    </operations>
  </primitive>
</clone>
</resources>
<constraints>
<rsc_order id="ocfs2-order" first="o2cb-clone" then="fs-clone" score="INFINITY"/> <rsc_order id="o2cb-order" first="dlm-clone" then="o2cb-clone" score="INFINITY"/> <rsc_colocation id="ocfs2-coloc" with-rsc="o2cb-clone" rsc="fs- clone" score="INFINITY"/> <rsc_colocation id="o2cb-coloc" with-rsc="dlm-clone" rsc="o2cb- clone" score="INFINITY"/>
</constraints>
</configuration>



_______________________________________________
Pacemaker mailing list
[email protected]
http://list.clusterlabs.org/mailman/listinfo/pacemaker

Reply via email to