Hello,

   I solved my problems with the DRBD RA and now the attributes are set
correctly in the CIB and my location rules seem to apply. Now the
problem seems to be that the location rule doesn't do what I expect it
to.

crm configure location ms-drbd0-primary-never-on-synctarget ms-drbd0 \
rule role=Master -inf: defined master-drbd0:1 and master-drbd0:1 lt 50 \
rule role=Master -inf: defined master-drbd0:0 and master-drbd0:0 lt 50

Even when both attributes are set to 100, it refuses to promote one of
the drbd slaves. What am I missing?

        Johan

Transient Attributes:

    <node_state id="00963868-845b-4dc4-927b-ef8b86ea38b8"
uname="node1.domain.be" ha="active" in_ccm="true" crmd="online"
join="member" expected="member" crm-debug-origin="do_update_resource"
shutdown="0">
      <transient_attributes id="00963868-845b-4dc4-927b-ef8b86ea38b8">
        <instance_attributes
id="status-00963868-845b-4dc4-927b-ef8b86ea38b8">
          <nvpair
id="status-00963868-845b-4dc4-927b-ef8b86ea38b8-probe_complete"
name="probe_complete" value="true"/>
          <nvpair
id="status-00963868-845b-4dc4-927b-ef8b86ea38b8-last-failure-master-services" 
name="last-failure-master-services" value="1251985894"/>
          <nvpair
id="status-00963868-845b-4dc4-927b-ef8b86ea38b8-master-drbd0:1"
name="master-drbd0:1" value="100"/>
        </instance_attributes>
      </transient_attributes>
    </node_state>



_______________________________________________
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Reply via email to