Hi, 

  

I have configured DRBD like explained at 
http://clusterlabs.org/wiki/DRBD_HowTo_1.0 . 

DRBD is working fine! No problem to migrate the master to another node … ! 

  

But I have noticed that the monitor and stop action of the ocf DRBD script 
(shipped with my pacemaker 1.0.2) fails and therefore heartbeat cannot properly 
shutdown. 

After some investigation I saw that the $RESOURCE variable in the ocf DRBD 
script cannot be read ($RESOURCE is empty). That is the reason of failure of 
both actions. 

  

Did I do something wrong or is this an error in the script? 

You can check my resource configuration below: 

  

Thanks, 

Koen 

  

    <resources> 

      <master id="ms-drbd1"> 

        <meta_attributes id="ms-drbd1-meta_attributes"> 

          <nvpair id="ms-drbd1-meta_attributes-clone-max" name="clone-max" 
value="2"/> 

          <nvpair id="ms-drbd1-meta_attributes-notify" name="notify" 
value="true"/> 

          <nvpair id="ms-drbd1-meta_attributes-globally-unique" 
name="globally-unique" value="false"/> 

          <nvpair id="ms-drbd1-meta_attributes-target-role" name="target-role" 
value="Started"/> 

        </meta_attributes> 

        <primitive class="ocf" id="drbd1" provider="heartbeat" type="drbd"> 

          <instance_attributes id="drbd1-instance_attributes"> 

            <nvpair id="drbd1-instance_attributes-drbd_resource" 
name="drbd_resource" value="r0"/> 

          </instance_attributes> 

          <operations> 

            <op id="drbd1-monitor-59s" interval="59s" name="monitor" 
role="Master" timeout="30s"/> 

            <op id="drbd1-monitor-60s" interval="60s" name="monitor" 
role="Slave" timeout="30s"/> 

          </operations> 

        </primitive> 

      </master> 

    </resources> 

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to