<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 03/04/2016 12:10 PM, ABHISHEK
      PALIWAL wrote:<br>
    </div>
    <blockquote
cite="mid:CA+15cFMzW4pO8_u598cjaJeh3se1sN4cED6xaMiiM6C2MbmZgw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Hi Ravi,<br>
            <br>
            <span class="im">3. On the rebooted node, do you have ssl
              enabled by any chance? There is a bug for "Not able to
              fetch volfile' when ssl is enabled: <a
                moz-do-not-send="true"
                href="https://bugzilla.redhat.com/show_bug.cgi?id=1258931"
                target="_blank"><a class="moz-txt-link-freetext" href="https://bugzilla.redhat.com/show_bug.cgi?id=1258931">https://bugzilla.redhat.com/show_bug.cgi?id=1258931</a></a><br>
              <br>
            </span></div>
          <span class="im">-&gt;&gt;&gt;&gt;&gt; I have checked but ssl
            is disabled but still getting these errors<br>
            <br>
          </span><font face="Tahoma" size="2" color="black"><span
              style="font-size:10pt" dir="ltr"><font face="Times New
                Roman" size="2"><span style="font-size:16px"><font
                    face="sans-serif" size="2"># gluster volume heal
                    c_glusterfs info </font><br>
                  <font face="sans-serif" size="2">c_glusterfs: Not able
                    to fetch volfile from glusterd</font> <br>
                  <font face="sans-serif" size="2">Volume heal failed.</font>
                  <br>
                  <br>
                </span></font></span></font></div>
      </div>
    </blockquote>
    <font size="2"><br>
      Ok, just to confirm, glusterd  and other brick processes are
      running after this node rebooted?  <br>
      When you run the above command, you need to check
      /var/log/glusterfs/glfsheal-volname.log logs errros. Setting
      client-log-level to DEBUG would give you a more verbose message<br>
      <br>
    </font>
    <blockquote
cite="mid:CA+15cFMzW4pO8_u598cjaJeh3se1sN4cED6xaMiiM6C2MbmZgw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><span class="im"><font face="Tahoma" size="2" color="black"><span
                style="font-size:10pt" dir="ltr"><font face="Times New
                  Roman" size="2"><span style="font-size:16px"><font
                      face="sans-serif" size="2"># gluster volume heal
                      c_glusterfs info split-brain</font> <br>
                    <font face="sans-serif" size="2">c_glusterfs: Not
                      able to fetch volfile from glusterd</font> <br>
                    <font face="sans-serif" size="2">Volume heal failed.</font></span></font></span></font></span></div>
      </div>
    </blockquote>
    <font size="2"><br>
    </font>
    <blockquote
cite="mid:CA+15cFMzW4pO8_u598cjaJeh3se1sN4cED6xaMiiM6C2MbmZgw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><span class="im"><font face="Tahoma" size="2" color="black"><span
                style="font-size:10pt" dir="ltr"><font face="Times New
                  Roman" size="2"><span style="font-size:16px"> <br>
                    <br>
                  </span></font></span></font></span></div>
        <span class="im"><font face="Tahoma" size="2" color="black"><span
              style="font-size:10pt" dir="ltr"><font face="Times New
                Roman" size="2"><span style="font-size:16px">And based
                  on the your observation I understood that this is not
                  the problem of split-brain but <b>is there any way
                    through which can find out the file which is not in
                    split-brain as well as not in sync?</b><br>
                </span></font></span></font></span></div>
    </blockquote>
    <span class="im"><font face="Tahoma" size="2" color="black"><span
          style="font-size:10pt" dir="ltr"><font face="Times New Roman"
            size="2"><span style="font-size:16px"><font
                face="sans-serif" size="2"><br>
                `gluster volume heal c_glusterfs info split-brain` 
                should give you files that need heal.<br>
                <br>
              </font></span></font></span></font></span>
    <blockquote
cite="mid:CA+15cFMzW4pO8_u598cjaJeh3se1sN4cED6xaMiiM6C2MbmZgw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
          <font face="Tahoma" size="2" color="black"><span
              style="font-size:10pt" dir="ltr"><font face="Times New
                Roman" size="2"><span style="font-size:16px"><font
                    face="sans-serif" size="2"># getfattr -m . -d -e hex
