Hi all, I have a problem about probe new node by hostname i have three nodes, (Node1, Node-2, Node3) Node1 hostname: node1 Node2 hostname: node2 Node3 hostname: node3 Step 1: Node1 probe Node2 # gluster probe node2 Step 2: modify the peer file of Node2 hostanme1=IP of Node1 => hostname1=node1(hostname of Node1) Step 3: Node1 probe Node3 #gluster probe node3 Step 4: modify the peer file of Node2 hostanme1=IP of Node1 => hostname1=node1(hostname of Node1) but it still show the IP of Node1 in hostname when I execute *gluster peer status* cmd if I want to hostname of all peer in cluster will only show hostname,how can I do? is any solution to fix the problem? Thank you very much!! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20150325/8368dac9/attachment.html>
Hi, Do you probe by hostname or by IP? We probe our servers by hostname. Provided both servers are up and each one knows what IP's the hostnames resolve to, gluster peer status displays only hostnames. Thanks, Anirban From: ??? <colacolameme at gmail.com> To: gluster-users at gluster.org Date: 03/25/2015 12:54 PM Subject: [Gluster-users] gluster probe node by hostname Sent by: gluster-users-bounces at gluster.org Hi all, I have a problem about probe new node by hostname i have three nodes, (Node1, Node-2, Node3) Node1 hostname: node1 Node2 hostname: node2 Node3 hostname: node3 Step 1: Node1 probe Node2 # gluster probe node2 Step 2: modify the peer file of Node2 hostanme1=IP of Node1 => hostname1=node1(hostname of Node1) Step 3: Node1 probe Node3 #gluster probe node3 Step 4: modify the peer file of Node2 hostanme1=IP of Node1 => hostname1=node1(hostname of Node1) but it still show the IP of Node1 in hostname when I execute gluster peer status cmd if I want to hostname of all peer in cluster will only show hostname,how can I do? is any solution to fix the problem? Thank you very much!!_______________________________________________ Gluster-users mailing list Gluster-users at gluster.org http://www.gluster.org/mailman/listinfo/gluster-users =====-----=====-----====Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20150325/77a57896/attachment.html>
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. But instead of the above, you have simpler option to set the hostname for Node1. - Probe Node2 and Node3 from Node1 as normal ("gluster peer probe node2", "gluster peer probe node3"). After this Node1 will be referred to by it's IP on Node2 and Node3. - From one of Node2 or Node3, do a reverse probe on Node1 ("gluster peer probe node1"). This will update the IP to hostname everywhere (in-memory, on-disk and on all nodes). 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 'Other Names'. ~kaushal On Wed, Mar 25, 2015 at 12:54 PM, ??? <colacolameme at gmail.com> wrote:> Hi all, > I have a problem about probe new node by hostname > i have three nodes, (Node1, Node-2, Node3) > Node1 hostname: node1 > Node2 hostname: node2 > Node3 hostname: node3 > > Step 1: > Node1 probe Node2 > # gluster probe node2 > > Step 2: > modify the peer file of Node2 > hostanme1=IP of Node1 => hostname1=node1(hostname of Node1) > > Step 3: > Node1 probe Node3 > #gluster probe node3 > > Step 4: > modify the peer file of Node2 > hostanme1=IP of Node1 => hostname1=node1(hostname of Node1) > > but it still show the IP of Node1 in hostname when I execute *gluster > peer status* cmd > if I want to hostname of all peer in cluster will only show hostname,how > can I do? > is any solution to fix the problem? > Thank you very much!! > > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://www.gluster.org/mailman/listinfo/gluster-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20150325/d98c9d1a/attachment.html>