<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>The thing is, even though it's a test system, pacemaker and DRBD
will still operate as if it is critical. Turning off stonith won't
properly emulate production because when a node enters an unknown
state, the system will no longer behave predictably.</p>
<p>digimer<br>
</p>
<div class="moz-cite-prefix">On 2019-04-15 12:13 p.m., Graham Smith
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:cbef72765101da27df8f287b2c291dc5528a881f.camel@gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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>--
</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 <<a
href="mailto:digimer%20%3clists@alteeve.ca%3e"
moz-do-not-send="true">lists@alteeve.ca</a>></div>
<div><b>To</b>: Graham Smith <<a
href="mailto:Graham%20Smith%20%3cgps1539@gmail.com%3e"
moz-do-not-send="true">gps1539@gmail.com</a>>, <a
href="mailto:drbd-user@lists.linbit.com"
moz-do-not-send="true">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> 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>[</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>
</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> 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>_______________________________________________</pre>
<pre>drbd-user mailing list</pre>
<a class="moz-txt-link-abbreviated"
href="mailto:drbd-user@lists.linbit.com"
moz-do-not-send="true">
<pre>drbd-user@lists.linbit.com</pre>
</a>
<pre>
</pre>
<a class="moz-txt-link-freetext"
href="http://lists.linbit.com/mailman/listinfo/drbd-user"
moz-do-not-send="true">
<pre>http://lists.linbit.com/mailman/listinfo/drbd-user</pre>
</a>
<pre>
</pre>
</blockquote>
</blockquote>
</body>
</html>