/opt/lvmdir/c2/brick/logfiles/availability/CELLO_AVAILABILITY2_LOG.xml</font>
                  <br>
                  <font face="sans-serif" size="2">getfattr: Removing
                    leading '/' from absolute path names</font> <br>
                  <font face="sans-serif" size="2"># file:
                    opt/lvmdir/c2/brick/logfiles/availability/CELLO_AVAILABILITY2_LOG.xml</font>
                  <br>
                  <font face="sans-serif" size="2">trusted.afr.c_glusterfs-client-0=0x000000000000000000000000</font>
                  <br>
                  <font face="sans-serif" size="2">trusted.afr.c_glusterfs-client-2=0x000000000000000000000000</font>
                  <br>
                  <font face="sans-serif" size="2">trusted.afr.c_glusterfs-client-4=0x000000000000000000000000</font>
                  <br>
                  <font face="sans-serif" size="2">trusted.afr.c_glusterfs-client-6=0x000000000000000000000000</font>
                  <br>
                  <font face="sans-serif" size="2">trusted.afr.c_glusterfs-client-8=<b>0x000000060000000000000000</b></font><b>
                    //because client8 is the latest client in our case
                    and starting 8 digits </b></span></font></span></font><b><br>
          </b></div>
        <div><font face="Tahoma" size="2" color="black"><span
              style="font-size:10pt" dir="ltr"><font face="Times New
                Roman" size="2"><span style="font-size:16px"><font
                    face="Tahoma" size="2" color="black"><span
                      style="font-size:10pt" dir="ltr"><font face="Times
                        New Roman" size="2"><span style="font-size:16px"><font
                            face="sans-serif" size="2"><b>00000006....are
                              saying like there is something in
                              changelog data.<br>
                            </b></font></span></font></span></font></span></font></span></font></div>
        <div><font face="Tahoma" size="2" color="black"><span
              style="font-size:10pt" dir="ltr"><font face="Times New
                Roman" size="2"><span style="font-size:16px"><font
                    face="Tahoma" size="2" color="black"><span
                      style="font-size:10pt" dir="ltr"><font face="Times
                        New Roman" size="2"><span style="font-size:16px"></span></font></span></font><font
                    face="sans-serif" size="2">trusted.afr.dirty=0x000000000000000000000000</font>
                  <br>
                  <font face="sans-serif" size="2">trusted.bit-rot.version=0x000000000000001356d86c0c000217fd</font>
                  <br>
                  <font face="sans-serif" size="2">trusted.gfid=0x9f5e354ecfda40149ddce7d5ffe760ae</font>
                  <br>
                  <br>
                  <font face="sans-serif" size="2"># lhsh 002500
                    getfattr -m . -d -e hex
                    /opt/lvmdir/c2/brick/logfiles/availability/CELLO_AVAILABILITY2_LOG.xml</font>
                  <br>
                  <font face="sans-serif" size="2">getfattr: Removing
                    leading '/' from absolute path names</font> <br>
                  <font face="sans-serif" size="2"># file:
                    opt/lvmdir/c2/brick/logfiles/availability/CELLO_AVAILABILITY2_LOG.xml</font>
                  <br>
                  <font face="sans-serif" size="2">trusted.afr.c_glusterfs-client-1=<b>0x000000000000000000000000</b></font><b>
                    // and here we can say that there is no split brain
                    but the file is out of sync</b><br>
                  <font face="sans-serif" size="2">trusted.afr.dirty=0x000000000000000000000000</font>
                  <br>
                  <font face="sans-serif" size="2">trusted.bit-rot.version=0x000000000000001156d86c290005735c</font>
                  <br>
                  <font face="sans-serif" size="2">trusted.gfid=0x9f5e354ecfda40149ddce7d5ffe760ae</font>
                  <br>
                  <br>
                  <font face="sans-serif" size="2"># gluster volume info
                  </font><br>
                  <font face="sans-serif" size="2"> </font> <br>
                  <font face="sans-serif" size="2">Volume Name:
                    c_glusterfs</font> <br>
                  <font face="sans-serif" size="2">Type: Replicate</font>
                  <br>
                  <font face="sans-serif" size="2">Volume ID:
                    c6a61455-d378-48bf-ad40-7a3ce897fc9c</font> <br>
                  <font face="sans-serif" size="2">Status: Started</font>
                  <br>
                  <font face="sans-serif" size="2">Number of Bricks: 1 x
                    2 = 2</font> <br>
                  <font face="sans-serif" size="2">Transport-type: tcp</font>
                  <br>
                  <font face="sans-serif" size="2">Bricks:</font> <br>
                  <font face="sans-serif" size="2">Brick1:
                    10.32.0.48:/opt/lvmdir/c2/brick</font> <br>
                  <font face="sans-serif" size="2">Brick2:
                    10.32.1.144:/opt/lvmdir/c2/brick</font> <br>
                  <font face="sans-serif" size="2">Options Reconfigured:</font>
                  <br>
                  <font face="sans-serif" size="2">performance.readdir-ahead:
                    on</font> <br>
                  <font face="sans-serif" size="2">network.ping-timeout:
                    4</font> <br>
                  <font face="sans-serif" size="2">nfs.disable: on</font>
                  <br>
                  <br>
                  <br>
                  <font face="sans-serif" size="2"># gluster volume info
                                     </font> <br>
                  <font face="sans-serif" size="2"> </font> <br>
                  <font face="sans-serif" size="2">Volume Name:
                    c_glusterfs</font> <br>
                  <font face="sans-serif" size="2">Type: Replicate</font>
                  <br>
                  <font face="sans-serif" size="2">Volume ID:
                    c6a61455-d378-48bf-ad40-7a3ce897fc9c</font> <br>
                  <font face="sans-serif" size="2">Status: Started</font>
                  <br>
                  <font face="sans-serif" size="2">Number of Bricks: 1 x
                    2 = 2</font> <br>
                  <font face="sans-serif" size="2">Transport-type: tcp</font>
                  <br>
                  <font face="sans-serif" size="2">Bricks:</font> <br>
                  <font face="sans-serif" size="2">Brick1:
                    10.32.0.48:/opt/lvmdir/c2/brick</font> <br>
                  <font face="sans-serif" size="2">Brick2:
                    10.32.1.144:/opt/lvmdir/c2/brick</font> <br>
                  <font face="sans-serif" size="2">Options Reconfigured:</font>
                  <br>
                  <font face="sans-serif" size="2">performance.readdir-ahead:
                    on</font> <br>
                  <font face="sans-serif" size="2">network.ping-timeout:
                    4</font> <br>
                  <font face="sans-serif" size="2">nfs.disable: on</font>
                  <br>
                  <br>
                  <font face="sans-serif" size="2"># gluster --version</font>
                  <br>
                  <font face="sans-serif" size="2">glusterfs 3.7.8 built
                    on Feb 17 2016 07:49:49</font> <br>
                  <font face="sans-serif" size="2">Repository revision:
                    git://<a moz-do-not-send="true"
                      href="http://git.gluster.com/glusterfs.git">git.gluster.com/glusterfs.git</a></font>
                  <br>
                  <font face="sans-serif" size="2">Copyright (c)
                    2006-2011 Gluster Inc. &lt;</font><a
                    moz-do-not-send="true"
