<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<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">
<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> disk:UpToDate</div>
<div> node-2 role:Secondary</div>
<div> peer-disk:UpToDate</div>
<div><br>
</div>
<div>So far so good</div>
<div><br>
</div>
<div>cat /proc/drbd </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 class="screen">[<a href="mailto:root@pcmk-" moz-do-not-send="true">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> Master/Slave Set: NFSDataClone [NFSData]</div>
<div> Slaves: [ node-1 node-2 ]</div>
<div><br>
</div>
<div>Daemon Status:</div>
<div> corosync: active/disabled</div>
<div> pacemaker: active/disabled</div>
<div> 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> node-1 node-2</div>
<div>Pacemaker Nodes:</div>
<div> node-1 node-2</div>
<div><br>
</div>
<div>Resources:</div>
<div> Master: NFSDataClone</div>
<div> Meta Attrs: master-node-max=1 clone-max=2 notify=true
master-max=1 clone-node-max=1 </div>
<div> Resource: NFSData (class=ocf provider=linbit type=drbd)</div>
<div> Attributes: drbd_resource=drbd0</div>
<div> Operations: demote interval=0s timeout=90
(NFSData-demote-interval-0s)</div>
<div> monitor interval=60s
(NFSData-monitor-interval-60s)</div>
<div> notify interval=0s timeout=90
(NFSData-notify-interval-0s)</div>
<div> promote interval=0s timeout=90
(NFSData-promote-interval-0s)</div>
<div> reload interval=0s timeout=30
(NFSData-reload-interval-0s)</div>
<div> start interval=0s timeout=240
(NFSData-start-interval-0s)</div>
<div> 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> No alerts defined</div>
<div><br>
</div>
<div>Resources Defaults:</div>
<div> resource-stickiness: 100</div>
<div>Operations Defaults:</div>
<div> No defaults set</div>
<div><br>
</div>
<div>Cluster Properties:</div>
<div> cluster-infrastructure: corosync</div>
<div> cluster-name: mycluster</div>
<div> dc-version: 1.1.19-8.el7_6.4-c3c624ea3d</div>
<div> default-resource-stickiness: INFINITY</div>
<div> have-watchdog: false</div>
<div> no-quorum-policy: ignore</div>
<div> stonith-enabled: false</div>
<div><br>
</div>
<div>Quorum:</div>
<div> 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> disk:UpToDate</div>
<div> node-2 role:Secondary</div>
<div> 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 class="moz-quote-pre" wrap="">_______________________________________________
drbd-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a>
<a class="moz-txt-link-freetext" href="http://lists.linbit.com/mailman/listinfo/drbd-user">http://lists.linbit.com/mailman/listinfo/drbd-user</a>
</pre>
</blockquote>
</body>
</html>