[Gluster-users] Renaming Peers

Michael Watters wattersm at watters.ws
Fri Jan 6 15:25:16 UTC 2017


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 at watters.ws
> <mailto:wattersm at watters.ws>> 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 at gluster.org <mailto:Gluster-users at gluster.org>
>     http://www.gluster.org/mailman/listinfo/gluster-users
>     <http://www.gluster.org/mailman/listinfo/gluster-users>
>
>
>
>
> -- 
>
> ~ Atin (atinm)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20170106/cc363e0d/attachment.html>


More information about the Gluster-users mailing list