href="https://prod-webmail.windriver.com/owa/redir.aspx?SURL=1n3NinBc2tJluL9mRvtdRtuM7FXSFmZ7aHgTkNSgQ7vm1RuX9kPTCGgAdAB0AHAAOgAvAC8AdwB3AHcALgBnAGwAdQBzAHQAZQByAC4AYwBvAG0ALwA.&amp;URL=http%3a%2f%2fwww.gluster.com%2f"
                    target="_blank"><font face="sans-serif" size="2"><a class="moz-txt-link-freetext" href="http://www.gluster.com">http://www.gluster.com</a></font></a><font
                    face="sans-serif" size="2">&gt;</font>
                  <br>
                  <font face="sans-serif" size="2">GlusterFS comes with
                    ABSOLUTELY NO WARRANTY.</font> <br>
                  <font face="sans-serif" size="2">You may redistribute
                    copies of GlusterFS under the terms of the GNU
                    General Public License.</font> <br>
                  <font face="sans-serif" size="2"># gluster volume heal
                    info heal-failed</font> <br>
                  <font face="sans-serif" size="2">Usage: volume heal
                    &lt;VOLNAME&gt; [enable | disable | full |statistics
                    [heal-count [replica &lt;HOSTNAME:BRICKNAME&gt;]]
                    |info [healed | heal-failed | split-brain]
                    |split-brain {bigger-file &lt;FILE&gt; |source-brick
                    &lt;HOSTNAME:BRICKNAME&gt; [&lt;FILE&gt;]}]</font>
                  <br>
                  <font face="sans-serif" size="2"># gluster volume heal
                    c_glusterfs info heal-failed</font> <br>
                  <font face="sans-serif" size="2">Command not
                    supported. Please use "gluster volume heal
                    c_glusterfs info" and logs to find the heal
                    information.</font> <br>
                  <font face="sans-serif" size="2"># lhsh 002500</font>
                  <br>
                  <font face="sans-serif" size="2"> _______  _____  
                    _____              _____ __   _ _     _ _     _</font>
                  <br>
                  <font face="sans-serif" size="2"> |       |_____]
                    |_____]      |        |   | \  | |     |  \___/</font>
                  <br>
                  <font face="sans-serif" size="2"> |_____  |       |  
                             |_____ __|__ |  \_| |_____| _/   \_</font>
                  <br>
                  <br>
                  <font face="sans-serif" size="2">002500&gt; gluster
                    --version</font> <br>
                  <font face="sans-serif" size="2">glusterfs 3.7.8 built
                    on Feb 17 2016 07:49:49</font> <br>
                  <font face="sans-serif" size="2">Repository revision:
                    git://<a moz-do-not-send="true"
                      href="http://git.gluster.com/glusterfs.git">git.gluster.com/glusterfs.git</a></font>
                  <br>
                  <font face="sans-serif" size="2">Copyright (c)
                    2006-2011 Gluster Inc. &lt;</font><a
                    moz-do-not-send="true"
