<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 02/08/2018 07:16 AM, Zhou, Cynthia
(NSB - CN/Hangzhou) wrote:<br>
</div>
<blockquote type="cite"
cite="mid:VI1PR07MB3293D0A03915D42F8282D4C1C8F30@VI1PR07MB3293.eurprd07.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<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:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:DengXian;
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:DengXian;
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:DengXian;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
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]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">Thanks
for responding?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">If
split-brain happen in such kind of test is reasonable, how
to fix this split-brain situation?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US"><o:p> </o:p></span></p>
</div>
</blockquote>
If you are using replica 2, then there is no prevention. Once they
occur, you can resolve them using
<a class="moz-txt-link-freetext" href="http://docs.gluster.org/en/latest/Troubleshooting/resolving-splitbrain/">http://docs.gluster.org/en/latest/Troubleshooting/resolving-splitbrain/</a><br>
<br>
If you want to prevent split-brain, you would need to use replica 3
or arbiter volume.<br>
<br>
Regards,<br>
Ravi<br>
<blockquote type="cite"
cite="mid:VI1PR07MB3293D0A03915D42F8282D4C1C8F30@VI1PR07MB3293.eurprd07.prod.outlook.com">
<div class="WordSection1">
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="text-align:left" align="left"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext"
lang="EN-US">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext"
lang="EN-US"> Ravishankar N
[<a class="moz-txt-link-freetext" href="mailto:ravishankar@redhat.com">mailto:ravishankar@redhat.com</a>] <br>
<b>Sent:</b> Thursday, February 08, 2018 12:12 AM<br>
<b>To:</b> Zhou, Cynthia (NSB - CN/Hangzhou)
<a class="moz-txt-link-rfc2396E" href="mailto:cynthia.zhou@nokia-sbell.com"><cynthia.zhou@nokia-sbell.com></a>;
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
<b>Subject:</b> Re: query about a split-brain problem
found in glusterfs3.12.3<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="text-align:left" align="left"><span
lang="EN-US"><o:p> </o:p></span></p>
<p><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On 02/07/2018 10:39
AM, Zhou, Cynthia (NSB - CN/Hangzhou) wrote:<o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="text-align:left" align="left"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Hi glusterfs expert:<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span lang="EN-US"> Good day.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span lang="EN-US"> Lately, we
meet a glusterfs split brain problem in our env in
/mnt/export/testdir. We start 3 ior process (IOR tool)
from non-sn nodes, which is creating/removing files
repeatedly in testdir. then we reboot sn nodes(sn0 and
sn1) by sequence. Then we meet following problem.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span lang="EN-US"> Do you have
some comments on how this could happen? And how to fix it
in this situation? Thanks!<o:p></o:p></span></p>
</blockquote>
<p class="MsoNormal" style="text-align:left" align="left"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"><br>
Is the problem that split-brain is happening? Is this a
replica 2 volume? If yes, then it looks like it is expected
behavior?<br>
Regards<br>
Ravi<br>
<br>
<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"
lang="EN-US">gluster volume heal export info<br>
Brick sn-0.local:/mnt/bricks/export/brick<br>
Status: Connected<br>
Number of entries: 0<br>
<br>
Brick sn-1.local:/mnt/bricks/export/brick<br>
/testdir - Is in split-brain<br>
<br>
/testdir - Possibly undergoing heal<br>
<br>
Status: Connected<br>
Number of entries: 2</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"
lang="EN-US">wait for a while
</span><span style="font-size:10.0pt">…<span lang="EN-US">..</span></span><span
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"
lang="EN-US">gluster volume heal export info<br>
Brick sn-0.local:/mnt/bricks/export/brick<br>
Status: Connected<br>
Number of entries: 0<br>
<br>
Brick sn-1.local:/mnt/bricks/export/brick<br>
/testdir - Possibly undergoing heal<br>
<br>
/testdir - Possibly undergoing heal</span><span
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"
lang="EN-US">and finally:</span><span lang="EN-US"><o:p></o:p></span></p>
<p
style="mso-margin-top-alt:7.5pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;background:white"><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"
lang="EN-US">[root@<a href="http://sn-0/root"
moz-do-not-send="true"><span
style="font-size:12.0pt;color:#3B73AF">sn-0:/root</span></a>]<br>
# gluster v heal export info<br>
Brick sn-0.<a href="http://local/mnt/bricks/export/brick"
moz-do-not-send="true"><span
style="font-size:12.0pt;color:#3B73AF">local:/mnt/bricks/export/brick</span></a><br>
Status: Connected<br>
Number of entries: 0</span><span lang="EN-US"><o:p></o:p></span></p>
<p
style="mso-margin-top-alt:7.5pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;background:white;font-variant-ligatures:
normal;font-variant-caps: normal;orphans: 2;widows:
2;-webkit-text-stroke-width: 0px;text-decoration-style:
initial;text-decoration-color: initial;word-spacing:0px">
<span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"
lang="EN-US">Brick sn-1.<a
href="http://local/mnt/bricks/export/brick"
moz-do-not-send="true"><span
style="font-size:12.0pt;color:#3B73AF">local:/mnt/bricks/export/brick</span></a><br>
/testdir - Is in split-brain</span><span lang="EN-US"><o:p></o:p></span></p>
<p
style="mso-margin-top-alt:7.5pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;background:white;font-variant-ligatures:
normal;font-variant-caps: normal;orphans: 2;widows:
2;-webkit-text-stroke-width: 0px;text-decoration-style:
initial;text-decoration-color: initial;word-spacing:0px">
<span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"
lang="EN-US">Status: Connected<br>
Number of entries: 1</span><span lang="EN-US"><o:p></o:p></span></p>
<p
style="mso-margin-top-alt:7.5pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;background:white;font-variant-ligatures:
normal;font-variant-caps: normal;orphans: 2;widows:
2;-webkit-text-stroke-width: 0px;text-decoration-style:
initial;text-decoration-color: initial;word-spacing:0px">
<span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"
lang="EN-US"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p
style="mso-margin-top-alt:7.5pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;background:white;font-variant-ligatures:
normal;font-variant-caps: normal;orphans: 2;widows:
2;-webkit-text-stroke-width: 0px;text-decoration-style:
initial;text-decoration-color: initial;word-spacing:0px">
<span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"
lang="EN-US">[root@<a href="http://sn-0/root"
moz-do-not-send="true"><span
style="font-size:12.0pt;color:#3B73AF">sn-0:/root</span></a>]</span><span
lang="EN-US"><o:p></o:p></span></p>
<p
style="mso-margin-top-alt:7.5pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;background:white;font-variant-ligatures:
normal;font-variant-caps: normal;orphans: 2;widows:
2;-webkit-text-stroke-width: 0px;text-decoration-style:
initial;text-decoration-color: initial;word-spacing:0px">
<span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"
lang="EN-US"># getfattr -m .* -d -e hex
/mnt/bricks/export/brick/testdir</span><span lang="EN-US"><o:p></o:p></span></p>
<p
style="mso-margin-top-alt:7.5pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;background:white;font-variant-ligatures:
normal;font-variant-caps: normal;orphans: 2;widows:
2;-webkit-text-stroke-width: 0px;text-decoration-style:
initial;text-decoration-color: initial;word-spacing:0px">
<span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"
lang="EN-US">getfattr: Removing leading '/' from absolute
path names</span><span lang="EN-US"><o:p></o:p></span></p>
<p
style="mso-margin-top-alt:7.5pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;background:white;font-variant-ligatures:
normal;font-variant-caps: normal;orphans: 2;widows:
2;-webkit-text-stroke-width: 0px;text-decoration-style:
initial;text-decoration-color: initial;word-spacing:0px">
<span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"
lang="EN-US"># file: mnt/bricks/export/brick/testdir</span><span
lang="EN-US"><o:p></o:p></span></p>
<p
style="mso-margin-top-alt:7.5pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;background:white;font-variant-ligatures:
normal;font-variant-caps: normal;orphans: 2;widows:
2;-webkit-text-stroke-width: 0px;text-decoration-style:
initial;text-decoration-color: initial;word-spacing:0px">
<span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"
lang="EN-US">trusted.gfid=0x5622cff893b3484dbdb6a20a0edb0e77</span><span
lang="EN-US"><o:p></o:p></span></p>
<p
style="mso-margin-top-alt:7.5pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;background:white;font-variant-ligatures:
normal;font-variant-caps: normal;orphans: 2;widows:
2;-webkit-text-stroke-width: 0px;text-decoration-style:
initial;text-decoration-color: initial;word-spacing:0px">
<span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"
lang="EN-US">trusted.glusterfs.dht=0x000000010000000000000000ffffffff</span><span
lang="EN-US"><o:p></o:p></span></p>
<p
style="mso-margin-top-alt:7.5pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;background:white;font-variant-ligatures:
normal;font-variant-caps: normal;orphans: 2;widows:
2;-webkit-text-stroke-width: 0px;text-decoration-style:
initial;text-decoration-color: initial;word-spacing:0px">
<span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"
lang="EN-US"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p
style="mso-margin-top-alt:7.5pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;background:white"><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"
lang="EN-US">[root@<a href="http://sn-1/root"
moz-do-not-send="true"><span
style="font-size:12.0pt;color:#3B73AF">sn-1:/root</span></a>]</span><span
lang="EN-US"><o:p></o:p></span></p>
<p
style="mso-margin-top-alt:7.5pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;background:white;font-variant-ligatures:
normal;font-variant-caps: normal;orphans: 2;widows:
2;-webkit-text-stroke-width: 0px;text-decoration-style:
initial;text-decoration-color: initial;word-spacing:0px">
<span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"
lang="EN-US"># getfattr -m .* -d -e hex
/mnt/bricks/export/brick/testdir</span><span lang="EN-US"><o:p></o:p></span></p>
<p
style="mso-margin-top-alt:7.5pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;background:white;font-variant-ligatures:
normal;font-variant-caps: normal;orphans: 2;widows:
2;-webkit-text-stroke-width: 0px;text-decoration-style:
initial;text-decoration-color: initial;word-spacing:0px">
<span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"
lang="EN-US">getfattr: Removing leading '/' from absolute
path names</span><span lang="EN-US"><o:p></o:p></span></p>
<p
style="mso-margin-top-alt:7.5pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;background:white;font-variant-ligatures:
normal;font-variant-caps: normal;orphans: 2;widows:
2;-webkit-text-stroke-width: 0px;text-decoration-style:
initial;text-decoration-color: initial;word-spacing:0px">
<span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"
lang="EN-US"># file: mnt/bricks/export/brick/testdir</span><span
lang="EN-US"><o:p></o:p></span></p>
<p
style="mso-margin-top-alt:7.5pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;background:white;font-variant-ligatures:
normal;font-variant-caps: normal;orphans: 2;widows:
2;-webkit-text-stroke-width: 0px;text-decoration-style:
initial;text-decoration-color: initial;word-spacing:0px">
<span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"
lang="EN-US">trusted.afr.dirty=0x000000000000000000000001</span><span
lang="EN-US"><o:p></o:p></span></p>
<p
style="mso-margin-top-alt:7.5pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;background:white;font-variant-ligatures:
normal;font-variant-caps: normal;orphans: 2;widows:
2;-webkit-text-stroke-width: 0px;text-decoration-style:
initial;text-decoration-color: initial;word-spacing:0px">
<span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"
lang="EN-US">trusted.afr.export-client-0=0x000000000000000000000038</span><span
lang="EN-US"><o:p></o:p></span></p>
<p
style="mso-margin-top-alt:7.5pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;background:white;font-variant-ligatures:
normal;font-variant-caps: normal;orphans: 2;widows:
2;-webkit-text-stroke-width: 0px;text-decoration-style:
initial;text-decoration-color: initial;word-spacing:0px">
<span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"
lang="EN-US">trusted.gfid=0x5622cff893b3484dbdb6a20a0edb0e77</span><span
lang="EN-US"><o:p></o:p></span></p>
<p
style="mso-margin-top-alt:7.5pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;background:white;font-variant-ligatures:
normal;font-variant-caps: normal;orphans: 2;widows:
2;-webkit-text-stroke-width: 0px;text-decoration-style:
initial;text-decoration-color: initial;word-spacing:0px">
<span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"
lang="EN-US">trusted.glusterfs.dht=0x000000010000000000000000ffffffff</span><span
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span lang="EN-US"><o:p></o:p></span></p>
</blockquote>
<p class="MsoNormal" style="text-align:left" align="left"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"><o:p> </o:p></span></p>
</div>
</blockquote>
<br>
</body>
</html>