Re: [Gluster-users] gluster probe node by hostname

2015-03-25 Thread 可樂我
Thanks for your answer!
I am using glusterfs-3.6 and I know the situation you talk about.
I will see the 'Other Names' when I reverse probe node.

I still see the hostname and ip peer status when I restart GlusterD of
Node3 after modify peer file in Node3
But I don't want to see the any ip in peer status, how can I do?
Thank you very much

2015-03-26 11:37 GMT+08:00 可樂我 :

> Thanks for your answer!
> I am using glusterfs-3.6 and I know the situation you talk about.
> I will see the 'Other Names' when I reverse probe node.
>
> I still see the hostname and ip peer status when I restart GlusterD of
> Node3 after modify peer file in Node3
> But I don't want to see the any ip in peer status, how can I do?
> Thank you very much
>
>
> 2015-03-25 16:50 GMT+08:00 Kaushal M :
>
>> 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, 可樂我  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@gluster.org
>>> http://www.gluster.org/mailman/listinfo/gluster-users
>>>
>>
>>
>
___
Gluster-users mailing list
Gluster-users@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-users

Re: [Gluster-users] gluster probe node by hostname

2015-03-25 Thread Kaushal M
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, 可樂我  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@gluster.org
> http://www.gluster.org/mailman/listinfo/gluster-users
>
___
Gluster-users mailing list
Gluster-users@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-users

Re: [Gluster-users] gluster probe node by hostname

2015-03-25 Thread A Ghoshal
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:   可樂我 
To: gluster-users@gluster.org
Date:   03/25/2015 12:54 PM
Subject:[Gluster-users] gluster probe node by hostname
Sent by:gluster-users-boun...@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@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


___
Gluster-users mailing list
Gluster-users@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-users

[Gluster-users] gluster probe node by hostname

2015-03-25 Thread 可樂我
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@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-users