href="https://prod-webmail.windriver.com/owa/redir.aspx?SURL=1n3NinBc2tJluL9mRvtdRtuM7FXSFmZ7aHgTkNSgQ7vm1RuX9kPTCGgAdAB0AHAAOgAvAC8AdwB3AHcALgBnAGwAdQBzAHQAZQByAC4AYwBvAG0ALwA.&amp;URL=http%3a%2f%2fwww.gluster.com%2f"
                    target="_blank"><font face="sans-serif" size="2"><a class="moz-txt-link-freetext" href="http://www.gluster.com">http://www.gluster.com</a></font></a><font
                    face="sans-serif" size="2">&gt;</font>
                  <br>
                  <font face="sans-serif" size="2">GlusterFS comes with
                    ABSOLUTELY NO WARRANTY.</font> <br>
                  <font face="sans-serif" size="2">You may redistribute
                    copies of GlusterFS under the terms of the GNU
                    General Public License.</font> <br>
                  <font face="sans-serif" size="2">002500&gt; <br>
                    <br>
                  </font></span></font></span></font></div>
        <div><font face="Tahoma" size="2" color="black"><span
              style="font-size:10pt" dir="ltr"><font face="Times New
                Roman" size="2"><span style="font-size:16px"><font
                    face="sans-serif" size="2">Regards,<br>
                  </font></span></font></span></font></div>
        <div><font face="Tahoma" size="2" color="black"><span
              style="font-size:10pt" dir="ltr"><font face="Times New
                Roman" size="2"><span style="font-size:16px"><font
                    face="sans-serif" size="2">Abhishek<br>
                  </font>
                </span></font></span></font></div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Thu, Mar 3, 2016 at 4:54 PM,
          ABHISHEK PALIWAL <span dir="ltr">&lt;<a
              moz-do-not-send="true"
              href="mailto:abhishpaliwal@gmail.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:abhishpaliwal@gmail.com">abhishpaliwal@gmail.com</a></a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div class="gmail_extra"><br>
                <div class="gmail_quote"><span class="">On Thu, Mar 3,
                    2016 at 4:10 PM, Ravishankar N <span dir="ltr">&lt;<a
                        moz-do-not-send="true"
                        href="mailto:ravishankar@redhat.com"
                        target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:ravishankar@redhat.com">ravishankar@redhat.com</a></a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div>
                        <div>Hi,<span><br>
                            <br>
                            On 03/03/2016 11:14 AM, ABHISHEK PALIWAL
                            wrote:<br>
                          </span></div>
                        <blockquote type="cite">
                          <div dir="ltr">
                            <div>
                              <div>
                                <div>
                                  <div>
                                    <div>
                                      <div>Hi Ravi,<br>
                                        <br>
                                      </div>
                                      <span> As I discussed earlier this
                                        issue, I investigated this issue
                                        and find that healing is not
                                        triggered because the "gluster
                                        volume heal c_glusterfs info
                                        split-brain" command not showing
                                        any entries as a outcome of this
                                        command even though the file in
                                        split brain case.<br>
                                      </span></div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </blockquote>
                        <br>
                        Couple of observations from the
                        'commands_output' file.<br>
                        <br>
                        getfattr -d -m . -e hex
                        opt/lvmdir/c2/brick/logfiles/availability/CELLO_AVAILABILITY2_LOG.xml<br>
                        The afr xattrs do not indicate that the file is
                        in split brain:<br>
                        # file:
                        opt/lvmdir/c2/brick/logfiles/availability/CELLO_AVAILABILITY2_LOG.xml<br>
trusted.afr.c_glusterfs-client-1=0x000000000000000000000000<br>
                        trusted.afr.dirty=0x000000000000000000000000<br>
trusted.bit-rot.version=0x000000000000000b56d6dd1d000ec7a9<br>
                        trusted.gfid=0x9f5e354ecfda40149ddce7d5ffe760ae<br>
                        <br>
                        <br>
                        <br>
                        getfattr -d -m . -e hex
                        opt/lvmdir/c2/brick/logfiles/availability/CELLO_AVAILABILITY2_LOG.xml<br>
trusted.afr.c_glusterfs-client-0=0x000000080000000000000000<br>
trusted.afr.c_glusterfs-client-2=0x000000020000000000000000<br>
trusted.afr.c_glusterfs-client-4=0x000000020000000000000000<br>
trusted.afr.c_glusterfs-client-6=0x000000020000000000000000<br>
                        trusted.afr.dirty=0x000000000000000000000000<br>
