<p dir="ltr">Can you configure your /etc/hosts file to include these hostnames along with their IPs? That should solve your problem I guess.</p>
<p dir="ltr">-Atin<br>
Sent from one plus one</p>
<div class="gmail_quote">On Sep 24, 2015 3:26 PM, &quot;Aki Ketolainen&quot; &lt;<a href="mailto:ak-su@outlook.com">ak-su@outlook.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Hi,<br><br>I was trying to setup glusterfs 3.7.4-2<span style="background-color:rgb(255,255,204)" name="textmarker_1"></span> on CentOS 6.7 on Microsoft Azure.<br>We are fortunate to receive service from Microsoft Bizspark program for startups.<br>Unfortunately, we are forced to run the virtual machines on separate Azure accounts.<br>This in turn <span style="background-color:rgb(255,255,204)" name="textmarker_20"></span><span style="background-color:rgb(255,255,204)" name="textmarker_19"></span><span style="background-color:rgb(255,204,153)" name="textmarker_18"></span>causes the VM&#39;s not being able to ping each other.<br><br>Reading the gluster <span style="background-color:rgb(255,255,204)" name="textmarker_28"></span><span style="background-color:rgb(255,255,204)" name="textmarker_27"></span>documentation at <a href="http://gluster.readthedocs.org/en/latest/Install-Guide/Configure/" target="_blank">http://gluster.readthedocs.org/en/latest/Install-Guide/Configure/</a><br>it says &quot;For the Gluster to communicate within a cluster either the firewalls
have to be turned off or enable communication for each server.&quot;<br><br>In my case this is impossible because the VM&#39;s under different Azure accounts are unable to<br>ping each other. This restriction is a design choice Microsoft has made<span style="background-color:rgb(255,204,153)" name="textmarker_65"></span><span style="background-color:rgb(255,204,153)" name="textmarker_64"></span><span style="background-color:rgb(255,255,204)" name="textmarker_63"></span><span style="background-color:rgb(255,204,153)" name="textmarker_62"></span>.<span style="background-color:rgb(255,204,153)" name="textmarker_66"></span> The needed glusterfs <br>service ports are open between the VM&#39;s.<span style="background-color:rgb(255,204,153)" name="textmarker_72"></span><span style="background-color:rgb(255,255,204)" name="textmarker_71"></span><span style="background-color:rgb(255,204,204)" name="textmarker_70"></span><span style="background-color:rgb(255,255,204)" name="textmarker_69"></span><br><span style="background-color:rgb(255,255,204)" name="textmarker_68"></span><span style="background-color:rgb(255,255,204)" name="textmarker_67"></span><br><span style="background-color:rgb(255,255,204)" name="textmarker_61"></span><span style="background-color:rgb(255,204,204)" name="textmarker_60"></span><span style="background-color:rgb(255,204,153)" name="textmarker_59"></span><span style="background-color:rgb(255,204,153)" name="textmarker_58"></span><span style="background-color:rgb(255,255,204)" name="textmarker_57"></span>What could be a remedy to this problem?<span style="background-color:rgb(255,204,153)" name="textmarker_55"></span><span style="background-color:rgb(255,204,204)" name="textmarker_54"></span><span style="background-color:rgb(255,204,153)" name="textmarker_53"></span><span style="background-color:rgb(255,204,204)" name="textmarker_52"></span><br><br>Here&#39;s detailed information about my setup:<br><br>(on hostA)<br># gluster peer status<br>Number of Peers: 1<br><br>Hostname: hostB.domain<br>Uuid: 7e468940-97e5-4595-a835-5eeedae07770<br>State: Peer in Cluster (Connected)<br><br>(on hostB)<br># gluster peer status<br>Number of Peers: 1<br><br>Hostname: hostA.domain<br>Uuid: 1a5a62a8-4e08-4f06-9f5d-e159a2f7e5c9<br>State: Peer in Cluster (Connected)<br><br>(on hostA)<br># gluster volume create home replica 2 hostA.domain:/data/home/gv0 hostB.domain:/data/home/gv0<br>volume create: home: failed: Host hostA.domain is not in &#39;Peer in Cluster&#39; state<br><br>(/var/log/glusterfs/etc-glusterfs-glusterd.vol.log)<br>[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<br>[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 &#39;Peer in Cluster&#39; state<br>[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 &#39;Peer in Cluster&#39; state<br>[2015-09-22 07:59:08.515908] E [MSGID: 106301] [glusterd-syncop.c:1274:gd_stage_op_phase] 0-management: Staging of operation &#39;Volume Create&#39; failed on localhost : Host hostA.domain is not in &#39;Peer in Cluster&#39; state<br><span style="background-color:rgb(255,204,153)" name="textmarker_51"></span><span style="background-color:rgb(255,204,204)" name="textmarker_50"></span><span style="background-color:rgb(255,255,204)" name="textmarker_49"></span><span style="background-color:rgb(255,204,153)" name="textmarker_48"></span><span style="background-color:rgb(255,255,204)" name="textmarker_47"></span><br>Best regards,<br><br>Aki<br><br><br><span style="background-color:rgb(255,255,204)" name="textmarker_46"></span><span style="background-color:rgb(255,204,204)" name="textmarker_45"></span><span style="background-color:rgb(255,255,204)" name="textmarker_44"></span><span style="background-color:rgb(255,255,204)" name="textmarker_43"></span><span style="background-color:rgb(255,255,204)" name="textmarker_42"></span><span style="background-color:rgb(255,255,204)" name="textmarker_41"></span><span style="background-color:rgb(255,255,204)" name="textmarker_40"></span><span style="background-color:rgb(255,255,204)" name="textmarker_39"></span><span style="background-color:rgb(255,204,153)" name="textmarker_38"></span><span style="background-color:rgb(255,204,204)" name="textmarker_37"></span><span style="background-color:rgb(255,204,204)" name="textmarker_36"></span><span style="background-color:rgb(255,204,153)" name="textmarker_35"></span><span style="background-color:rgb(255,204,153)" name="textmarker_34"></span><span style="background-color:rgb(255,255,204)" name="textmarker_33"></span><span style="background-color:rgb(255,255,204)" name="textmarker_26"></span><span style="background-color:rgb(255,204,204)" name="textmarker_25"></span><span style="background-color:rgb(255,255,204)" name="textmarker_24"></span><span style="background-color:rgb(255,204,204)" name="textmarker_23"></span><span style="background-color:rgb(255,255,204)" name="textmarker_22"></span><span style="background-color:rgb(255,204,153)" name="textmarker_21"></span><span style="background-color:rgb(255,255,204)" name="textmarker_17"></span><span style="background-color:rgb(255,255,204)" name="textmarker_16"></span><span style="background-color:rgb(255,255,204)" name="textmarker_15"></span><span style="background-color:rgb(255,204,153)" name="textmarker_14"></span><span style="background-color:rgb(255,255,204)" name="textmarker_13"></span><span style="background-color:rgb(255,255,204)" name="textmarker_12"></span><span style="background-color:rgb(255,255,204)" name="textmarker_11"></span><span style="background-color:rgb(255,204,153)" name="textmarker_10"></span><span style="background-color:rgb(255,204,204)" name="textmarker_9"></span><span style="background-color:rgb(255,204,153)" name="textmarker_8"></span><span style="background-color:rgb(255,204,153)" name="textmarker_7"></span><span style="background-color:rgb(255,255,204)" name="textmarker_6"></span><span style="background-color:rgb(255,204,153)" name="textmarker_5"></span><span style="background-color:rgb(255,255,204)" name="textmarker_4"></span><span style="background-color:rgb(255,255,204)" name="textmarker_3"></span><span style="background-color:rgb(255,255,204)" name="textmarker_2"></span>                                               </div></div>
<br>_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://www.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a><br></blockquote></div>