Re: Renaming Peers

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

 



Thanks.  Luckily this system isn't in production yet so it shouldn't be a big deal to take gluster offline for a bit.


On 01/06/2017 12:28 AM, Atin Mukherjee wrote:
On Fri, Jan 6, 2017 at 4:14 AM, Michael Watters <wattersm@xxxxxxxxxx> wrote:
I've set up a small gluster cluster running three nodes and I would like
to rename one of the hosts.  What is the proper procedure for changing
the host name on a node?  Do I simply stop the gluster service, detach
the peer and then run sed on the files under /var/lib/gluster to use the
new name?  Any other locations that I should be aware of?

You need not to detach the peer. Here are the steps you'd need to follow:

1. Stop glusterd process on N1, N2, N3.
2. If you are trying to change the hostname of N1, then in N2 & N3 you'd need to replace the occurrences of old hostname  with new hostname in all the files located at /var/lib/glusterd
3. Restart GlusterD on all the nodes and check the peer status.


_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-users



--

~ Atin (atinm)

_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://www.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