trusted.bit-rot.version=0x000000000000000b56d6dcb7000c87e7<br>
                        trusted.gfid=0x9f5e354ecfda40149ddce7d5ffe760ae<br>
                        <br>
                        1. There doesn't seem to be a split-brain going
                        by the trusted.afr* xattrs.<br>
                      </div>
                    </blockquote>
                    <div><br>
                    </div>
                  </span>
                  <div>if it is not the split brain problem then how can
                    I resolve this.<br>
                     <br>
                  </div>
                  <span class="">
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div> 2. You seem to have re-used the bricks from
                        another volume/setup. For replica 2, only
                        trusted.afr.c_glusterfs-client-0 and
                        trusted.afr.c_glusterfs-client-1 must be present
                        but I see 4 xattrs - client-0,2,4 and 6 <br>
                      </div>
                    </blockquote>
                    <div><br>
                    </div>
                  </span>
                  <div>could you please suggest why these entries are
                    there because I am not able to find out scenario. I
                    am rebooting the one board multiple times to
                    reproduce the issue and after every reboot doing the
                    remove-brick and add-brick on the same volume for
                    the second board.<br>
                     <br>
                  </div>
                  <span class="">
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div text="#000000" bgcolor="#FFFFFF"> 3. On the
                        rebooted node, do you have ssl enabled by any
                        chance? There is a bug for "Not able to fetch
                        volfile' when ssl is enabled: <a
                          moz-do-not-send="true"
                          href="https://bugzilla.redhat.com/show_bug.cgi?id=1258931"
                          target="_blank"><a class="moz-txt-link-freetext" href="https://bugzilla.redhat.com/show_bug.cgi?id=1258931">https://bugzilla.redhat.com/show_bug.cgi?id=1258931</a></a><br>
                        <br>
                        Btw, you for data and metadata split-brains you
                        can use the gluster CLI  <a
                          moz-do-not-send="true"
href="https://github.com/gluster/glusterfs-specs/blob/master/done/Features/heal-info-and-split-brain-resolution.md"
                          target="_blank"><a class="moz-txt-link-freetext" href="https://github.com/gluster/glusterfs-specs/blob/master/done/Features/heal-info-and-split-brain-resolution.md">https://github.com/gluster/glusterfs-specs/blob/master/done/Features/heal-info-and-split-brain-resolution.md</a></a>
                        instead of modifying the file from the back end.<br>
                      </div>
                    </blockquote>
                    <div><br>
                    </div>
                  </span>
                  <div>But you are saying it is not split brain problem
                    and even the split-brain command  is not showing any
                    file so how can I find the bigger file in size. Also
                    in my case the file size is fix 2MB it is
                    overwritten every time.  <br>
                  </div>
                  <div>
                    <div class="h5">
                      <blockquote class="gmail_quote" style="margin:0 0
                        0 .8ex;border-left:1px #ccc
                        solid;padding-left:1ex">
                        <div text="#000000" bgcolor="#FFFFFF"> <br>
                          -Ravi
                          <div>
                            <div><br>
                              <blockquote type="cite">
                                <div dir="ltr">
                                  <div>
                                    <div>
                                      <div>
                                        <div>
                                          <div><br>
                                          </div>
                                          So, what I have done I
                                          manually deleted the gfid
                                          entry of that file from
                                          .glusterfs directory and
                                          follow the instruction
                                          mentioned in the following
                                          link to do heal<br>
                                          <br>
                                          <a moz-do-not-send="true"
href="https://github.com/gluster/glusterfs/blob/master/doc/debugging/split-brain.md"
                                            target="_blank">https://github.com/gluster/glusterfs/blob/master/doc/debugging/split-brain.md</a><br>
                                          <br>
                                        </div>
                                        and this works fine for me.<br>
                                        <br>
                                      </div>
                                      But my question is why the
                                      split-brain command not showing
                                      any file in output.<br>
                                      <br>
                                    </div>
                                    <div>Here I am attaching all the log
                                      which I get from the node for you
                                      and also the output of commands
                                      from both of the boards<br>
                                      <br>
                                    </div>
                                    <div>In this tar file two
                                      directories are present <br>
                                      <br>
                                    </div>
                                    <div>000300 - log for the board
                                      which is running continuously<br>
                                    </div>
                                    <div>002500-  log for the board
                                      which is rebooted <br>
                                      <br>
                                    </div>
                                    <div>I am waiting for your reply
                                      please help me out on this issue.<br>
                                      <br>
                                    </div>
                                    <div>Thanks in advanced.<br>
                                    </div>
                                    <div><br>
                                    </div>
                                    Regards,<br>
                                  </div>
                                  Abhishek<br>
                                </div>
                                <div class="gmail_extra"><br>
                                  <div class="gmail_quote">On Fri, Feb
                                    26, 2016 at 1:21 PM, ABHISHEK
                                    PALIWAL <span dir="ltr">&lt;<a
                                        moz-do-not-send="true"
                                        href="mailto:abhishpaliwal@gmail.com"
                                        target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:abhishpaliwal@gmail.com">abhishpaliwal@gmail.com</a></a>&gt;</span>
                                    wrote:<br>
                                    <blockquote class="gmail_quote"
                                      style="margin:0 0 0
                                      .8ex;border-left:1px #ccc
                                      solid;padding-left:1ex">
                                      <div dir="ltr">
                                        <div class="gmail_extra">
                                          <div class="gmail_quote"><span>On
                                              Fri, Feb 26, 2016 at 10:28
                                              AM, Ravishankar N <span
                                                dir="ltr">&lt;<a
                                                  moz-do-not-send="true"
