Re: [EXT] Renaming a brick.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxx>:
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@xxxxxxxxxxx
https://lists.gluster.org/mailman/listinfo/gluster-users
________



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@xxxxxxxxxxx
https://lists.gluster.org/mailman/listinfo/gluster-users

[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux