Problem with IP of VPSs [message #49857] |
Tue, 25 June 2013 14:59  |
khangninh
Messages: 2 Registered: June 2013 Location: Vietnam
|
Junior Member |
|
|
Hello!
I have two vps uses OpenVZ,
VPS1: 192.168.100.1 hostname: node1
VPS2: 192.168.100.2 hostname: node2
I install glusterfs at follow link
www.howtoforge.com/high-availability-storage-with-glusterfs- 3.2.x-on-centos-6.3-automatic-file-replication-mirror-across -two-storage-servers
At step show
output of vps1:
Number of Peers: 1
Hostname: node2
Uuid: 87324932-ca3b-4243-97fe-44ef4883e938
State: Peer in Cluster (Connected)
and node2:
Number of Peers: 1
Hostname: [b]27.0.12.1[/b]
Uuid: b919b5e3-9559-4400-9166-809cf30853b1
State: Peer in Cluster (Disconnected)
27.0.12.1 is Ip of real server,
In this case Hostname must be 192.168.100.1 instead of 27.0.12.1
Please help me this problem.
Thanks
|
|
|
|
Re: Problem with IP of VPSs [message #49862 is a reply to message #49858] |
Wed, 26 June 2013 00:58   |
khangninh
Messages: 2 Registered: June 2013 Location: Vietnam
|
Junior Member |
|
|
when i try command:
the result is:
1: node1 (192.168.100.1) 0.169ms pmtu 1500
1: mx12136.super.com (27.0.12.1) 0.051ms
1: mx12136.super.com (27.0.12.1) 0.030ms
2: node2 (192.168.100.2) 0.081ms reached
In node2, it recognizes ip of node1 is 27.0.12.1 instead of 192.168.100.1, thus, it cannot connect to node1
Are there any solution for connect directly from node1 to node2?
The same problem when I install mysql cluster
[Updated on: Wed, 26 June 2013 01:01] Report message to a moderator
|
|
|
Re: Problem with IP of VPSs [message #49867 is a reply to message #49857] |
Wed, 26 June 2013 06:29  |
Paparaciz
Messages: 302 Registered: August 2009
|
Senior Member |
|
|
if you are usint NAT, than you will see HN ip address in other HN (or in CTs which are in other HN).
you can add local ip address from same subnet in HN than both HN and CTs will be in same network and will see each other.
or you can setup services based on HN ip address (in this case 27.0.12.1)
|
|
|