href="mailto:ravishankar@redhat.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:ravishankar@redhat.com">ravishankar@redhat.com</a></a>&gt;</span>
                                              wrote:<br>
                                            </span>
                                            <blockquote
                                              class="gmail_quote"
                                              style="margin:0px 0px 0px
                                              0.8ex;border-left:1px
                                              solid
                                              rgb(204,204,204);padding-left:1ex">
                                              <div text="#000000"
                                                bgcolor="#FFFFFF"><span>
                                                  <div>On 02/26/2016
                                                    10:10 AM, ABHISHEK
                                                    PALIWAL wrote:<br>
                                                  </div>
                                                  <blockquote
                                                    type="cite">
                                                    <p dir="ltr">Yes
                                                      correct</p>
                                                  </blockquote>
                                                  <br>
                                                  Okay, so when you say
                                                  the files are not in
                                                  sync until some time,
                                                  are you getting stale
                                                  data when accessing
                                                  from the mount?<br>
                                                  I'm not able to figure
                                                  out why heal info
                                                  shows zero when the
                                                  files are not in sync,
                                                  despite all IO
                                                  happening from the
                                                  mounts. Could you
                                                  provide the output of
                                                  getfattr -d -m . -e
                                                  hex /brick/file-name
                                                  from both bricks when
                                                  you hit this issue?</span>
                                                <div>
                                                  <div><br>
                                                  </div>
                                                  <div>I'll provide the
                                                    logs once I get.
                                                    here delay means we
                                                    are powering on the
                                                    second board after
                                                    the 10 minutes.<br>
                                                  </div>
                                                  <div>
                                                    <div>
                                                      <div> <br>
                                                        <br>
                                                        <blockquote
                                                          type="cite">
                                                          <div
                                                          class="gmail_quote">On
                                                          Feb 26, 2016
                                                          9:57 AM,
                                                          "Ravishankar
                                                          N" &lt;<a
                                                          moz-do-not-send="true"
href="mailto:ravishankar@redhat.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:ravishankar@redhat.com">ravishankar@redhat.com</a></a>&gt;


                                                          wrote:<br
                                                          type="attribution">
                                                          <blockquote
                                                          class="gmail_quote"
                                                          style="margin:0
                                                          0 0
                                                          .8ex;border-left:1px
                                                          #ccc
                                                          solid;padding-left:1ex">
                                                          <div
                                                          text="#000000"
