<div dir="auto">Yes but why killing gluster notifies all clients and a graceful shutdown don&#39;t?<div dir="auto">I think this is a bug, if I&#39;m shutting down a server, it&#39;s obvious that all clients should stop to connect to it....</div></div><div class="gmail_extra"><br><div class="gmail_quote">Il 30 giu 2017 3:24 AM, &quot;Ravishankar N&quot; &lt;<a 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&#39;t see the hang. See Xavi&#39;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 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"><u></u><u></u></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></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 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 class="m_8241733359455602474moz-txt-link-rfc2396E" href="mailto:ravishankar@redhat.com" target="_blank">&lt;ravishankar@redhat.com&gt;</a><br>
            <b>Cc :</b> <a class="m_8241733359455602474moz-txt-link-abbreviated" href="mailto:gluster-users@gluster.org" target="_blank">gluster-users@gluster.org</a>; Renaud Fortier
            <a 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 ?<u></u><u></u></span></p>
        <p class="MsoNormal"><u></u> <u></u></p>
        <div>
          <p class="MsoNormal">Init.d/system.d script doesn&#39;t kill
            gluster automatically on reboot/shutdown?<u></u><u></u></p>
        </div>
        <div>
          <p class="MsoNormal"><u></u> <u></u></p>
          <div>
            <p class="MsoNormal">Il 29 giu 2017 5:16 PM, &quot;Ravishankar N&quot;
              &lt;<a href="mailto:ravishankar@redhat.com" target="_blank">ravishankar@redhat.com</a>&gt;
              ha scritto:<u></u><u></u></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:<u></u><u></u></p>
                </div>
                <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
                  <div>
                    <p class="MsoNormal">Hi,<u></u><u></u></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.<u></u><u></u></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>
                  <u></u><u></u></p>
                <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
                  <div>
                    <p class="MsoNormal"> <u></u><u></u></p>
                    <p class="MsoNormal">My
                      setup is :<u></u><u></u></p>
                    <p class="MsoNormal">-4
                      gluster 3.10.3 nodes on debian 8 (jessie)<u></u><u></u></p>
                    <p class="MsoNormal">-3
                      volumes Distributed-Replicate 2 X 2 = 4<u></u><u></u></p>
                    <p class="MsoNormal"> <u></u><u></u></p>
                    <p class="MsoNormal">Thank
                      you<u></u><u></u></p>
                    <p class="MsoNormal">Renaud<u></u><u></u></p>
                  </div>
                  <p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
                  <pre>______________________________<wbr>_________________<u></u><u></u></pre>
                  <pre>Gluster-users mailing list<u></u><u></u></pre>
                  <pre><a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><u></u><u></u></pre>
                  <pre><a href="http://lists.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a><u></u><u></u></pre>
                </blockquote>
                <p><u></u> <u></u></p>
              </div>
              <p class="MsoNormal"><br>
                ______________________________<wbr>_________________<br>
                Gluster-users mailing list<br>
                <a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
                <a href="http://lists.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a><u></u><u></u></p>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    <p><br>
    </p>
  </div>

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