<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 06/30/2017 12:53 PM, Gandalf
      Corvotempesta wrote:<br>
    </div>
    <blockquote
cite="mid:CAJH6TXhto-iLMNXuGbUDTLxD1J15MDA3pvJJtOhZMq=mUP10ww@mail.gmail.com"
      type="cite">
      <div dir="auto">Yes but why killing gluster notifies all clients
        and a graceful shutdown don't?
        <div dir="auto">I think this is a bug, if I'm shutting down a
          server, it's obvious that all clients should stop to connect
          to it....</div>
      </div>
    </blockquote>
    <br>
    Oh It is a bug (or a known-issue <span class="moz-smiley-s3"><span>;-)</span></span>
    ) alright but I do not know at what layer (kernel/tcp-ip or
    user-space/gluster) the fix needs to be done. Maybe someone who is
    familiar with the tcp layer and connection timeouts can pitch in.<br>
    -Ravi<br>
    <blockquote
cite="mid:CAJH6TXhto-iLMNXuGbUDTLxD1J15MDA3pvJJtOhZMq=mUP10ww@mail.gmail.com"
      type="cite">
      <div class="gmail_extra"><br>
        <div class="gmail_quote">Il 30 giu 2017 3:24 AM, "Ravishankar N"
          &lt;<a moz-do-not-send="true"
            href="mailto:ravishankar@redhat.com">ravishankar@redhat.com</a>&gt;
          ha scritto:<br type="attribution">
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div class="m_8241733359455602474moz-cite-prefix">On
                06/30/2017 12:40 AM, Renaud Fortier wrote:<br>
              </div>
              <blockquote type="cite">
                <div class="m_8241733359455602474WordSection1">
                  <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">On
                      my nodes, when i use the system.d script to kill
                      gluster (service glusterfs-server stop) only
                      glusterd is killed. Then I guess the shutdown
                      doesn’t kill everything !</span></p>
                </div>
              </blockquote>
              <br>
              Killing glusterd does not kill other gluster processes.<br>
              <br>
              When you shutdown a node, everything obviously gets killed
              but the client does not get notified immediately that the
              brick went down, leading for it to wait for the 42 second
              ping-timeout after which it assumes the brick is down.
              When you kill the brick manually before shutdown, the
              client immediate  receives the notification and you don't
              see the hang. See Xavi's description in Bug 1054694.<br>
              <br>
              So if it is a planned shutdown or reboot, it is better to
              kill the gluster processes before shutting the node down.
              BTW, you can use
              <a moz-do-not-send="true"
                class="m_8241733359455602474moz-txt-link-freetext"
