<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;"><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></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></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></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">https://clusterlabs.org/pacemaker/doc/en-US/Pacemaker/2.0/html/Clusters_from_Scratch/_initialize_drbd.html</a></div><div>---------</div><div><pre class="screen">[<a href="mailto:root@pcmk-">root@pcmk-</a>1 ~]# cat /proc/drbd
version: 8.4.11-1 (api:1/proto:86-101)
GIT-hash: 66145a308421e9c124ec391a7848ac20203bb03c build by mockbuild@, 2018-04-26 12:10:42

 1: cs:WFConnection ro:Secondary/Unknown ds:Inconsistent/DUnknown C r----s
    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 class="screen">--------</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></div><div></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></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></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>-- <br></pre><div><br></div><div>best regards</div><div><br></div><div>Graham</div></span></div></body></html>