<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black">We have two nodes that have two drbd resources for two different applications on a pair of servers managed by Pacemaker. All looks
to work fine when the primary node is put into standby or power cycled. Meaning that the drbd Primary gets moved to the new active node and the applications continue to run as expected. I have an issue when I pull the Ethernet out of the primary node and let
it sit there for about a half hour. When I unplug it the Primary gets moved as expected and the applications continue to work. However, when I plug the Ethernet back into the system, both nodes go into a standalone state.
<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"> <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><b><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black">Node 1:</span></b><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"> <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black">drbd driver loaded OK; device status:<br>
version: 8.4.3 (api:1/proto:86-101)<br>
srcversion: F97798065516C94BE0F27DC<br>
m:res cs ro ds p mounted fstype<br>
0:r0 StandAlone Primary/Unknown UpToDate/DUnknown r----- ext4<br>
1:r1 StandAlone Primary/Unknown UpToDate/DUnknown r----- ext4<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"> <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><b><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black">Node 2:</span></b><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"> <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black">drbd driver loaded OK; device status:<br>
version: 8.4.3 (api:1/proto:86-101)<br>
srcversion: F97798065516C94BE0F27DC <br>
m:res cs ro ds p mounted fstype<br>
0:r0 StandAlone Secondary/Unknown UpToDate/DUnknown r-----<br>
1:r1 StandAlone Secondary/Unknown UpToDate/DUnknown r-----<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"> <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black">As you can see one knows it is Primary and that is what the applications continue to run on. The second node knows it should be Secondary.
All I do to resolve this is connect the resources on each node with the Secondary having the –discard-my-data option.
<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"> <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black">Is there a way to have the connects done automatically. This looks to be a type of “split brain’ and I do have that configured in
the global.common.conf:<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"> <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black">global {<br>
usage-count no;<br>
# minor-count dialog-refresh disable-ip-verification<br>
}<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black">common {<br>
handlers {<br>
# These are EXAMPLE handlers only.<br>
# They may have severe implications,<br>
# like hard resetting the node under certain circumstances.<br>
# Be careful when chosing your poison.<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"> # pri-on-incon-degr "/usr/lib/drbd/notify-pri-on-incon-degr.sh; /usr/lib/drbd/notify-emergency-reboot.sh; echo b >
/proc/sysrq-trigger ; reboot -f";<br>
# pri-lost-after-sb "/usr/lib/drbd/notify-pri-lost-after-sb.sh; /usr/lib/drbd/notify-emergency-reboot.sh; echo b > /proc/sysrq-trigger ; reboot -f";<br>
# local-io-error "/usr/lib/drbd/notify-io-error.sh; /usr/lib/drbd/notify-emergency-shutdown.sh; echo o > /proc/sysrq-trigger ; halt -f";<br>
# fence-peer "/usr/lib/drbd/crm-fence-peer.sh";<br>
<b> split-brain "/usr/lib/drbd/notify-split-brain.sh root";</b><br>
# out-of-sync "/usr/lib/drbd/notify-out-of-sync.sh root";<br>
# before-resync-target "/usr/lib/drbd/snapshot-resync-target-lvm.sh -p 15 -- -c 16k";<br>
# after-resync-target /usr/lib/drbd/unsnapshot-resync-target-lvm.sh;<br>
}<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"> startup {<br>
# wfc-timeout degr-wfc-timeout outdated-wfc-timeout wait-after-sb<br>
}<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"> options {<br>
# cpu-mask on-no-data-accessible<br>
}<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"> disk {<br>
# size max-bio-bvecs on-io-error fencing disk-barrier disk-flushes<br>
# disk-drain md-flushes resync-rate resync-after al-extents<br>
# c-plan-ahead c-delay-target c-fill-target c-max-rate<br>
# c-min-rate disk-timeout<br>
}<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"> net {<br>
<b> after-sb-0pri discard-zero-changes;<br>
after-sb-1pri discard-secondary;<br>
# after-sb-2pri consensus;<br>
after-sb-2pri disconnect;</b><br>
# protocol timeout max-epoch-size max-buffers unplug-watermark<br>
# connect-int ping-int sndbuf-size rcvbuf-size ko-count<br>
# allow-two-primaries cram-hmac-alg shared-secret after-sb-0pri<br>
# after-sb-1pri after-sb-2pri always-asbp rr-conflict<br>
# ping-timeout data-integrity-alg tcp-cork on-congestion<br>
# congestion-fill congestion-extents csums-alg verify-alg<br>
# use-rle<br>
}<br>
}<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"> <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black">The following are also the resource files:<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"> <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black">r0.res:<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"> <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black">resource r0 {<br>
on Node1 {<br>
volume 0 {<br>
device /dev/drbd0;<br>
disk /dev/ Node1-vg/AOS;<br>
flexible-meta-disk internal;<br>
}<br>
address 10.0.6.221:7788;<br>
}<br>
on Node2 {<br>
volume 0 {<br>
device /dev/drbd0;<br>
disk /dev/ Node2-vg/AOS;<br>
flexible-meta-disk internal;<br>
}<br>
address 10.0.6.222:7788;<br>
}<br>
}<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"> <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black">r1.res:<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"> <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black">resource r1 {<br>
on Node1 {<br>
volume 0 {<br>
device /dev/drbd1;<br>
disk /dev/ Node1-vg/Controller;<br>
flexible-meta-disk internal;<br>
}<br>
address 10.0.6.221:7789;<br>
}<br>
on Node2 {<br>
volume 0 {<br>
device /dev/drbd1;<br>
disk /dev/ Node2-vg/Controller;<br>
flexible-meta-disk internal;<br>
}<br>
address 10.0.6.222:7789;<br>
}<br>
}<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"> <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black">I am not sure if this is possible, but I figured I would ask.<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"> <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black">Thanks,<br>
Keith<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div style="PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px" id="c1-id-7">
<table width="459" border="0" id="c1-id-8">
<colgroup id="c1-id-9"><col width="203" id="c1-id-10"><col width="14" id="c1-id-11"><col width="144" id="c1-id-12"><col width="80" id="c1-id-13"></colgroup>
<tbody id="c1-id-14">
<tr style="TEXT-DECORATION: ; BORDER-TOP-COLOR: ; BORDER-LEFT-COLOR: ; COLOR: ; BORDER-BOTTOM-COLOR: ; BORDER-RIGHT-COLOR: " id="c1-id-15">
<td style="HEIGHT: 40px; PADDING-BOTTOM: 2.5pt" colspan="2" id="c1-id-16">
<p id="c1-id-17" style="font-family:Arial"><a id="c1-id-18" href="http://www.fibermountain.com"><img id="c1-id-19" border="0" hspace="0" alt="" src="cid:fm-logo.jpg"></a><br id="c1-id-20">
<img src="cid:2015FMI.jpg" alt="" id="c1-id-48" width="219" height="31"></p>
</td>
</tr>
<tr style="TEXT-DECORATION: ; BORDER-TOP-COLOR: ; BORDER-LEFT-COLOR: ; COLOR: ; BORDER-BOTTOM-COLOR: ; BORDER-RIGHT-COLOR: " id="c1-id-22">
<td style="FONT-SIZE: 9.5pt; FONT-FAMILY: arial; FONT-WEIGHT: bold; COLOR: #ee2e4e" colspan="2" id="c1-id-23">
<p id="c1-id-24" style="font-family:Arial">Keith Ouellette</p>
</td>
</tr>
<tr style="TEXT-DECORATION: " id="c1-id-25">
<td style="FONT-SIZE: 8.5pt; TEXT-DECORATION: none; HEIGHT: 7px; FONT-FAMILY: arial; COLOR: #68737a; PADDING-BOTTOM: 7.5pt" colspan="2" id="c1-id-26">
<p id="c1-id-27" style="font-family:Arial"><font style="FONT-SIZE: 9pt" id="c1-id-28"></font><br id="c1-id-29">
<em id="c1-id-30">KeithO@fibermountain.com</em></p>
</td>
</tr>
<tr style="TEXT-DECORATION: " id="c1-id-31">
<td style="FONT-SIZE: 8.5pt; TEXT-DECORATION: none; FONT-FAMILY: arial; COLOR: #68737a" width="203" id="c1-id-32">
<p id="c1-id-33" style="font-family:Arial">700 West Johnson Avenue<br id="c1-id-34">
Cheshire, CT06410<br id="c1-id-35">
www.fibermountain.com </p>
</td>
<td style="FONT-SIZE: 8.5pt; TEXT-DECORATION: none; FONT-FAMILY: arial; COLOR: #68737a" width="14" id="c1-id-36">
<p id="c1-id-37" style="font-family:Arial"><img alt="" src="cid:redline.jpg" id="c1-id-38"></p>
</td>
<td style="FONT-SIZE: 8.5pt; FONT-FAMILY: arial; COLOR: #68737a" width="144" id="c1-id-39">
<p id="c1-id-40" style="font-family:Arial">P. (203) 806-4046<br id="c1-id-41">
C. (860) 810-4877<br id="c1-id-42">
F. (845) 358-7882</p>
</td>
<td width="80" id="c1-id-43">
<p id="c1-id-44" style="font-family:Arial"> </p>
</td>
</tr>
<tr style="TEXT-DECORATION: " id="c1-id-45">
<td style="FONT-SIZE: 6pt; FONT-FAMILY: arial; COLOR: #68737a; TEXT-ALIGN: justify; PADDING-TOP: 7.5pt" colspan="4" id="c1-id-46">
<p id="c1-id-47" style="font-family:Arial">Disclaimer: The information contained in this communication is confidential, may be privileged and is intended for the exclusive use of the above named addressee(s). If you are not the intended recipient(s), you are
expressly prohibited from copying, distributing, disseminating, or in any other way using any information contained within this communication. If you have received this communication in error, please contact the sender by telephone or by response via mail. We
have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on this message, as well as any attachments. We cannot accept liability for any loss or damage caused by software viruses.</p>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>