<div dir="ltr">You have just modified the on-disk stored information. The in-memory information still is the IP. GlusterD only reads the on-disk file when starting up, and after that uses the in-memory information for all operations. This is why you still see the IP in peer status. You have to restart GlusterD on Node2 and Node3 to load the information from the modified file.<div><br></div><div>But instead of the above, you have simpler option to set the hostname for Node1.</div><div>- Probe Node2 and Node3 from Node1 as normal (&quot;gluster peer probe node2&quot;, &quot;gluster peer probe node3&quot;). After this Node1 will be referred to by it&#39;s IP on Node2 and Node3.</div><div>- From one of Node2 or Node3, do a reverse probe on Node1 (&quot;gluster peer probe node1&quot;). This will update the IP to hostname everywhere (in-memory, on-disk and on all nodes).</div><div><br></div><div>If you are using glusterfs-3.6 and above, doing the reverse probe on Node1 will not change the IP to hostname. Instead an extra name is attached to Node1 and will be displayed in peer status under &#39;Other Names&#39;.</div><div><br></div><div>~kaushal</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 25, 2015 at 12:54 PM, 可樂我 <span dir="ltr">&lt;<a href="mailto:colacolameme@gmail.com" target="_blank">colacolameme@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div>Hi all,<br></div>I have a problem about probe new node by hostname<br></div>i have three nodes, (Node1, Node-2, Node3)<br></div><div>Node1 hostname: node1<br></div><div>Node2 hostname: node2<br></div><div>Node3 hostname: node3<br><br></div><div>Step 1:<br></div>Node1 probe Node2<br></div><div># gluster probe node2<br></div><div><br></div>Step 2:<br></div>modify the peer file of Node2<br>hostanme1=IP of Node1 =&gt; hostname1=node1(hostname of Node1)<br><br></div>Step 3:<br></div>Node1 probe Node3<br></div>#gluster probe node3<br><br></div>Step 4:<br>modify the peer file of Node2<br>hostanme1=IP of Node1 =&gt; hostname1=node1(hostname of Node1)<br><br></div>but it still show the IP of Node1 in hostname when I execute <u>gluster peer status</u> cmd<br></div>if I want to hostname of all peer in cluster will only show hostname,how can I do? <br></div><div>is any solution to fix the problem?<br></div><div>Thank you very much!!<br></div></div>
<br>_______________________________________________<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" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a><br></blockquote></div><br></div>