<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>You can also see the documentation here
<a class="moz-txt-link-freetext" href="https://gluster.readthedocs.io/en/latest/Administrator%20Guide/Managing%20Volumes/#shrinking-volumes">https://gluster.readthedocs.io/en/latest/Administrator%20Guide/Managing%20Volumes/#shrinking-volumes</a></p>
    <p><br>
    </p>
    Rafi KC<br>
    <br>
    <div class="moz-cite-prefix">On 07/29/2016 11:39 AM, Mohammed Rafi K
      C wrote:<br>
    </div>
    <blockquote
      cite="mid:96b35457-4374-6756-adab-d307d96ecc10@redhat.com"
      type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      <p><br>
      </p>
      <p>I will summarize the procedure for removing a brick with
        description.</p>
      <p><br>
      </p>
      <p>1) start an add brick operation using gluster volume
        remov-brick command. This command will mark the mentioned brick
        as a decommissioned brick. Also, this will kick a process that
        will start migrating data from the decommissioned brick to the
        other bricks.</p>
      <p>2) Once the migration is finished you can safely do a
        remove-brick commit.</p>
      <p>3) Or if you wish to stop the process and reset the
        decommissioned brick, you can do remove-brick stop. This will
        not migrate the data back to the decommissioned brick. It will
        stay in the other bricks and the data will be still accessible,
        if you want to have proper load balancing after this, you can
        start rebalance process.<br>
      </p>
      4) If you wish to do an instant remove brick you can use force
      option, which will not migrate data, hence your whole data in the
      removed brick will be lost from mount point.<br>
      <br>
      <br>
      <div class="moz-cite-prefix">On 07/29/2016 01:25 AM, Lenovo
        Lastname wrote:<br>
      </div>
      <blockquote
cite="mid:1234059445.6039355.1469735702774.JavaMail.yahoo@mail.yahoo.com"
        type="cite">
        <div style="color:#000; background-color:#fff;
          font-family:HelveticaNeue-Light, Helvetica Neue Light,
          Helvetica Neue, Helvetica, Arial, Lucida Grande,
          sans-serif;font-size:8px">
          <div id="yui_3_16_0_ym19_1_1469735580774_2532"><span>I'm using
              3.7.11, this command works with me,</span></div>
          <div id="yui_3_16_0_ym19_1_1469735580774_2531"><span></span><br>
          </div>
          <div id="yui_3_16_0_ym19_1_1469735580774_2518" dir="ltr"><span
              id="yui_3_16_0_ym19_1_1469735580774_2517">!remove-brick<br
                id="yui_3_16_0_ym19_1_1469735580774_2514">
              [root@node2 ~]# gluster volume remove-brick v1 replica 2
              192.168.3.73:/gfs/b1/v1 force<br
                id="yui_3_16_0_ym19_1_1469735580774_2515">
              Removing brick(s) can result in data loss. Do you want to
              Continue? (y/n) y<br
                id="yui_3_16_0_ym19_1_1469735580774_2516">
              volume remove-brick commit force: success</span></div>
          <div id="yui_3_16_0_ym19_1_1469735580774_2519" dir="ltr"><span></span><br>
          </div>
          <div id="yui_3_16_0_ym19_1_1469735580774_2521" dir="ltr"><span
              id="yui_3_16_0_ym19_1_1469735580774_2520">Don't know about
              the commit thingy...</span></div>
          <div class="qtdSeparateBR"><br>
            <br>
          </div>
          <div class="yahoo_quoted" style="display: block;">
            <div style="font-family: HelveticaNeue-Light, Helvetica Neue
              Light, Helvetica Neue, Helvetica, Arial, Lucida Grande,
              sans-serif; font-size: 8px;">
              <div style="font-family: HelveticaNeue, Helvetica Neue,
                Helvetica, Arial, Lucida Grande, sans-serif; font-size:
                16px;">
                <div dir="ltr"><font face="Arial" size="2"> On Thursday,
                    July 28, 2016 3:47 PM, Richard Klein (RSI) <a
                      moz-do-not-send="true"
                      class="moz-txt-link-rfc2396E"
                      href="mailto:rklein@rsitex.com"><a class="moz-txt-link-rfc2396E" href="mailto:rklein@rsitex.com">&lt;rklein@rsitex.com&gt;</a></a>
                    wrote:<br>
                  </font></div>
                <br>
                <br>
                <div class="y_msg_container">
                  <div id="yiv5393753197">
                    <style><!--
#yiv5393753197  
 _filtered #yiv5393753197 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
#yiv5393753197  
#yiv5393753197 p.yiv5393753197MsoNormal, #yiv5393753197 li.yiv5393753197MsoNormal, #yiv5393753197 div.yiv5393753197MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", "sans-serif";}
#yiv5393753197 a:link, #yiv5393753197 span.yiv5393753197MsoHyperlink
        {color:blue;text-decoration:underline;}
#yiv5393753197 a:visited, #yiv5393753197 span.yiv5393753197MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
#yiv5393753197 span.yiv5393753197EmailStyle17
        {font-family:"Calibri", "sans-serif";color:windowtext;}
#yiv5393753197 .yiv5393753197MsoChpDefault
        {font-family:"Calibri", "sans-serif";}
 _filtered #yiv5393753197 {margin:1.0in 1.0in 1.0in 1.0in;}
#yiv5393753197 div.yiv5393753197WordSection1
        {}
--></style>
                    <div>
                      <div class="yiv5393753197WordSection1">
                        <div class="yiv5393753197MsoNormal">We are using
                          Gluster 3.7.6 in a replica 2
                          distributed-replicate configuration.  I am
                          wondering when we do a remove-brick with just
                          one brick pair will the data be moved off the
                          bricks once the status show complete and then
                          you do the commit?    Also, if you start a
                          remove-brick process can you stop it?  Is
                          there an abort or stop command or do you just
                          don’t do the commit?</div>
                        <div class="yiv5393753197MsoNormal">  </div>
                        <div class="yiv5393753197MsoNormal">Any help
                          would be appreciated.</div>
                        <div class="yiv5393753197MsoNormal">  </div>
                        <div class="yiv5393753197MsoNormal">Richard
                          Klein</div>
                        <div class="yiv5393753197MsoNormal">RSI</div>
                        <div class="yiv5393753197MsoNormal">  </div>
                        <div class="yiv5393753197MsoNormal">  </div>
                        <div class="yiv5393753197MsoNormal">  </div>
                      </div>
                    </div>
                  </div>
                  <br>
                  _______________________________________________<br>
                  Gluster-users mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:Gluster-users@gluster.org"
                    ymailto="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://www.gluster.org/mailman/listinfo/gluster-users"
                    target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a><br>
                  <br>
                </div>
              </div>
            </div>
          </div>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
Gluster-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a></pre>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>