<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;"><div>Thanks for the reply</div><div><br></div><div>I'm just doing some basic testing and not using stonith, but I understand why this is important. </div><div><br></div><div>I rebuilt my setup from scratch and it worked the 2nd time. Not sure what I got wrong, but I now have the basics working.</div><div><br></div><div><span><pre>-- <br></pre><div>best regards</div><div><br></div><div><br></div><div>Graham</div></span></div><div><br></div><div>-----Original Message-----</div><div><b>From</b>: digimer &lt;<a href="mailto:digimer%20%3clists@alteeve.ca%3e">lists@alteeve.ca</a>&gt;</div><div><b>To</b>: Graham Smith &lt;<a href="mailto:Graham%20Smith%20%3cgps1539@gmail.com%3e">gps1539@gmail.com</a>&gt;, <a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a></div><div><b>Subject</b>: Re: [DRBD-user] I need a little help with drbd and pacemaker - node never promoted</div><div><b>Date</b>: Mon, 15 Apr 2019 11:24:36 -0400</div><div><br></div><!-- text/html -->
  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  
  
    <p>For one; Enable and test stonith in Pacemaker. When a node can be
      failed and fenced, then configure drbd to use fencing:
      resource-and-stonith; and set the {un,}fence-handler to
      crm-{un,}fence-peer.sh.</p>
    <p>digimer<br>
    </p>
    <div class="moz-cite-prefix">On 2019-04-12 11:51 p.m., Graham Smith
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:8e0fbbfaf29f9ace459c2373b31a0fc0ec27d82f.camel@gmail.com" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div>Hi</div>
      <div><br>
      </div>
      <div>1st time user, trying to set up drbd with pacemaker for a
        potental NFS server project. I've tried following 3 guides and I
        can not get drbd and pacemaker to work together. And guidance is
        gratefully received.</div>
      <div><br>
      </div>
      <div>Centos 7.5 on 2 nodes</div>
      <div>uname -a</div>
      <div>Linux node-1 3.10.0-957.10.1.el7.x86_64 #1 SMP Mon Mar 18
        15:06:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux</div>
      <div><br>
      </div>
      <div>I have drbd installed and initially it is syncing a disk
        between 2 nodes (prior to pcs cluster)</div>
      <div>drbdadm --version</div>
      <div>DRBDADM_BUILDTAG=GIT-hash:\
        d458166f5f4740625e5ff215f62366aca60ca37b\ build\ by\
        mockbuild@\,\ 2018-11-03\ 14:14:44</div>
      <div>DRBDADM_API_VERSION=2</div>
      <div>DRBD_KERNEL_VERSION_CODE=0x090010</div>
      <div>DRBD_KERNEL_VERSION=9.0.16</div>
      <div>DRBDADM_VERSION_CODE=0x090600</div>
      <div>DRBDADM_VERSION=9.6.0</div>
      <div><br>
      </div>
      <div>drbdadm status</div>
      <div>drbd0 role:Primary</div>
      <div>&nbsp; disk:UpToDate</div>
      <div>&nbsp; node-2 role:Secondary</div>
      <div>&nbsp;&nbsp;&nbsp;&nbsp;peer-disk:UpToDate</div>
      <div><br>
      </div>
      <div>So far so good</div>
      <div><br>
      </div>
      <div>cat /proc/drbd&nbsp;</div>
      <div>version: 9.0.16-1 (api:2/proto:86-114)</div>
      <div>GIT-hash: ab9777dfeaf9d619acc9a5201bfcae8103e9529c build by
        mockbuild@, 2018-11-03 13:54:24</div>
      <div>Transports (api:16): tcp (9.0.16-1)</div>
      <div><br>
      </div>
      <div># the output is different than I see in online guides (maybe
        different in v9?). <a href="https://clusterlabs.org/pacemaker/doc/en-US/Pacemaker/2.0/html/Clusters_from_Scratch/_initialize_drbd.html" moz-do-not-send="true">https://clusterlabs.org/pacemaker/doc/en-US/Pacemaker/2.0/html/Clusters_from_Scratch/_initialize_drbd.html</a></div>
      <div>---------</div>
      <div>
        <pre>[</pre><a href="mailto:root@pcmk-" moz-do-not-send="true"><pre>root@pcmk-</pre></a><pre>1 ~]# cat /proc/drbd</pre><pre>version: 8.4.11-1 (api:1/proto:86-101)</pre><pre>GIT-hash: 66145a308421e9c124ec391a7848ac20203bb03c build by mockbuild@, 2018-04-26 12:10:42</pre><pre><br></pre><pre> 1: cs:WFConnection ro:Secondary/Unknown ds:Inconsistent/DUnknown C r----s</pre><pre>    ns:0 nr:0 dw:0 dr:0 al:8 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:524236</pre>
        <pre>--------</pre>
      </div>
      <div><br>
      </div>
      <div>When I create a PCS cluster and add drbd as a resource, I do
        not get a node to become a master</div>
      <div><br>
      </div>
      <div>pcs -f drbd_cfg resource create NFSData ocf:linbit:drbd
        drbd_resource=drbd0 op monitor interval=60</div>
      <div>pcs -f drbd_cfg resource master NFSDataClone NFSData
        master-max=1 master-node-max=1 clone-max=2 clone-node-max=1
        notify=true</div>
      <div><br>
      </div>
      <div>pcs status</div>
      <div>Cluster name: mycluster</div>
      <div>Stack: corosync</div>
      <div>Current DC: node-1 (version 1.1.19-8.el7_6.4-c3c624ea3d) -
        partition with quorum</div>
      <div>Last updated: Fri Apr 12 23:43:36 2019</div>
      <div>Last change: Fri Apr 12 23:43:32 2019 by root via cibadmin on
        node-1</div>
      <div><br>
      </div>
      <div>2 nodes configured</div>
      <div>2 resources configured</div>
      <div><br>
      </div>
      <div>Online: [ node-1 node-2 ]</div>
      <div><br>
      </div>
      <div>Full list of resources:</div>
      <div><br>
      </div>
      <div>&nbsp;Master/Slave Set: NFSDataClone [NFSData]</div>
      <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Slaves: [ node-1 node-2 ]</div>
      <div><br>
      </div>
      <div>Daemon Status:</div>
      <div>&nbsp; corosync: active/disabled</div>
      <div>&nbsp; pacemaker: active/disabled</div>
      <div>&nbsp; pcsd: active/enabled</div>
      <div><br>
      </div>
      <div>Here is the output of pcs config</div>
      <div><br>
      </div>
      <div>pcs config</div>
      <div>Cluster Name: mycluster</div>
      <div>Corosync Nodes:</div>
      <div>&nbsp;node-1 node-2</div>
      <div>Pacemaker Nodes:</div>
      <div>&nbsp;node-1 node-2</div>
      <div><br>
      </div>
      <div>Resources:</div>
      <div>&nbsp;Master: NFSDataClone</div>
      <div>&nbsp; Meta Attrs: master-node-max=1 clone-max=2 notify=true
        master-max=1 clone-node-max=1&nbsp;</div>
      <div>&nbsp; Resource: NFSData (class=ocf provider=linbit type=drbd)</div>
      <div>&nbsp;&nbsp;&nbsp;Attributes: drbd_resource=drbd0</div>
      <div>&nbsp;&nbsp;&nbsp;Operations: demote interval=0s timeout=90
        (NFSData-demote-interval-0s)</div>
      <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;monitor interval=60s
        (NFSData-monitor-interval-60s)</div>
      <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;notify interval=0s timeout=90
        (NFSData-notify-interval-0s)</div>
      <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;promote interval=0s timeout=90
        (NFSData-promote-interval-0s)</div>
      <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reload interval=0s timeout=30
        (NFSData-reload-interval-0s)</div>
      <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;start interval=0s timeout=240
        (NFSData-start-interval-0s)</div>
      <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stop interval=0s timeout=100
        (NFSData-stop-interval-0s)</div>
      <div><br>
      </div>
      <div>Stonith Devices:</div>
      <div>Fencing Levels:</div>
      <div><br>
      </div>
      <div>Location Constraints:</div>
      <div>Ordering Constraints:</div>
      <div>Colocation Constraints:</div>
      <div>Ticket Constraints:</div>
      <div><br>
      </div>
      <div>Alerts:</div>
      <div>&nbsp;No alerts defined</div>
      <div><br>
      </div>
      <div>Resources Defaults:</div>
      <div>&nbsp;resource-stickiness: 100</div>
      <div>Operations Defaults:</div>
      <div>&nbsp;No defaults set</div>
      <div><br>
      </div>
      <div>Cluster Properties:</div>
      <div>&nbsp;cluster-infrastructure: corosync</div>
      <div>&nbsp;cluster-name: mycluster</div>
      <div>&nbsp;dc-version: 1.1.19-8.el7_6.4-c3c624ea3d</div>
      <div>&nbsp;default-resource-stickiness: INFINITY</div>
      <div>&nbsp;have-watchdog: false</div>
      <div>&nbsp;no-quorum-policy: ignore</div>
      <div>&nbsp;stonith-enabled: false</div>
      <div><br>
      </div>
      <div>Quorum:</div>
      <div>&nbsp; Options:</div>
      <div><br>
      </div>
      <div>------</div>
      <div>After creating the PCS cluster drbd now has no primary</div>
      <div>drbdadm status</div>
      <div>drbd0 role:Secondary</div>
      <div>&nbsp; disk:UpToDate</div>
      <div>&nbsp; node-2 role:Secondary</div>
      <div>&nbsp;&nbsp;&nbsp;&nbsp;peer-disk:UpToDate</div>
      <div><br>
      </div>
      <div>--------</div>
      <div><br>
      </div>
      <div>I'm stumped on how to get this to work, are there better
        guides, is this a know bug. Thanks in advance for any guidance.</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><span>
          <pre>-- </pre>
          <div><br>
          </div>
          <div>best regards</div>
          <div><br>
          </div>
          <div>Graham</div>
        </span></div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre>_______________________________________________</pre><pre>drbd-user mailing list</pre><a class="moz-txt-link-abbreviated" href="mailto:drbd-user@lists.linbit.com"><pre>drbd-user@lists.linbit.com</pre></a><pre><br></pre><a class="moz-txt-link-freetext" href="http://lists.linbit.com/mailman/listinfo/drbd-user"><pre>http://lists.linbit.com/mailman/listinfo/drbd-user</pre></a><pre><br></pre>
    </blockquote>
  

</body></html>