<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_1_1425367176815_32267"><span id="yui_3_16_0_1_1425367176815_33615">Yes dig and ping works fine. I used first the short hostname gfs1 and then I also tried gfs1.intra.domain.com. That did not change anything.<br></span></div><div id="yui_3_16_0_1_1425367176815_37014" dir="ltr"><span><br></span></div><div id="yui_3_16_0_1_1425367176815_35545" dir="ltr"><span id="yui_3_16_0_1_1425367176815_35544"> Currently for testing I only have a single node setup so my "gluster peer status" output would be empty.</span></div><div id="yui_3_16_0_1_1425367176815_35546" dir="ltr"><br></div><div id="yui_3_16_0_1_1425367176815_35547" dir="ltr">Now I had a closed look at the brick logfile and it looks like my network is not read at the time glusterfsd kicks in. I can see <br>the following entry:</div><div id="yui_3_16_0_1_1425367176815_37013" dir="ltr"><br></div><div id="yui_3_16_0_1_1425367176815_35548" dir="ltr">[2015-03-03 13:45:48.647981] E [name.c:249:af_inet_client_get_remote_sockaddr] 0-glusterfs: DNS resolution failed on host gfs1.intra.domain.com</div><div id="yui_3_16_0_1_1425367176815_35549" dir="ltr"><br></div><div id="yui_3_16_0_1_1425367176815_35552" dir="ltr">happening at exactly 13:45:48 but on my Cisco Switch I can see the following log entry:</div><div id="yui_3_16_0_1_1425367176815_35551" dir="ltr"><br></div><div id="yui_3_16_0_1_1425367176815_35550" dir="ltr">Mar&nbsp; 3 13:45:51: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/9, changed state to up</div><div id="yui_3_16_0_1_1425367176815_35553" dir="ltr"><br></div><div id="yui_3_16_0_1_1425367176815_35554" dir="ltr">So as you see my switch's port is only ready 3 seconds later at: 13:45:51, which is too late for glusterfsd. Strangely enough I use "spanning-tree portfast" on all my ports and as such the switch ports are ready as soon as possible. I have the feeling here that there is an issue with the /etc/init.d/glusterfs-server script on Debian wheezy from the glusterfs-server package. Can anyone confirm and maybe fix this for the future?</div><div id="yui_3_16_0_1_1425367176815_36043" dir="ltr"><br></div> <div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> On Tuesday, March 3, 2015 12:57 PM, Claudio Kuenzler &lt;ck@claudiokuenzler.com&gt; wrote:<br> </font> </div>  <br><br> <div class="y_msg_container"><div id="yiv8333037136"><div><div dir="ltr"><div>Can you resolve the other gluster peers with "dig"?<br clear="none"></div>Are you able to "ping" the other peers, too?<br clear="none"></div><div class="yiv8333037136gmail_extra"><br clear="none"><div class="yiv8333037136gmail_quote">On Tue, Mar 3, 2015 at 12:38 PM, ML mail <span dir="ltr">&lt;<a rel="nofollow" shape="rect" ymailto="mailto:mlnospam@yahoo.com" target="_blank" href="mailto:mlnospam@yahoo.com">mlnospam@yahoo.com</a>&gt;</span> wrote:<br clear="none"><blockquote class="yiv8333037136gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Well the weird thing is that my DNS resolver servers are configured correctly and working fine. Here below is the exact error message from the brick log file:<br clear="none">
<br clear="none">
[2015-03-03 11:34:21.731639] E [common-utils.c:223:gf_resolve_ip6] 0-resolver: getaddrinfo failed (Name or service not known)<br clear="none">
[2015-03-03 11:34:21.731654] E [name.c:249:af_inet_client_get_remote_sockaddr] 0-glusterfs: DNS resolution failed on host <a rel="nofollow" shape="rect" target="_blank" href="http://gfs1.intra.domain.com/">gfs1.intra.domain.com</a><br clear="none">
[2015-03-03 11:34:21.731707] E [glusterfsd-mgmt.c:1601:mgmt_rpc_notify] 0-glusterfsd-mgmt: failed to connect with remote-host: <a rel="nofollow" shape="rect" target="_blank" href="http://gfs1.intra.domain.com/">gfs1.intra.domain.com</a> (Success)<br clear="none">
[2015-03-03 11:34:21.731724] I [glusterfsd-mgmt.c:1607:mgmt_rpc_notify] 0-glusterfsd-mgmt: Exhausted all volfile servers<br clear="none">
<br clear="none">
I checked in my /etc/hosts file and I have the following entry:<br clear="none">
<br clear="none">
<br clear="none">
127.0.1.1&nbsp; &nbsp; &nbsp; &nbsp;<a rel="nofollow" shape="rect" target="_blank" href="http://gfs1.intra.domain.com/">gfs1.intra.domain.com</a>&nbsp; &nbsp;gfs1a<br clear="none">
<br clear="none">
This is Debian's default and did not touch the hosts file. I also tried to remove this 127.0.1.1 but nothing changed.<br clear="none">
<div class="yiv8333037136HOEnZb"><div class="yiv8333037136h5"><br clear="none">
<br clear="none">
On Tuesday, March 3, 2015 10:33 AM, Claudio Kuenzler &lt;<a rel="nofollow" shape="rect" ymailto="mailto:ck@claudiokuenzler.com" target="_blank" href="mailto:ck@claudiokuenzler.com">ck@claudiokuenzler.com</a>&gt; wrote:<br clear="none">
<br clear="none">
<br clear="none">
<br clear="none">
Hi ML,<br clear="none">
<br clear="none">
Here's what I have noted down in my personal documentation when I installed GlusterFS the first time in 2013 (also on Debian Wheezy with 3.5.2):<br clear="none">
<br clear="none">
"All cluster nodes MUST resolve each other through DNS (preferred) or /etc/hosts."<br clear="none">
An entry in /etc/hosts is probably even more safe because you don't depend on external DNS resolvers.<br clear="none">
cheers,ck<br clear="none">
<br clear="none">
<br clear="none">
On Tue, Mar 3, 2015 at 8:43 AM, ML mail &lt;<a rel="nofollow" shape="rect" ymailto="mailto:mlnospam@yahoo.com" target="_blank" href="mailto:mlnospam@yahoo.com">mlnospam@yahoo.com</a>&gt; wrote:<br clear="none">
<br clear="none">
Hello,<br clear="none">
&gt;<br clear="none">
&gt;Is it required to have the GlusterFS servers in /etc/hosts for the gluster servers themselves? I read many tutorials where people always add an entry in their /etc/hosts file.<br clear="none">
&gt;<br clear="none">
&gt;I am asking because my issue is that my volumes, or more precisely glusterfsd, are not starting at system boot. The brick log shows that the hostname of the server could not be resolved but I have an entry in my DNS server and my /etc/resolv.conf is configured correctly.<br clear="none">
&gt;<br clear="none">
&gt;<br clear="none">
&gt;I am using Debian Wheezy with GlusterFS 3.5.2.<br clear="none">
&gt;<br clear="none">
&gt;Best regards<br clear="none">
&gt;ML<br clear="none">
&gt;_______________________________________________<br clear="none">
&gt;Gluster-users mailing list<br clear="none">
&gt;<a rel="nofollow" shape="rect" ymailto="mailto:Gluster-users@gluster.org" target="_blank" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br clear="none">
&gt;<a rel="nofollow" shape="rect" target="_blank" href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a><div class="yiv8333037136yqt3628439717" id="yiv8333037136yqtfd29289"><br clear="none">
&gt;<br clear="none">
_______________________________________________<br clear="none">
Gluster-users mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:Gluster-users@gluster.org" target="_blank" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a><br clear="none">
</div></div></div></blockquote></div><div class="yiv8333037136yqt3628439717" id="yiv8333037136yqtfd89697"><br clear="none"></div></div></div></div><br><br></div>  </div> </div>  </div> </div></body></html>