href="https://github.com/gluster/glusterfs/blob/master/extras/stop-all-gluster-processes.sh"
                target="_blank">https://github.com/gluster/<wbr>glusterfs/blob/master/extras/<wbr>stop-all-gluster-processes.sh</a>
              which automatically checks for pending heals etc before
              killing the gluster processes.<br>
              <br>
              -Ravi<br>
               <br>
              <br>
              <blockquote type="cite">
                <div class="m_8241733359455602474WordSection1">
                  <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"></span></p>
                  <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"> </span></p>
                  <p class="MsoNormal"><b><span
                        style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"
                        lang="FR">De :</span></b><span
                      style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"
                      lang="FR"> Gandalf Corvotempesta [<a
                        moz-do-not-send="true"
                        class="m_8241733359455602474moz-txt-link-freetext"
                        href="mailto:gandalf.corvotempesta@gmail.com"
                        target="_blank">mailto:gandalf.corvotempesta@<wbr>gmail.com</a>]
                      <br>
                      <b>Envoyé :</b> 29 juin 2017 13:41<br>
                      <b>À :</b> Ravishankar N <a
                        moz-do-not-send="true"
                        class="m_8241733359455602474moz-txt-link-rfc2396E"
                        href="mailto:ravishankar@redhat.com"
                        target="_blank">&lt;ravishankar@redhat.com&gt;</a><br>
                      <b>Cc :</b> <a moz-do-not-send="true"
                        class="m_8241733359455602474moz-txt-link-abbreviated"
                        href="mailto:gluster-users@gluster.org"
                        target="_blank">gluster-users@gluster.org</a>;
                      Renaud Fortier <a moz-do-not-send="true"
                        class="m_8241733359455602474moz-txt-link-rfc2396E"
                        href="mailto:Renaud.Fortier@fsaa.ulaval.ca"
                        target="_blank">&lt;Renaud.Fortier@fsaa.ulaval.<wbr>ca&gt;</a><br>
                      <b>Objet :</b> Re: [Gluster-users] How to shutdown
                      a node properly ?</span></p>
                  <p class="MsoNormal"> </p>
                  <div>
                    <p class="MsoNormal">Init.d/system.d script doesn't
                      kill gluster automatically on reboot/shutdown?</p>
                  </div>
                  <div>
                    <p class="MsoNormal"> </p>
                    <div>
                      <p class="MsoNormal">Il 29 giu 2017 5:16 PM,
                        "Ravishankar N" &lt;<a moz-do-not-send="true"
                          href="mailto:ravishankar@redhat.com"
                          target="_blank">ravishankar@redhat.com</a>&gt;
                        ha scritto:</p>
                      <blockquote style="border:none;border-left:solid
                        #cccccc 1.0pt;padding:0cm 0cm 0cm
                        6.0pt;margin-left:4.8pt;margin-right:0cm">
                        <div>
                          <div>
                            <p class="MsoNormal">On 06/29/2017 08:31 PM,
                              Renaud Fortier wrote:</p>
                          </div>
                          <blockquote
                            style="margin-top:5.0pt;margin-bottom:5.0pt">
                            <div>
                              <p class="MsoNormal">Hi,</p>
                              <p class="MsoNormal">Everytime I shutdown
                                a node, I lost access (from clients) to
                                the volumes for 42 seconds
                                (network.ping-timeout). Is there a
                                special way to shutdown a node to keep
                                the access to the volumes without
                                interruption ? Currently, I use the
                                ‘shutdown’ or ‘reboot’ command.</p>
                            </div>
                          </blockquote>
                          <p class="MsoNormal">`<span
                              class="m_8241733359455602474m8247256111198925433gmail-pl-c">killall
                              glusterfs glusterfsd glusterd` before
                              issuing shutdown or reboot. If it is a
                              replica or EC volume, ensure that there
                              are no pending heals before bringing down
                              a node. i.e. `gluster volume heal volname
                              info` should show 0 entries.</span><br>
                            <br>
                            <br>
                          </p>
                          <blockquote
                            style="margin-top:5.0pt;margin-bottom:5.0pt">
                            <div>
                              <p class="MsoNormal"> </p>
                              <p class="MsoNormal">My setup is :</p>
                              <p class="MsoNormal">-4 gluster 3.10.3
                                nodes on debian 8 (jessie)</p>
                              <p class="MsoNormal">-3 volumes
                                Distributed-Replicate 2 X 2 = 4</p>
                              <p class="MsoNormal"> </p>
                              <p class="MsoNormal">Thank you</p>
                              <p class="MsoNormal">Renaud</p>
                            </div>
                            <p class="MsoNormal"
                              style="margin-bottom:12.0pt"> </p>
                            <pre>______________________________<wbr>_________________</pre>
                  <pre>Gluster-users mailing list</pre>
                  <pre><a moz-do-not-send="true" href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a></pre>
                  <pre><a moz-do-not-send="true" href="http://lists.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a></pre>
                </blockquote>
                <p> </p>
              </div>
              <p class="MsoNormal">

                ______________________________<wbr>_________________

                Gluster-users mailing list

                <a moz-do-not-send="true" href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a>

                <a moz-do-not-send="true" href="http://lists.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a></p>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    <p>

    </p>
  </div>

</blockquote></div></div>



</blockquote><p>
</p></body></html>