<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 30, 2016 at 5:52 PM, Kevin Lemonnier <span dir="ltr">&lt;<a target="_blank" href="mailto:lemonnierk@ulrar.net">lemonnierk@ulrar.net</a>&gt;</span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">Hi,<br>
<br>
I&#39;m about to bump a 1x3 (replicated) volume up to 2x3, but I just realised the 3 new servers<br>
are physically in the same datacenter. Is there a safe way to switch a brick from the first<br>
replica set with one from the second replica set ?<br>
<br>
The only way I see how would be to go down to replica 2, removing a brick from the first replica,<br>
then add 2 of the new servers as disperese (at that point the volume would be 2x2),<br>
then go up to replica 3 adding the third one plus the one I removed earlier.<br>
That should work, right ? There is no other &quot;better&quot; way of doing it ?<br></blockquote><div><br></div><div>What you want to do sounds like replace-brick. From what I remember you use sharding,so all the replace-brick changes after 3.7.3 release are already in, so you just need to execute &quot;gluster volume replace-brick &lt;VOLNAME&gt; &lt;SOURCE-BRICK&gt; &lt;NEW-BRICK&gt; commit force&quot;. Please make sure new-brick has no data. This will involve full brick healing. So you may want to wait for that to complete before starting add-brick/rebalance. Let us know if you find something that you don&#39;t expect in your test runs of this step.<br><br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<br>
Thanks,<br>
<span class="gmail-HOEnZb"><font color="#888888">--<br>
Kevin Lemonnier<br>
PGP Fingerprint : 89A5 2283 04A0 E6E9 0111<br>
</font></span><br>______________________________<wbr>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a target="_blank" rel="noreferrer" href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Pranith<br></div></div>
</div></div>