Re: gluster probe node by hostname

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

 



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@xxxxxxxxx> 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@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-users

_______________________________________________
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