<p dir="ltr"></p>
<p dir="ltr">-Atin<br>
Sent from one plus one<br>
On Oct 30, 2015 5:28 PM, &quot;Mauro Mozzarelli&quot; &lt;<a href="mailto:mauro@ezplanet.net">mauro@ezplanet.net</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; Atin keeps giving the same answer: &quot;it is by design&quot;<br>
&gt;<br>
&gt; I keep saying &quot;the design is wrong and it should be changed to cater for<br>
&gt; standby servers&quot;<br>
Every design has got its own set of limitations and i would say this is a limitation instead of mentioning the overall design itself wrong. I would again stand with my points as correctness is always a priority in a distributed system. This behavioural change was introduced in 3.5 and if this was not included as part of release note I apologize on behalf of the release management. <br>
As communicated earlier, we will definitely resolve this issue in GlusterD2.<br>
&gt;<br>
&gt; In the meantime this is the workaround I am using:<br>
&gt; When the single node starts I stop and start the volume, and then it<br>
&gt; becomes mountable. On CentOS 6 and CentOS 7 it works with release up to<br>
&gt; 3.7.4. Release 3.7.5 is broken so I reverted back to 3.7.4.<br>
This is where I am not convinced. An explicit volume start should start the bricks, can you raise a BZ with all the relevant details?<br>
&gt;<br>
&gt; In my experience glusterfs releases are a bit of a hit and miss. Often<br>
&gt; something stops working with newer releases, then after a few more<br>
&gt; releases it works again or there is a workaround ... Not quite the<br>
&gt; stability one would want for commercial use, and thus at the moment I can<br>
&gt; risk using it only for my home servers, hence the cluster with a node<br>
&gt; always ON and the second as STANDBY.<br>
&gt;<br>
&gt; MOUNT=/home<br>
&gt; LABEL=&quot;GlusterFS:&quot;<br>
&gt; if grep -qs $MOUNT /proc/mounts; then<br>
&gt;     echo &quot;$LABEL $MOUNT is mounted&quot;;<br>
&gt;     gluster volume start gv_home 2&gt;/dev/null<br>
&gt; else<br>
&gt;     echo &quot;$LABEL $MOUNT is NOT mounted&quot;;<br>
&gt;     echo &quot;$LABEL Restarting gluster volume ...&quot;<br>
&gt;     yes|gluster volume stop gv_home &gt; /dev/null<br>
&gt;     gluster volume start gv_home<br>
&gt;     mount -t glusterfs sirius-ib:/gv_home $MOUNT;<br>
&gt;     if grep -qs $MOUNT /proc/mounts; then<br>
&gt;         echo &quot;$LABEL $MOUNT is mounted&quot;;<br>
&gt;         gluster volume start gv_home 2&gt;/dev/null<br>
&gt;     else<br>
&gt;         echo &quot;$LABEL failure to mount $MOUNT&quot;;<br>
&gt;     fi<br>
&gt; fi<br>
&gt;<br>
&gt; I hope this helps.<br>
&gt; Mauro<br>
&gt;<br>
&gt; On Fri, October 30, 2015 11:48, Atin Mukherjee wrote:<br>
&gt; &gt; -Atin<br>
&gt; &gt; Sent from one plus one<br>
&gt; &gt; On Oct 30, 2015 4:35 PM, &quot;Remi Serrano&quot; &lt;<a href="mailto:rserrano@pros.com">rserrano@pros.com</a>&gt; wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Hello,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I setup a gluster file cluster with 2 nodes. It works fine.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; But, when I shut down the 2 nodes, and startup only one node, I cannot<br>
&gt; &gt; mount the share :<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; [root@xxx ~]#  mount -t glusterfs 10.32.0.11:/gv0 /glusterLocalShare<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Mount failed. Please check the log file for more details.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Log says :<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; [2015-10-30 10:33:26.147003] I [MSGID: 100030] [glusterfsd.c:2318:main]<br>
&gt; &gt; 0-/usr/sbin/glusterfs: Started running /usr/sbin/glusterfs version 3.7.5<br>
&gt; &gt; (args: /usr/sbin/glusterfs -127.0.0.1 --volfile-id=/gv0<br>
&gt; &gt; /glusterLocalShare)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; [2015-10-30 10:33:26.171964] I [MSGID: 101190]<br>
&gt; &gt; [event-epoll.c:632:event_dispatch_epoll_worker] 0-epoll: Started thread<br>
&gt; &gt; with index 1<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; [2015-10-30 10:33:26.185685] I [MSGID: 101190]<br>
&gt; &gt; [event-epoll.c:632:event_dispatch_epoll_worker] 0-epoll: Started thread<br>
&gt; &gt; with index 2<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; [2015-10-30 10:33:26.186972] I [MSGID: 114020] [client.c:2118:notify]<br>
&gt; &gt; 0-gv0-client-0: parent translators are ready, attempting connect on<br>
&gt; &gt; transport<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; [2015-10-30 10:33:26.191823] I [MSGID: 114020] [client.c:2118:notify]<br>
&gt; &gt; 0-gv0-client-1: parent translators are ready, attempting connect on<br>
&gt; &gt; transport<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; [2015-10-30 10:33:26.192209] E [MSGID: 114058]<br>
&gt; &gt; [client-handshake.c:1524:client_query_portmap_cbk] 0-gv0-client-0: failed<br>
&gt; &gt; to get the port number for remote subvolume. Please ume status&#39; on server<br>
&gt; &gt; to see if brick process is running.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; [2015-10-30 10:33:26.192339] I [MSGID: 114018]<br>
&gt; &gt; [client.c:2042:client_rpc_notify] 0-gv0-client-0: disconnected from<br>
&gt; &gt; gv0-client-0. Client process will keep trying to connect t brick&#39;s port is<br>
&gt; &gt; available<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; And when I check the volumes I get:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; [root@xxx ~]# gluster volume status<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Status of volume: gv0<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Gluster process                             TCP Port  RDMA Port  Online<br>
&gt; &gt; Pid<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt; ------------------------------------------------------------------------------<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Brick 10.32.0.11:/glusterBrick1/gv0         N/A       N/A        N<br>
&gt; &gt; N/A<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; NFS Server on localhost                     N/A       N/A        N<br>
&gt; &gt; N/A<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; NFS Server on localhost                     N/A       N/A        N<br>
&gt; &gt; N/A<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Task Status of Volume gv0<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt; ------------------------------------------------------------------------------<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; There are no active volume tasks<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; If I start th second node, all is OK.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Is this normal ?<br>
&gt; &gt; This behaviour is by design. In a multi node cluster when GlusterD comes<br>
&gt; &gt; up<br>
&gt; &gt; it doesn&#39;t start the bricks until it receives the configuration from its<br>
&gt; &gt; one of the friends to ensure that stale information is not been referred.<br>
&gt; &gt; In your case since the other node is down bricks are not started and hence<br>
&gt; &gt; mount fails.<br>
&gt; &gt; As a workaround, we recommend to add a dummy node to the cluster to avoid<br>
&gt; &gt; this issue.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Regards,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Rémi<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&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; _______________________________________________<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;<br>
&gt;<br>
&gt; --<br>
&gt; Mauro Mozzarelli<br>
&gt; Phone: +44 7941 727378<br>
&gt; eMail: <a href="mailto:mauro@ezplanet.net">mauro@ezplanet.net</a><br>
&gt;<br>
</p>