<div dir="ltr">So try your tests again, but wait for synchronization first. You can check the state of files on servers with getfattr -d -m. -e hex /path-to-file-on-gluster-server<div>both should return 0x000000000000000000000000</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-08 9:11 GMT+03:00 <a href="mailto:hwh@sangfor.com">hwh@sangfor.com</a> <span dir="ltr">&lt;<a href="mailto:hwh@sangfor.com" target="_blank">hwh@sangfor.com</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<div><span></span>Yes, I do not wait for <span style="font-size:10.5pt;line-height:1.5;background-color:window">synchronization to complete.</span></div>
<div><br></div><hr style="width:210px;min-height:1px" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN:10px;FONT-FAMILY:verdana;FONT-SIZE:10pt"><div><a href="mailto:hwh@sangfor.com" target="_blank">hwh@sangfor.com</a></div></div></span></div>
<blockquote style="margin-top:0px;margin-bottom:0px;margin-left:0.5em"><div> </div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT:8px;PADDING-LEFT:8px;FONT-SIZE:12px;FONT-FAMILY:tahoma;COLOR:#000000;BACKGROUND:#efefef;PADDING-BOTTOM:8px;PADDING-TOP:8px">
<div><b>From:</b> <a href="mailto:romeo.r@gmail.com" target="_blank">Roman</a></div><div><b>Date:</b> 2014-08-08 13:53</div><div><b>To:</b> <a href="mailto:hwh@sangfor.com" target="_blank">hwh@sangfor.com</a></div><div><b>CC:</b> <a href="mailto:gluster-users@gluster.org" target="_blank">gluster-users</a></div>
<div><b>Subject:</b> Re: [Gluster-users] about split-brain</div></div></div><div><div class="h5"><div><div><div dir="ltr">Hello,<div><br></div><div>Did you wait for synchronization to complete before plugging second server off? Usually it need 10-15 minutes. Sometimes faster.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">
2014-08-08 5:19 GMT+03:00 <a href="mailto:hwh@sangfor.com" target="_blank">hwh@sangfor.com</a> <span dir="ltr">&lt;<a href="mailto:hwh@sangfor.com" target="_blank">hwh@sangfor.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div>
<div><span></span>hi:</div><div><br></div><div>I have a problem about split-brain, <span style="background-color:rgba(255,255,255,0.8);color:rgb(51,51,51);font-family:Tahoma,Arial;font-size:12px;line-height:24px;text-align:justify">details as below:</span></div>

<div><span style="background-color:rgba(255,255,255,0.8);color:rgb(51,51,51);font-family:Tahoma,Arial;font-size:12px;line-height:24px;text-align:justify"><br></span></div><div><img src="cid:_Foxmail.1@580908b5-c76d-d15e-bc34-b0df73a951e7" border="0"></div>

<div>PC1 and PC2 is AFR, stored a file 1.txt</div><div><br></div><div>1. write &quot;123&quot; to 1.txt, then 1.txt in pc1 is same with 1.txt in PC2, content is &quot;123&quot;</div><div><br></div><div>2. PC1  network disconnect, write &quot;45&quot; to 1.txt, then <span style="font-size:10.5pt;line-height:1.5;background-color:window"> content of </span><span style="font-size:10.5pt;line-height:1.5;background-color:window">1.txt in pc1 is &quot;123&quot;,  </span></div>

<div><span style="font-size:10.5pt;line-height:1.5;background-color:window">  </span></div><div><span style="font-size:10.5pt;line-height:1.5;background-color:window">   </span><span style="font-size:10.5pt;line-height:1.5;background-color:window">content of </span><span style="font-size:10.5pt;line-height:1.5;background-color:window">1.txt in pc2 is &quot;12345&quot;</span></div>

<div><span style="font-size:10.5pt;line-height:1.5;background-color:window"><br></span></div><div><span style="font-size:10.5pt;line-height:1.5;background-color:window">3. </span><span style="font-size:10.5pt;line-height:1.5;background-color:window">PC2  network disconnect, but PC1 network is good, </span><span style="font-size:10.5pt;line-height:1.5;background-color:window">write &quot;67&quot; to 1.txt,</span><span style="font-size:10.5pt;line-height:1.5;background-color:window"> then </span><span style="font-size:10.5pt;line-height:1.5;background-color:window"> content of </span><span style="font-size:10.5pt;line-height:1.5;background-color:window">1.txt in pc1 is &quot;12367&quot;,  </span></div>

<div><span style="font-size:10.5pt;line-height:1.5;background-color:window">  </span></div><div><span style="font-size:10.5pt;line-height:1.5;background-color:window">   </span><span style="font-size:10.5pt;line-height:1.5;background-color:window">content of </span><span style="font-size:10.5pt;line-height:1.5;background-color:window">1.txt in pc1 is &quot;12345&quot;</span></div>

<div><br></div><div>4. so split brain occur</div><div><br></div><div><br></div><div>how glusterfs avoid this? Have some ways to solve? this is my questions. thank you</div>
<div><br></div><hr style="width:210px;min-height:1px" color="#b5c4df" size="1" align="left"><span><font color="#888888">
<div><span><div style="MARGIN:10px;FONT-FAMILY:verdana;FONT-SIZE:10pt"><div><a href="mailto:hwh@sangfor.com" target="_blank">hwh@sangfor.com</a></div></div></span></div>
</font></span></div><br>_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best regards,<br>

Roman.
</div>
</div></div></div></div></blockquote>
</div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best regards,<br>Roman.
</div>