[Gluster-users] [EXT] Renaming a brick.

Olaf Buitelaar olaf.buitelaar at gmail.com
Tue Jan 4 13:55:09 UTC 2022


Hi Tom,

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"
see;
https://docs.gluster.org/en/latest/Administrator-Guide/Managing-Volumes/#replace-brick

Kind regards,

Olaf

Op di 4 jan. 2022 om 12:50 schreef Stefan Solbrig <stefan.solbrig at ur.de>:

> Hi,
>
> 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.
> Please note that I didn't to extensive tests and I didn't find any
> documentation if this is officially supported.
>
> best wishes,
> -Stefan
>
> #----------------------
>
>     # stop glusterfsd for brick:
>
> gluster v reset-brick gvol peer01:/old/path start
>
>     # in your case,  you probably want to do something here like
>
> mv  /old/path /new/path
>
>     #  add the moved path as new brick:
>
> gluster v add-brick gvol peer02:/new/path force
>
>     # Order is important!
>     # if brick is removed before other brick is added,
>     # will lead to duplicate files.
>     #  remove old brick (which does not exist any longer)
>
> gluster v remove-brick gvol peer01:/old/path force
>
>     # probably not necessary in your case:
>
> gluster v rebalance gvol fix-layout  start
>
> #------------------
>
>
> > Hey All,
> >
> > Is there a way to rename a brick within an existing gluster volume?
> >
> > /bricks/0/gv01  -> /bricks/0/abc-gv01
> >
> >
> >
> > --
> > Thx,
> > TK.
> >
>
> ________
>
>
>
> Community Meeting Calendar:
>
> Schedule -
> Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC
> Bridge: https://meet.google.com/cpu-eiue-hvk
> Gluster-users mailing list
> Gluster-users at gluster.org
> https://lists.gluster.org/mailman/listinfo/gluster-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20220104/269cfdcc/attachment.html>


More information about the Gluster-users mailing list