<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 10, 2017 at 2:53 AM, Lindsay Mathieson <span dir="ltr"><<a href="mailto:lindsay.mathieson@gmail.com" target="_blank">lindsay.mathieson@gmail.com</a>></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 class="">
<div class="m_848716329518677412moz-cite-prefix">On 9/06/2017 9:56 PM, Pranith Kumar
Karampuri wrote:<br>
</div>
<blockquote type="cite">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>>
gluster volume remove-brick datastore4 replica 2<br>
> vna.proxmox.softlog:/tank/vmda<wbr>ta/datastore4 force<br>
><br>
> gluster volume add-brick datastore4 replica 3<br>
> vnd.proxmox.softlog:/tank/vmda<wbr>ta/datastore4<br>
<br>
</span>I think that should work perfectly fine yes, either that<br>
or directly use replace-brick ?<br>
</blockquote>
<div><br>
</div>
<div>Yes, this should be replace-brick </div>
</blockquote>
<p><br>
</p>
</span><p>Was there any problem in doing the way I did?</p></div></blockquote><div>You won't notice the problem. But it is inefficient.<br></div><div>AFR keeps track of which brick is good/bad based on the xattrs on the bricks. If you have 3 nodes A,B,C then on each brick there can be at least 2-3 extra AFR xattrs of the form (trusted.afr.<volname>-client-[0/1/2]. When you replace C->D then the same xattrs will stay. But when you remove C and add D it will treat it as a new brick and add one more xattr like trusted.afr.<volname>-client-3. So it is better to use replace-brick for this case.<br><br></div><div>Add-brick/remove-brick is for users who make the decision to make the decision that they either want to increase the replica count of an existing volume or decrease it.<br><br><br></div><div>HTH</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF"><span class="HOEnZb"><font color="#888888">
<pre class="m_848716329518677412moz-signature" cols="72">--
Lindsay Mathieson</pre>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Pranith<br></div></div>
</div></div>