Can you configure your /etc/hosts file to include these hostnames along with their IPs? That should solve your problem I guess.
-Atin
Sent from one plus one
On Sep 24, 2015 3:26 PM, "Aki Ketolainen" <ak-su@xxxxxxxxxxx> wrote:
Hi,
I was trying to setup glusterfs 3.7.4-2 on CentOS 6.7 on Microsoft Azure.
We are fortunate to receive service from Microsoft Bizspark program for startups.
Unfortunately, we are forced to run the virtual machines on separate Azure accounts.
This in turn causes the VM's not being able to ping each other.
Reading the gluster documentation at http://gluster.readthedocs.org/en/latest/Install-Guide/Configure/
it says "For the Gluster to communicate within a cluster either the firewalls have to be turned off or enable communication for each server."
In my case this is impossible because the VM's under different Azure accounts are unable to
ping each other. This restriction is a design choice Microsoft has made. The needed glusterfs
service ports are open between the VM's.
What could be a remedy to this problem?
Here's detailed information about my setup:
(on hostA)
# gluster peer status
Number of Peers: 1
Hostname: hostB.domain
Uuid: 7e468940-97e5-4595-a835-5eeedae07770
State: Peer in Cluster (Connected)
(on hostB)
# gluster peer status
Number of Peers: 1
Hostname: hostA.domain
Uuid: 1a5a62a8-4e08-4f06-9f5d-e159a2f7e5c9
State: Peer in Cluster (Connected)
(on hostA)
# gluster volume create home replica 2 hostA.domain:/data/home/gv0 hostB.domain:/data/home/gv0
volume create: home: failed: Host hostA.domain is not in 'Peer in Cluster' state
(/var/log/glusterfs/etc-glusterfs-glusterd.vol.log)
[2015-09-22 07:54:36.374674] I [MSGID: 106487] [glusterd-handler.c:1402:__glusterd_handle_cli_list_friends] 0-glusterd: Received cli list req
[2015-09-22 07:59:08.515867] E [MSGID: 106452] [glusterd-utils.c:5569:glusterd_new_brick_validate] 0-management: Host hostA.domain is not in 'Peer in Cluster' state
[2015-09-22 07:59:08.515896] E [MSGID: 106536] [glusterd-volume-ops.c:1273:glusterd_op_stage_create_volume] 0-management: Host hostA.domain is not in 'Peer in Cluster' state
[2015-09-22 07:59:08.515908] E [MSGID: 106301] [glusterd-syncop.c:1274:gd_stage_op_phase] 0-management: Staging of operation 'Volume Create' failed on localhost : Host hostA.domain is not in 'Peer in Cluster' state
Best regards,
Aki
_______________________________________________
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