bgcolor="#FFFFFF">
                                                          <div>Hello,<br>
                                                          <br>
                                                          On 02/26/2016
                                                          08:29 AM,
                                                          ABHISHEK
                                                          PALIWAL wrote:<br>
                                                          </div>
                                                          <blockquote
                                                          type="cite">
                                                          <div dir="ltr">
                                                          <div>
                                                          <div>
                                                          <div>
                                                          <div>
                                                          <div>
                                                          <div>
                                                          <div>Hi Ravi,<br>
                                                          <br>
                                                          </div>
                                                          Thanks for the
                                                          response.<br>
                                                          <br>
                                                          </div>
                                                          We are using
                                                          Glugsterfs-3.7.8<br>
                                                          <br>
                                                          Here is the
                                                          use case:<br>
                                                          <br>
                                                          <span
                                                          style="color:rgb(0,0,0)">We

                                                          have a logging
                                                          file which
                                                          saves logs of
                                                          the events for
                                                          every board of
                                                          a node and
                                                          these files
                                                          are in sync
                                                          using
                                                          glusterfs.
                                                          System in
                                                          replica 2 mode
                                                          it means <span>When

                                                          one brick in a
                                                          replicated
                                                          volume goes
                                                          offline, the
                                                          glusterd
                                                          daemons on the
                                                          other nodes
                                                          keep track of
                                                          all the files
                                                          that are not
                                                          replicated to
                                                          the offline
                                                          brick. When
                                                          the offline
                                                          brick becomes
                                                          available
                                                          again, the
                                                          cluster
                                                          initiates a
                                                          healing
                                                          process,
                                                          replicating
                                                          the updated
                                                          files to that
                                                          brick. </span>But

                                                          in our casse,
                                                          we see that
                                                          log file of
                                                          one board is
                                                          not in the
                                                          sync and its
                                                          format is
                                                          corrupted
                                                          means files
                                                          are not in
                                                          sync.</span><br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </blockquote>
                                                          <br>
                                                          Just to
                                                          understand you
                                                          correctly, you
                                                          have mounted
                                                          the 2 node
                                                          replica-2
                                                          volume on both
                                                          these nodes
                                                          and writing to
                                                          a logging file
                                                          from the
                                                          mounts right?
                                                          <br>
                                                          <br>
                                                          <blockquote
                                                          type="cite">
                                                          <div dir="ltr">
                                                          <div>
                                                          <div>
                                                          <div>
                                                          <div>
                                                          <div><br>
                                                          </div>
                                                          Even the
                                                          outcome of <span><span>#gluster

                                                          volume heal
                                                          c_glusterfs
                                                          info shows
                                                          that there is
                                                          no pending
                                                          heals.<br>
                                                          <br>
                                                          </span></span><span><span>Also

                                                          , The logging
                                                          file which is
                                                          updated is of
                                                          fixed size and
                                                          the new
                                                          entries will
                                                          be wrapped
                                                          ,overwriting
                                                          the old
                                                          entries.<br>
                                                          <br>
                                                          This way we
                                                          have seen that
                                                          after few
                                                          restarts , the
                                                          contents of
                                                          the same file
                                                          on two bricks
                                                          are different
                                                          , but the
                                                          volume heal
                                                          info shows
                                                          zero entries<br>
                                                          <br>
                                                          </span></span></div>
                                                          <span><span>Solution:<br>
                                                          <br>
                                                          </span></span></div>
                                                          <span><span>But
                                                          when we tried
                                                          to put delay </span></span><span><span><span><span>
                                                          &gt; 5 min</span></span>
                                                          before the
                                                          healing
                                                          everything is
                                                          working fine.<br>
                                                          <br>
                                                          </span></span></div>
                                                          <span><span>Regards,<br>
                                                          </span></span></div>
                                                          <span><span>Abhishek<br>
                                                          </span></span>
                                                          </div>
                                                          <div
                                                          class="gmail_extra"><br>
                                                          <div
                                                          class="gmail_quote">On

                                                          Fri, Feb 26,
                                                          2016 at 6:35
                                                          AM,
                                                          Ravishankar N
                                                          <span
                                                          dir="ltr">&lt;<a
moz-do-not-send="true" href="mailto:ravishankar@redhat.com"
                                                          target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:ravishankar@redhat.com">ravishankar@redhat.com</a></a>&gt;</span>
                                                          wrote:<br>
                                                          <blockquote
                                                          class="gmail_quote"
                                                          style="margin:0
                                                          0 0
                                                          .8ex;border-left:1px
                                                          #ccc
                                                          solid;padding-left:1ex">
                                                          <div
                                                          text="#000000"
bgcolor="#FFFFFF"><span>
                                                          <div>On
                                                          02/25/2016
                                                          06:01 PM,
                                                          ABHISHEK
                                                          PALIWAL wrote:<br>
                                                          </div>
                                                          <blockquote
                                                          type="cite">
                                                          <div dir="ltr">
                                                          <div>
                                                          <div>
                                                          <div>
                                                          <div>Hi,<br>
                                                          <br>
                                                          </div>
                                                          Here, I have
                                                          one query
                                                          regarding the
                                                          time taken by
                                                          the healing
                                                          process.<br>
                                                          </div>
                                                          In current two
                                                          node setup
                                                          when we
                                                          rebooted one
                                                          node then the
                                                          self-healing
                                                          process starts
                                                          less than 5min
                                                          interval on
                                                          the board
                                                          which
                                                          resulting the
                                                          corruption of
                                                          the some files
                                                          data.<br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </blockquote>
                                                          <br>
                                                          </span> Heal
                                                          should start
                                                          immediately
                                                          after the
                                                          brick process
                                                          comes up. What
                                                          version of
                                                          gluster are
                                                          you using?
                                                          What do you
                                                          mean by
                                                          corruption of
                                                          data? Also,
                                                          how did you
                                                          observe that
                                                          the heal
                                                          started after
                                                          5 minutes?<br>
                                                          -Ravi<br>
                                                          <blockquote
                                                          type="cite"><span>
                                                          <div dir="ltr">
                                                          <div>
                                                          <div><br>
                                                          </div>
                                                          And to resolve
                                                          it I have
                                                          search on
                                                          google and
                                                          found the
                                                          following
                                                          link:<br>
                                                          <a
                                                          moz-do-not-send="true"
