[DRBD-user] drbd + pacemaker failback problems

Пленкин Алексей Plenkin at lankey.ru
Thu Jul 29 14:43:30 CEST 2010

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hi,
 
i am using drbd 8.3.4 , pacemaker 1.0.1 and openais 0.80.3
all works good, but i can't stop fail-back
i try to use resource-stickiness 1000000, but nothing changes and then failed node comes online, resources migrating back
 
thanks
 
 
there is my xml dump
 
<?xml version="1.0" ?>
<cib admin_epoch="0" crm_feature_set="3.0.1" dc-uuid="dom0b" epoch="2005" have-quorum="1" num_updates="1" validate-with="pacemaker-1.0">
  <configuration>
    <crm_config>
      <cluster_property_set id="cib-bootstrap-options">
        <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1.0.2-ec6b0bbee1f3aa72c4c2559997e675db6ab39160"/>
        <nvpair id="cib-bootstrap-options-expected-quorum-votes" name="expected-quorum-votes" value="2"/>
        <nvpair id="cib-bootstrap-options-no-quorum-policy" name="no-quorum-policy" value="ignore"/>
        <nvpair id="cib-bootstrap-options-default-resource-stickiness" name="default-resource-stickiness" value="100000"/>
        <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/>
        <nvpair id="cib-bootstrap-options-last-lrm-refresh" name="last-lrm-refresh" value="1280333787"/>
      </cluster_property_set>
    </crm_config>
    <rsc_defaults/>
    <op_defaults/>
    <nodes>
      <node id="dom0a" type="normal" uname="dom0a">
        <instance_attributes id="nodes-dom0a">
          <nvpair id="standby-dom0a" name="standby" value="off"/>
        </instance_attributes>
      </node>
      <node id="dom0b" type="normal" uname="dom0b">
        <instance_attributes id="nodes-dom0b">
          <nvpair id="standby-dom0b" name="standby" value="off"/>
        </instance_attributes>
      </node>
    </nodes>
    <resources>
      <group id="dns1">
        <primitive class="ocf" id="xen_r4" provider="heartbeat" type="Filesystem">
          <instance_attributes id="xen_r4-instance_attributes">
            <nvpair id="xen_r4-instance_attributes-device" name="device" value="/dev/drbd4"/>
            <nvpair id="xen_r4-instance_attributes-directory" name="directory" value="/xen/r4"/>
          </instance_attributes>
        </primitive>
        <primitive class="ocf" id="dns01" provider="heartbeat" type="Xen">
          <instance_attributes id="dns01-instance_attributes">
            <nvpair id="dns01-instance_attributes-xmfile" name="xmfile" value="/xen/r4/dns1.cfg"/>
          </instance_attributes>
          <operations>
            <op id="dns01-monitor-10s" interval="10s" name="monitor"/>
            <op id="dns01-start-0s" interval="0s" name="start" timeout="50s"/>
            <op id="dns01-stop-0s" interval="0s" name="stop" timeout="300s"/>
          </operations>
        </primitive>
      </group>
      <group id="dns2">
        <meta_attributes id="dns2-meta_attributes">
          <nvpair id="dns2-meta_attributes-target-role" name="target-role" value="Started"/>
        </meta_attributes>
        <primitive class="ocf" id="xen_r5" provider="heartbeat" type="Filesystem">
          <instance_attributes id="xen_r5-instance_attributes">
            <nvpair id="xen_r5-instance_attributes-device" name="device" value="/dev/drbd5"/>
            <nvpair id="xen_r5-instance_attributes-directory" name="directory" value="/xen/r5"/>
          </instance_attributes>
          <meta_attributes id="xen_r5-meta_attributes">
            <nvpair id="xen_r5-meta_attributes-target-role" name="target-role" value="Started"/>
          </meta_attributes>
        </primitive>
        <primitive class="ocf" id="dns02" provider="heartbeat" type="Xen">
          <instance_attributes id="dns02-instance_attributes">
            <nvpair id="dns02-instance_attributes-xmfile" name="xmfile" value="/xen/r5/dns2.cfg"/>
          </instance_attributes>
          <operations>
            <op id="dns02-monitor-10s" interval="10s" name="monitor"/>
            <op id="dns02-start-0s" interval="0s" name="start" timeout="50s"/>
            <op id="dns02-stop-0s" interval="0s" name="stop" timeout="300s"/>
          </operations>
        </primitive>
      </group>
      <group id="monitor1">
        <primitive class="ocf" id="xen_r7" provider="heartbeat" type="Filesystem">
          <instance_attributes id="xen_r7-instance_attributes">
            <nvpair id="xen_r7-instance_attributes-device" name="device" value="/dev/drbd7"/>
            <nvpair id="xen_r7-instance_attributes-directory" name="directory" value="/xen/r7"/>
          </instance_attributes>
        </primitive>
        <primitive class="ocf" id="monitor01" provider="heartbeat" type="Xen">
          <instance_attributes id="monitor01-instance_attributes">
            <nvpair id="monitor01-instance_attributes-xmfile" name="xmfile" value="/xen/r7/monitoring.cfg"/>
          </instance_attributes>
          <operations>
            <op id="monitor01-monitor-10s" interval="10s" name="monitor"/>
            <op id="monitor01-start-0s" interval="0s" name="start" timeout="50s"/>
            <op id="monitor01-stop-0s" interval="0s" name="stop" timeout="300s"/>
          </operations>
        </primitive>
      </group>
      <master id="ms_drbd_r4">
        <meta_attributes id="ms_drbd_r4-meta_attributes">
          <nvpair id="ms_drbd_r4-meta_attributes-master-max" name="master-max" value="1"/>
          <nvpair id="ms_drbd_r4-meta_attributes-master-node-max" name="master-node-max" value="1"/>
          <nvpair id="ms_drbd_r4-meta_attributes-clone-max" name="clone-max" value="2"/>
          <nvpair id="ms_drbd_r4-meta_attributes-clone-node-max" name="clone-node-max" value="1"/>
          <nvpair id="ms_drbd_r4-meta_attributes-notify" name="notify" value="true"/>
        </meta_attributes>
        <primitive class="ocf" id="drbd_r4" provider="heartbeat" type="drbd">
          <instance_attributes id="drbd_r4-instance_attributes">
            <nvpair id="drbd_r4-instance_attributes-drbd_resource" name="drbd_resource" value="r4"/>
          </instance_attributes>
          <operations>
            <op id="drbd_r4-monitor-15s" interval="15s" name="monitor"/>
          </operations>
        </primitive>
      </master>
      <master id="ms_drbd_r5">
        <meta_attributes id="ms_drbd_r5-meta_attributes">
          <nvpair id="ms_drbd_r5-meta_attributes-master-max" name="master-max" value="1"/>
          <nvpair id="ms_drbd_r5-meta_attributes-master-node-max" name="master-node-max" value="1"/>
          <nvpair id="ms_drbd_r5-meta_attributes-clone-max" name="clone-max" value="2"/>
          <nvpair id="ms_drbd_r5-meta_attributes-clone-node-max" name="clone-node-max" value="1"/>
          <nvpair id="ms_drbd_r5-meta_attributes-notify" name="notify" value="true"/>
          <nvpair id="ms_drbd_r5-meta_attributes-target-role" name="target-role" value="Stopped"/>
        </meta_attributes>
        <primitive class="ocf" id="drbd_r5" provider="heartbeat" type="drbd">
          <instance_attributes id="drbd_r5-instance_attributes">
            <nvpair id="drbd_r5-instance_attributes-drbd_resource" name="drbd_resource" value="r5"/>
          </instance_attributes>
          <operations>
            <op id="drbd_r5-monitor-15s" interval="15s" name="monitor"/>
          </operations>
          <meta_attributes id="drbd_r5-meta_attributes">
            <nvpair id="drbd_r5-meta_attributes-target-role" name="target-role" value="Started"/>
          </meta_attributes>
        </primitive>
      </master>
      <master id="ms_drbd_r7">
        <meta_attributes id="ms_drbd_r7-meta_attributes">
          <nvpair id="ms_drbd_r7-meta_attributes-master-max" name="master-max" value="1"/>
          <nvpair id="ms_drbd_r7-meta_attributes-master-node-max" name="master-node-max" value="1"/>
          <nvpair id="ms_drbd_r7-meta_attributes-clone-max" name="clone-max" value="2"/>
          <nvpair id="ms_drbd_r7-meta_attributes-clone-node-max" name="clone-node-max" value="1"/>
          <nvpair id="ms_drbd_r7-meta_attributes-notify" name="notify" value="true"/>
        </meta_attributes>
        <primitive class="ocf" id="drbd_r7" provider="heartbeat" type="drbd">
          <instance_attributes id="drbd_r7-instance_attributes">
            <nvpair id="drbd_r7-instance_attributes-drbd_resource" name="drbd_resource" value="r7"/>
          </instance_attributes>
          <operations>
            <op id="drbd_r7-monitor-15s" interval="15s" name="monitor"/>
          </operations>
        </primitive>
      </master>
    </resources>
    <constraints>
      <rsc_location id="cli-prefer-dns1" rsc="dns1">
        <rule boolean-op="and" id="cli-prefer-rule-dns1" score="INFINITY">
          <expression attribute="#uname" id="cli-prefer-expr-dns1" operation="eq" type="string" value="dom0a"/>
        </rule>
      </rsc_location>
      <rsc_location id="cli-prefer-monitor1" rsc="monitor1">
        <rule boolean-op="and" id="cli-prefer-rule-monitor1" score="INFINITY">
          <expression attribute="#uname" id="cli-prefer-expr-monitor1" operation="eq" type="string" value="dom0a"/>
        </rule>
      </rsc_location>
      <rsc_location id="cli-standby-dns2" rsc="dns2">
        <rule boolean-op="and" id="cli-standby-rule-dns2" score="-INFINITY">
          <expression attribute="#uname" id="cli-standby-expr-dns2" operation="eq" type="string" value="dom0a"/>
        </rule>
      </rsc_location>
      <rsc_colocation id="dns1_on_drbd" rsc="dns1" score="INFINITY" with-rsc="ms_drbd_r4" with-rsc-role="Master"/>
      <rsc_colocation id="dns2_on_drbd" rsc="dns2" score="INFINITY" with-rsc="ms_drbd_r5" with-rsc-role="Master"/>
      <rsc_colocation id="monitor1_on_drbd" rsc="monitor1" score="INFINITY" with-rsc="ms_drbd_r7" with-rsc-role="Master"/>
      <rsc_order first="ms_drbd_r4" first-action="promote" id="dns1_after_drbd" score="INFINITY" then="dns1" then-action="start"/>
      <rsc_order first="ms_drbd_r5" first-action="promote" id="dns2_after_drbd" score="INFINITY" then="dns2" then-action="start"/>
      <rsc_order first="ms_drbd_r7" first-action="promote" id="monitor1_after_drbd" score="INFINITY" then="monitor1" then-action="start"/>
    </constraints>
  </configuration>
</cib>
 
 
 



More information about the drbd-user mailing list