<p dir="ltr"></p>
<p dir="ltr">-Atin<br>
Sent from one plus one<br>
On 22-Mar-2016 6:54 pm, &quot;<a href="mailto:tommy.yardley@baesystems.com">tommy.yardley@baesystems.com</a>&quot; &lt;<a href="mailto:tommy.yardley@baesystems.com">tommy.yardley@baesystems.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi Atin,<br>
&gt;<br>
&gt; Setting &#39;state=3&#39; on the instances and restarting the service seems to have fixed the problem.</p>
<p dir="ltr">Great!</p>
<p dir="ltr">&gt;<br>
&gt; Is this an &#39;issue&#39; with glusterfs?</p>
<p dir="ltr">No, its not. As I said the handshaking was incomplete which lead to this issue. I&#39;d also recommend you to upgrade to latest gluster version i.e. 3.7.x?</p>
<p dir="ltr">&gt;<br>
&gt; I will implement an automated solution for my problem, just would be good to know if this is something that will be patched in the future?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Tommy<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: Atin Mukherjee [mailto:<a href="mailto:amukherj@redhat.com">amukherj@redhat.com</a>]<br>
&gt; Sent: 22 March 2016 13:10<br>
&gt; To: Yardley, Tommy (UK Guildford); <a href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a><br>
&gt; Subject: Re: [Gluster-users] GlusterFS cluster peer stuck in state: Sent and Received peer request (Connected)<br>
&gt;<br>
&gt; Tommy,<br>
&gt;<br>
&gt; It seems like that there were frequent disconnect events which may have caused the peer handshaking to remain incomplete and leading to an inconsistency in the cluster state.<br>
&gt;<br>
&gt; Further follow up questions:<br>
&gt;<br>
&gt; 1. Restarting glusterd instances doesn&#39;t solve the problem?<br>
&gt;<br>
&gt; 2. If answer to 1 is yes can we try to set state=3 in all the /var/lib/glusterd/peers/&lt;UUID&gt; files and then restart glusterd to see whether the problem persists?<br>
&gt;<br>
&gt; If the above still doesn&#39;t solve the problem output of &#39;cat /var/lib/glusterd/peers/*&#39; from all the nodes should help us in figuring out the correct workaround.<br>
&gt;<br>
&gt; ~Atin<br>
&gt;<br>
&gt; On 03/22/2016 02:51 PM, Atin Mukherjee wrote:<br>
&gt; &gt; Gaurav is looking into it and he will get back with his analysis.<br>
&gt; &gt;<br>
&gt; &gt; ~Atin<br>
&gt; &gt;<br>
&gt; &gt; On 03/22/2016 02:42 PM, <a href="mailto:tommy.yardley@baesystems.com">tommy.yardley@baesystems.com</a> wrote:<br>
&gt; &gt;&gt; Hi,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Is anyone able to help with this issue?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Thanks,<br>
&gt; &gt;&gt; Tommy<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; -----Original Message-----<br>
&gt; &gt;&gt; From: <a href="mailto:gluster-users-bounces@gluster.org">gluster-users-bounces@gluster.org</a><br>
&gt; &gt;&gt; [mailto:<a href="mailto:gluster-users-bounces@gluster.org">gluster-users-bounces@gluster.org</a>] On Behalf Of<br>
&gt; &gt;&gt; <a href="mailto:tommy.yardley@baesystems.com">tommy.yardley@baesystems.com</a><br>
&gt; &gt;&gt; Sent: 17 March 2016 08:49<br>
&gt; &gt;&gt; To: <a href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a><br>
&gt; &gt;&gt; Subject: Re: [Gluster-users] GlusterFS cluster peer stuck in state:<br>
&gt; &gt;&gt; Sent and Received peer request (Connected)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Hi,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Sorry I had sent them directly to Atin<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I&#39;ve trimmed down the larger log files a bit and attached all of them to this email.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Many thanks,<br>
&gt; &gt;&gt; Tommy<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; -----Original Message-----<br>
&gt; &gt;&gt; From: Gaurav Garg [mailto:<a href="mailto:ggarg@redhat.com">ggarg@redhat.com</a>]<br>
&gt; &gt;&gt; Sent: 17 March 2016 07:07<br>
&gt; &gt;&gt; To: Yardley, Tommy (UK Guildford)<br>
&gt; &gt;&gt; Cc: <a href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a><br>
&gt; &gt;&gt; Subject: Re: [Gluster-users] GlusterFS cluster peer stuck in state:<br>
&gt; &gt;&gt; Sent and Received peer request (Connected)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; I’ve sent the logs directly as they push this message over the size limit.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Where have you send logs. i could not able to find. could you send glusterd logs so that we can start analyzing this issue.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Thanks,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Regards,<br>
&gt; &gt;&gt; Gaurav<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ----- Original Message -----<br>
&gt; &gt;&gt; From: &quot;Atin Mukherjee&quot; &lt;<a href="mailto:amukherj@redhat.com">amukherj@redhat.com</a>&gt;<br>
&gt; &gt;&gt; To: &quot;tommy yardley&quot; &lt;<a href="mailto:tommy.yardley@baesystems.com">tommy.yardley@baesystems.com</a>&gt;,<br>
&gt; &gt;&gt; <a href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a><br>
&gt; &gt;&gt; Sent: Wednesday, March 16, 2016 5:49:05 PM<br>
&gt; &gt;&gt; Subject: Re: [Gluster-users] GlusterFS cluster peer stuck in state:<br>
&gt; &gt;&gt; Sent and Received peer request (Connected)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I couldn&#39;t look into this today, sorry about that. I can only look into this case on Monday. Anyone else to take this up?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ~Atin<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; On 03/15/2016 09:57 PM, <a href="mailto:tommy.yardley@baesystems.com">tommy.yardley@baesystems.com</a> wrote:<br>
&gt; &gt;&gt;&gt; Hi Atin,<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; All nodes are running 3.5.8 – the probe sequence is:<br>
&gt; &gt;&gt;&gt; 172.31.30.64<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; 172.31.27.27 (node having issue)<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; 172.31.26.134 (node the peer probe is ran on)<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; 172.31.19.46<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; I’ve sent the logs directly as they push this message over the size limit.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; look forward to your reply,<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Tommy<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; *From:*Atin Mukherjee [mailto:<a href="mailto:atin.mukherjee83@gmail.com">atin.mukherjee83@gmail.com</a>]<br>
&gt; &gt;&gt;&gt; *Sent:* 15 March 2016 15:58<br>
&gt; &gt;&gt;&gt; *To:* Yardley, Tommy (UK Guildford)<br>
&gt; &gt;&gt;&gt; *Cc:* <a href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a><br>
&gt; &gt;&gt;&gt; *Subject:* Re: [Gluster-users] GlusterFS cluster peer stuck in state:<br>
&gt; &gt;&gt;&gt; Sent and Received peer request (Connected)<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; This indicates the peer handshaking didn&#39;t go through properly and<br>
&gt; &gt;&gt;&gt; your cluster is messed up. Are you running 3.5.8 version in all the nodes?<br>
&gt; &gt;&gt;&gt; Could you get me the glusterd log from all the nodes and mention the<br>
&gt; &gt;&gt;&gt; peer probe sequence? I&#39;d be able to look at it tomorrow only and get back.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; -Atin<br>
&gt; &gt;&gt;&gt; Sent from one plus one<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; On 15-Mar-2016 9:16 pm, &quot;<a href="mailto:tommy.yardley@baesystems.com">tommy.yardley@baesystems.com</a><br>
&gt; &gt;&gt;&gt; &lt;mailto:<a href="mailto:tommy.yardley@baesystems.com">tommy.yardley@baesystems.com</a>&gt;&quot; &lt;<a href="mailto:tommy.yardley@baesystems.com">tommy.yardley@baesystems.com</a><br>
&gt; &gt;&gt;&gt; &lt;mailto:<a href="mailto:tommy.yardley@baesystems.com">tommy.yardley@baesystems.com</a>&gt;&gt; wrote:<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Hi All,<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; I’m running GlusterFS on a cluster hosted in AWS. I have a script<br>
&gt; &gt;&gt;&gt; which provisions my instances and thus will set up GlusterFS (specifically:<br>
&gt; &gt;&gt;&gt; glusterfs 3.5.8).<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; My issue is that this only works ~50% of the time and the other 50%<br>
&gt; &gt;&gt;&gt; of the time one of the peers will be ‘stuck’ in the following state:<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; /root@ip-xx-xx-xx-1:/home/ubuntu# gluster peer status/<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; /Number of Peers: 3/<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; / /<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; /Hostname: xx.xx.xx.2/<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; /Uuid: 3b4c1fb9-b325-4204-98fd-2eb739fa867f/<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; /State: Peer in Cluster (Connected)/<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; / /<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; /Hostname: xx.xx.xx.3/<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; /Uuid: acfc1794-9080-4eb0-8f69-3abe78bbee16/<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; /State: Sent and Received peer request (Connected)/<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; / /<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; /Hostname: xx.xx.xx.4/<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; /Uuid: af33463d-1b32-4ffb-a4f0-46ce16151e2f/<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; /State: Peer in Cluster (Connected)/<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Running gluster peer status on the instance that is affected yields:<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; /root@ip-xx-xx-xx-3:/var/log/glusterfs# gluster peer status Number<br>
&gt; &gt;&gt;&gt; of<br>
&gt; &gt;&gt;&gt; Peers: 1/<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; / /<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; /Hostname: xx.xx.xx.1/<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; /Uuid: c4f17e9a-893b-48f0-a014-1a05cca09d01/<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; /State: Peer is connected and Accepted (Connected)/<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; / /<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Of which the status (Connected) in this case, will fluctuate between<br>
&gt; &gt;&gt;&gt; ‘Connected’ and ‘Disconnected’.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; I have been unable to locate the cause of this issue. Has this been<br>
&gt; &gt;&gt;&gt; encountered before, and if so is there a general fix? I haven’t been<br>
&gt; &gt;&gt;&gt; able to find anything as of yet.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Many thanks,<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; *Tommy*<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Please consider the environment before printing this email. This<br>
&gt; &gt;&gt;&gt; message should be regarded as confidential. If you have received<br>
&gt; &gt;&gt;&gt; this email in error please notify the sender and destroy it immediately.<br>
&gt; &gt;&gt;&gt; Statements of intent shall only become binding when confirmed in<br>
&gt; &gt;&gt;&gt; hard copy by an authorised signatory. The contents of this email may<br>
&gt; &gt;&gt;&gt; relate to dealings with other companies under the control of BAE<br>
&gt; &gt;&gt;&gt; Systems Applied Intelligence Limited, details of which can be found<br>
&gt; &gt;&gt;&gt; at <a href="http://www.baesystems.com/Businesses/index.htm">http://www.baesystems.com/Businesses/index.htm</a>.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; _______________________________________________<br>
&gt; &gt;&gt;&gt; Gluster-users mailing list<br>
&gt; &gt;&gt;&gt; <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a> &lt;mailto:<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>&gt;<br>
&gt; &gt;&gt;&gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a><br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Please consider the environment before printing this email. This<br>
&gt; &gt;&gt;&gt; message should be regarded as confidential. If you have received<br>
&gt; &gt;&gt;&gt; this email in error please notify the sender and destroy it immediately.<br>
&gt; &gt;&gt;&gt; Statements of intent shall only become binding when confirmed in<br>
&gt; &gt;&gt;&gt; hard copy by an authorised signatory. The contents of this email may<br>
&gt; &gt;&gt;&gt; relate to dealings with other companies under the control of BAE<br>
&gt; &gt;&gt;&gt; Systems Applied Intelligence Limited, details of which can be found<br>
&gt; &gt;&gt;&gt; at <a href="http://www.baesystems.com/Businesses/index.htm">http://www.baesystems.com/Businesses/index.htm</a>.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; _______________________________________________<br>
&gt; &gt;&gt;&gt; Gluster-users mailing list<br>
&gt; &gt;&gt;&gt; <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
&gt; &gt;&gt;&gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a><br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; Gluster-users mailing list<br>
&gt; &gt;&gt; <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
&gt; &gt;&gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a><br>
&gt; &gt;&gt; Please consider the environment before printing this email. This message should be regarded as confidential. If you have received this email in error please notify the sender and destroy it immediately. Statements of intent shall only become binding when confirmed in hard copy by an authorised signatory. The contents of this email may relate to dealings with other companies under the control of BAE Systems Applied Intelligence Limited, details of which can be found at <a href="http://www.baesystems.com/Businesses/index.htm">http://www.baesystems.com/Businesses/index.htm</a>.<br>
&gt; &gt;&gt; Please consider the environment before printing this email. This message should be regarded as confidential. If you have received this email in error please notify the sender and destroy it immediately. Statements of intent shall only become binding when confirmed in hard copy by an authorised signatory. The contents of this email may relate to dealings with other companies under the control of BAE Systems Applied Intelligence Limited, details of which can be found at <a href="http://www.baesystems.com/Businesses/index.htm">http://www.baesystems.com/Businesses/index.htm</a>.<br>
&gt; &gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; Gluster-users mailing list<br>
&gt; &gt;&gt; <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
&gt; &gt;&gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a><br>
&gt; &gt;&gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Gluster-users mailing list<br>
&gt; &gt; <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
&gt; &gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a><br>
&gt; &gt;<br>
&gt; Please consider the environment before printing this email. This message should be regarded as confidential. If you have received this email in error please notify the sender and destroy it immediately. Statements of intent shall only become binding when confirmed in hard copy by an authorised signatory. The contents of this email may relate to dealings with other companies under the control of BAE Systems Applied Intelligence Limited, details of which can be found at <a href="http://www.baesystems.com/Businesses/index.htm">http://www.baesystems.com/Businesses/index.htm</a>.<br>
&gt; _______________________________________________<br>
&gt; Gluster-users mailing list<br>
&gt; <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
&gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a></p>