<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 08/08/2014 11:54 AM, <a class="moz-txt-link-abbreviated" href="mailto:hwh@sangfor.com">hwh@sangfor.com</a>
      wrote:<br>
    </div>
    <blockquote cite="mid:2014080814245082808322@sangfor.com"
      type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }div.foxdiv20140808142147062786 { }body { font-size: 10.5pt; font-family: &#23435;&#20307;; color: rgb(0, 0, 0); line-height: 1.5; }</style>
      <div><span></span>Is glusterfs bug ? &nbsp;i want to know&nbsp;<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;">whether</span><span
          style="font-size: 10.5pt; line-height: 1.5; background-color:
          window;">&nbsp;have some way to avoid this split-brain?</span></div>
    </blockquote>
    Please explore client quorum and server quorum options in gluster.<br>
    #gluster volume set help|grep quorum<br>
    <br>
    <blockquote cite="mid:2014080814245082808322@sangfor.com"
      type="cite">
      <div><br>
      </div>
      <hr style="width: 210px; height: 1px;" color="#b5c4df"
        align="left" size="1">
      <div><span>
          <div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE:
            10pt">
            <div><a class="moz-txt-link-abbreviated" href="mailto:hwh@sangfor.com">hwh@sangfor.com</a></div>
          </div>
        </span></div>
      <blockquote style="margin-top: 0px; margin-bottom: 0px;
        margin-left: 0.5em;">
        <div>&nbsp;</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>&nbsp;<a moz-do-not-send="true"
                href="mailto:romeo.r@gmail.com">Roman</a></div>
            <div><b>Date:</b>&nbsp;2014-08-08&nbsp;14:16</div>
            <div><b>To:</b>&nbsp;<a moz-do-not-send="true"
                href="mailto:hwh@sangfor.com">hwh@sangfor.com</a></div>
            <div><b>CC:</b>&nbsp;<a moz-do-not-send="true"
                href="mailto:gluster-users@gluster.org">gluster-users</a></div>
            <div><b>Subject:</b>&nbsp;Re: Re: [Gluster-users] about
              split-brain</div>
          </div>
        </div>
        <div>
          <div class="FoxDiv20140808142147062786">
            <div dir="ltr">So try your tests again, but wait for
              synchronization first. You can check the state of files on
              servers with&nbsp;getfattr -d -m. -e hex
              /path-to-file-on-gluster-server
              <div>both should return&nbsp;0x000000000000000000000000</div>
            </div>
            <div class="gmail_extra"><br>
              <br>
              <div class="gmail_quote">2014-08-08 9:11 GMT+03:00 <a
                  moz-do-not-send="true" href="mailto:hwh@sangfor.com">hwh@sangfor.com</a>
                <span dir="ltr">&lt;<a moz-do-not-send="true"
                    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>Yes, I do not wait for&nbsp;<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" align="left" size="1">
                    <div><span>
                        <div
                          style="MARGIN:10px;FONT-FAMILY:verdana;FONT-SIZE:10pt">
                          <div><a moz-do-not-send="true"
                              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>&nbsp;</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>&nbsp;<a moz-do-not-send="true"
                              href="mailto:romeo.r@gmail.com"
                              target="_blank">Roman</a></div>
                          <div><b>Date:</b>&nbsp;2014-08-08&nbsp;13:53</div>
                          <div><b>To:</b>&nbsp;<a moz-do-not-send="true"
                              href="mailto:hwh@sangfor.com"
                              target="_blank">hwh@sangfor.com</a></div>
                          <div><b>CC:</b>&nbsp;<a moz-do-not-send="true"
                              href="mailto:gluster-users@gluster.org"
                              target="_blank">gluster-users</a></div>
                          <div><b>Subject:</b>&nbsp;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
                                    moz-do-not-send="true"
                                    href="mailto:hwh@sangfor.com"
                                    target="_blank">hwh@sangfor.com</a>
                                  <span dir="ltr">&lt;<a
                                      moz-do-not-send="true"
                                      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,&nbsp;<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:part12.01050004.09000308@redhat.com"
                                          border="0"></div>
                                      <div>PC1 and PC2 is AFR, stored a
                                        file 1.txt</div>
                                      <div><br>
                                      </div>
                                      <div>1. write "123" to 1.txt, then
                                        1.txt in pc1 is same with 1.txt
                                        in PC2, content is "123"</div>
                                      <div><br>
                                      </div>
                                      <div>2. PC1 &nbsp;network disconnect,
                                        write "45" to 1.txt, then&nbsp;<span
style="font-size:10.5pt;line-height:1.5;background-color:window">&nbsp;content
                                          of&nbsp;</span><span
                                          style="font-size:10.5pt;line-height:1.5;background-color:window">1.txt
                                          in pc1 is "123", &nbsp;</span></div>
                                      <div><span
                                          style="font-size:10.5pt;line-height:1.5;background-color:window">&nbsp;&nbsp;</span></div>
                                      <div><span
                                          style="font-size:10.5pt;line-height:1.5;background-color:window">&nbsp;
                                          &nbsp;</span><span
                                          style="font-size:10.5pt;line-height:1.5;background-color:window">content
                                          of&nbsp;</span><span
                                          style="font-size:10.5pt;line-height:1.5;background-color:window">1.txt
                                          in pc2 is "12345"</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.&nbsp;</span><span
style="font-size:10.5pt;line-height:1.5;background-color:window">PC2
                                          &nbsp;network disconnect, but PC1
                                          network is good,&nbsp;</span><span
style="font-size:10.5pt;line-height:1.5;background-color:window">write
                                          "67" to 1.txt,</span><span
                                          style="font-size:10.5pt;line-height:1.5;background-color:window">&nbsp;then&nbsp;</span><span
style="font-size:10.5pt;line-height:1.5;background-color:window">&nbsp;content
                                          of&nbsp;</span><span
                                          style="font-size:10.5pt;line-height:1.5;background-color:window">1.txt
                                          in pc1 is "12367", &nbsp;</span></div>
                                      <div><span
                                          style="font-size:10.5pt;line-height:1.5;background-color:window">&nbsp;&nbsp;</span></div>
                                      <div><span
                                          style="font-size:10.5pt;line-height:1.5;background-color:window">&nbsp;
                                          &nbsp;</span><span
                                          style="font-size:10.5pt;line-height:1.5;background-color:window">content
                                          of&nbsp;</span><span
                                          style="font-size:10.5pt;line-height:1.5;background-color:window">1.txt
                                          in pc1 is "12345"</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" align="left"
                                        size="1"><span><font
                                          color="#888888">
                                          <div><span>
                                              <div
                                                style="MARGIN:10px;FONT-FAMILY:verdana;FONT-SIZE:10pt">
                                                <div><a
                                                    moz-do-not-send="true"
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 moz-do-not-send="true"
                                      href="mailto:Gluster-users@gluster.org"
                                      target="_blank">Gluster-users@gluster.org</a><br>
                                    <a moz-do-not-send="true"
                                      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>
          </div>
        </div>
      </blockquote>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Gluster-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://supercolony.gluster.org/mailman/listinfo/gluster-users">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>