<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jan 6, 2017 at 4:14 AM, Michael Watters <span dir="ltr">&lt;<a href="mailto:wattersm@watters.ws" target="_blank">wattersm@watters.ws</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;ve set up a small gluster cluster running three nodes and I would like<br>
to rename one of the hosts.  What is the proper procedure for changing<br>
the host name on a node?  Do I simply stop the gluster service, detach<br>
the peer and then run sed on the files under /var/lib/gluster to use the<br>
new name?  Any other locations that I should be aware of?<br></blockquote><div><br></div><div>You need not to detach the peer. Here are the steps you&#39;d need to follow:<br><br></div><div>1. Stop glusterd process on N1, N2, N3.<br></div><div>2. If you are trying to change the hostname of N1, then in N2 &amp; N3 you&#39;d need to replace the occurrences of old hostname  with new hostname in all the files located at /var/lib/glusterd<br></div><div>3. Restart GlusterD on all the nodes and check the peer status.<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
______________________________<wbr>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://www.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://www.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><br></div><div>~ Atin (atinm)<br></div></div></div></div>
</div></div>