<div dir="ltr">Hi Tom,<div><br></div><div>I think you could use the replace-brick sub-command; like: "gluster volume replace-brick <vol> <host>:/bricks/0/gv01     <host>:/bricks/0/abc-gv01  commit force"</div><div>see; <a href="https://docs.gluster.org/en/latest/Administrator-Guide/Managing-Volumes/#replace-brick">https://docs.gluster.org/en/latest/Administrator-Guide/Managing-Volumes/#replace-brick</a></div><div><br></div><div>Kind regards,</div><div><br></div><div>Olaf</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op di 4 jan. 2022 om 12:50 schreef Stefan Solbrig <<a href="mailto:stefan.solbrig@ur.de">stefan.solbrig@ur.de</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I use the sequence below to move a brick to a different peer. I assume it also works for renaming a brick (just put peer01 = peer02 = whateveryourpeeris).  I used this on a distributed-only volume (no replication) running glusterfs 9.3. <br>
Please note that I didn't to extensive tests and I didn't find any documentation if this is officially supported.<br>
<br>
best wishes,<br>
-Stefan<br>
<br>
#----------------------<br>
<br>
    # stop glusterfsd for brick:<br>
<br>
gluster v reset-brick gvol peer01:/old/path start<br>
<br>
    # in your case,  you probably want to do something here like<br>
<br>
mv  /old/path /new/path      <br>
<br>
    #  add the moved path as new brick:<br>
<br>
gluster v add-brick gvol peer02:/new/path force<br>
<br>
    # Order is important!<br>
    # if brick is removed before other brick is added,<br>
    # will lead to duplicate files.<br>
    #  remove old brick (which does not exist any longer)<br>
<br>
gluster v remove-brick gvol peer01:/old/path force<br>
<br>
    # probably not necessary in your case:<br>
<br>
gluster v rebalance gvol fix-layout  start<br>
<br>
#------------------<br>
<br>
<br>
> Hey All,<br>
> <br>
> Is there a way to rename a brick within an existing gluster volume?<br>
> <br>
> /bricks/0/gv01  -> /bricks/0/abc-gv01<br>
> <br>
> <br>
> <br>
> -- <br>
> Thx,<br>
> TK.<br>
> <br>
<br>
________<br>
<br>
<br>
<br>
Community Meeting Calendar:<br>
<br>
Schedule -<br>
Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC<br>
Bridge: <a href="https://meet.google.com/cpu-eiue-hvk" rel="noreferrer" target="_blank">https://meet.google.com/cpu-eiue-hvk</a><br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="https://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">https://lists.gluster.org/mailman/listinfo/gluster-users</a><br>
</blockquote></div>