href="https://support.rackspace.com/how-to/glusterfs-troubleshooting/"
                                                          target="_blank"><a class="moz-txt-link-freetext" href="https://support.rackspace.com/how-to/glusterfs-troubleshooting/">https://support.rackspace.com/how-to/glusterfs-troubleshooting/</a></a><br>
                                                          <br>
                                                          </div>
                                                          <div>Mentioning

                                                          that the
                                                          healing
                                                          process can
                                                          takes upto
                                                          10min of time
                                                          to start this
                                                          process.<br>
                                                          <br>
                                                          </div>
                                                          <div>Here is
                                                          the statement
                                                          from the link:<br>
                                                          <br>
                                                          "Healing
                                                          replicated
                                                          volumes <br>
                                                          <br>
                                                          When any brick
                                                          in a
                                                          replicated
                                                          volume goes
                                                          offline, the
                                                          glusterd
                                                          daemons on the
                                                          remaining
                                                          nodes keep
                                                          track of all
                                                          the files that
                                                          are not
                                                          replicated to
                                                          the offline
                                                          brick. When
                                                          the offline
                                                          brick becomes
                                                          available
                                                          again, the
                                                          cluster
                                                          initiates a
                                                          healing
                                                          process,
                                                          replicating
                                                          the updated
                                                          files to that
                                                          brick. <b>The
                                                          start of this
                                                          process can
                                                          take up to 10
                                                          minutes, based
                                                          on
                                                          observation.</b>"
                                                          <br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div>After
                                                          giving the
                                                          time of more
                                                          than 5 min
                                                          file
                                                          corruption
                                                          problem has
                                                          been resolved.<br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div>So, Here
                                                          my question is
                                                          there any way
                                                          through which
                                                          we can reduce
                                                          the time taken
                                                          by the healing
                                                          process to
                                                          start?<br>
                                                          <br>
                                                          </div>
                                                          <br>
                                                          Regards,<br>
                                                          Abhishek
                                                          Paliwal<br
                                                          clear="all">
                                                          <br>
                                                          <br>
                                                          </div>
                                                          <br>
                                                          <fieldset></fieldset>
                                                          <br>
                                                          </span>
                                                          <pre>_______________________________________________
Gluster-devel mailing list
<a moz-do-not-send="true" href="mailto:Gluster-devel@gluster.org" target="_blank">Gluster-devel@gluster.org</a>
<a moz-do-not-send="true" href="http://www.gluster.org/mailman/listinfo/gluster-devel" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-devel</a></pre>
                                                          </blockquote>
                                                          <br>
                                                          <br>
                                                          </div>
                                                          </blockquote>
                                                          </div>
                                                          <br>
                                                          <br
                                                          clear="all">
                                                          <br>
                                                          -- <br>
                                                          <div>
                                                          <div dir="ltr"><br>
                                                          <br>
                                                          <br>
                                                          <br>
                                                          Regards<br>
                                                          Abhishek
                                                          Paliwal<br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </blockquote>
                                                          <br>
                                                          <br>
                                                          </div>
                                                          </blockquote>
                                                          </div>
                                                        </blockquote>
                                                        <br>
                                                        <br>
                                                      </div>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                              <span><font
                                                  color="#888888"> </font></span></blockquote>
                                          </div>
                                          <span><font color="#888888"><br>
                                              <br clear="all">
                                              <br>
                                              -- <br>
                                              <div>
                                                <div dir="ltr"><br>
                                                  <br>
                                                  <br>
                                                  <br>
                                                  Regards<br>
                                                  Abhishek Paliwal<br>
                                                </div>
                                              </div>
                                            </font></span></div>
                                      </div>
                                    </blockquote>
                                  </div>
                                  <br>
                                  <br clear="all">
                                  <br>
                                  -- <br>
                                  <div>
                                    <div dir="ltr"><br>
                                      <br>
                                      <br>
                                      <br>
                                      Regards<br>
                                      Abhishek Paliwal<br>
                                    </div>
                                  </div>
                                </div>
                              </blockquote>
                              <br>
                              <br>
                            </div>
                          </div>
                        </div>
                      </blockquote>
                    </div>
                  </div>
                </div>
                <span class="HOEnZb"><font color="#888888"><br>
                    <br clear="all">
                    <br>
                    -- <br>
                    <div>
                      <div dir="ltr"><br>
                        <br>
                        <br>
                        <br>
                        Regards<br>
                        Abhishek Paliwal<br>
                      </div>
                    </div>
                  </font></span></div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        <div class="gmail_signature">
          <div dir="ltr"><br>
            <br>
            <br>
            <br>
            Regards<br>
            Abhishek Paliwal<br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    <br>
  </body>
</html>