<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: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=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Open Sans";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        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;}
p
        {mso-style-priority:99;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:9.75pt;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
code
        {mso-style-priority:99;
        font-family:Consolas;
        color:#323232;
        background:#F9F2F4;
        font-weight:bold;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:9.75pt;
        margin-left:0cm;
        background:whitesmoke;
        word-break:break-all;
        border:none;
        padding:0cm;
        font-size:10.0pt;
        font-family:Consolas;
        color:#3D4045;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:#3D4045;
        background:whitesmoke;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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"><span lang="SV">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="SV"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal">We have been using DRBD V8 and are in the process of moving to V9.<o:p></o:p></p>
<p class="MsoNormal">To be exact: &#8220;version: 9.0.1-1 (api:2/proto:86-111) GIT-hash: 86e443973082570aeb651848db89e0c7b995c306 build by abuild)&#8221;<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">One difference that we see is that if configured with &#8221;allow-two-primaries no&#8221; and when there is<o:p></o:p></p>
<p class="MsoNormal">a network disconnect that ends up in two [disconnected] primaries neither of them will go into &#8220;StandAlone&#8221; connection<o:p></o:p></p>
<p class="MsoNormal">state when the network is reconnected.<o:p></o:p></p>
<p class="MsoNormal">Instead both nodes stay in state &#8220;Connecting&#8221; and refuses to connect with the error: &#8220;Multiple primaries not allowed by config&#8221;<o:p></o:p></p>
<p class="MsoNormal">Due to this, the disk state is never compared and no split brain logic is triggered.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Is this a bug or a feature with V9 ?<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:9.75pt;line-height:140%"><span lang="EN-GB" style="font-size:10.5pt;line-height:140%;font-family:&quot;Open Sans&quot;,serif;color:#27292E">If this is expected behaviour, what is the new way of detecting that we have two primaries
 ?<o:p></o:p></span></p>
<p class="MsoNormal">One [hackish] workaround is to dynamically temporarily allow two primaries while in state &#8220;Connecting&#8221; but that does not feel right.<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:9.75pt;line-height:140%"><span style="font-size:10.5pt;line-height:140%;font-family:&quot;Open Sans&quot;,serif;color:#27292E"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.75pt;line-height:140%"><span lang="EN-GB" style="font-size:10.5pt;line-height:140%;font-family:&quot;Open Sans&quot;,serif;color:#27292E">&nbsp; /Per<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">The V9 documentation has this in it:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p style="line-height:140%">&#8220;<span lang="EN-GB" style="font-size:10.5pt;line-height:140%;font-family:&quot;Open Sans&quot;,serif;color:#27292E">DRBD detects split brain at the time connectivity becomes available again and the peer nodes exchange the initial DRBD protocol
 handshake. If DRBD detects that both nodes are (or were at some point, while disconnected) in the primary role, it immediately tears down the replication connection. The tell-tale sign of this is a message like the following appearing in the system log:<o:p></o:p></span></p>
<div style="mso-element:para-border-div;border:solid #CCCCCC 1.0pt;padding:9.0pt 9.0pt 9.0pt 9.0pt;background:whitesmoke">
<p class="MsoNormal" style="margin-bottom:9.75pt;background:whitesmoke;word-break:break-all;border:none;padding:0cm">
<span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#3D4045">Split-Brain detected, dropping connection!<o:p></o:p></span></p>
</div>
<div style="mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0cm 0cm 1.0pt 0cm">
<p class="MsoNormal" style="margin-bottom:9.75pt;line-height:140%;border:none;padding:0cm">
<span lang="EN-GB" style="font-size:10.5pt;line-height:140%;font-family:&quot;Open Sans&quot;,serif;color:#27292E">After split brain has been detected, one node will always have the resource in a
</span><b><span lang="EN-GB" style="font-size:9.5pt;line-height:140%;font-family:Consolas;color:#323232;background:#F9F2F4">StandAlone</span></b><span lang="EN-GB" style="font-size:10.5pt;line-height:140%;font-family:&quot;Open Sans&quot;,serif;color:#27292E"> connection
 state. The other might either also be in the </span><b><span lang="EN-GB" style="font-size:9.5pt;line-height:140%;font-family:Consolas;color:#323232;background:#F9F2F4">StandAlone</span></b><span lang="EN-GB" style="font-size:10.5pt;line-height:140%;font-family:&quot;Open Sans&quot;,serif;color:#27292E">
 state (if both nodes detected the split brain simultaneously), or in </span><b><span lang="EN-GB" style="font-size:9.5pt;line-height:140%;font-family:Consolas;color:#323232;background:#F9F2F4">WFConnection</span></b><span lang="EN-GB" style="font-size:10.5pt;line-height:140%;font-family:&quot;Open Sans&quot;,serif;color:#27292E">
 (if the peer tore down the connection before the other node had a chance to detect split brain).&#8221;<o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:9.75pt;line-height:140%"><span lang="EN-GB" style="font-size:10.5pt;line-height:140%;font-family:&quot;Open Sans&quot;,serif;color:#27292E"><o:p>&nbsp;</o:p></span></p>
</div>
</body>
</html>