<p dir="ltr"></p>
<p dir="ltr">Sent from one plus one<br>
On Jun 18, 2015 8:51 PM, &quot;Игорь Бирюлин&quot; &lt;<a href="mailto:biryulini@gmail.com">biryulini@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Sorry, I didn&#39;t check this, because after reboot my second node I had looked &quot;gluster volume info&quot; only and I have found &quot;Status: Started&quot;.<br>
&gt; Now I&#39;ve checked your recomendation and you are right! <br>
&gt; &quot;gluster volume start &lt;volname&gt; force&quot; didn&#39;t changed output of &quot;gluster volume info&quot; but I have mounted my share!<br>
&gt; Thank you very much for your advice! <br>
&gt;<br>
&gt; But why does &quot;gluster volume info&quot; show that my volname &quot;started&quot; before &quot;gluster volume start &lt;volname&gt; force&quot;?<br>
In this case glusterd stops the brick processes but doesn&#39;t mark its status as stopped.</p>
<p dir="ltr">Ravi, correct me if I am wrong.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; 2015-06-18 14:18 GMT+03:00 Ravishankar N &lt;<a href="mailto:ravishankar@redhat.com">ravishankar@redhat.com</a>&gt;:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 06/18/2015 04:25 PM, Игорь Бирюлин wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thank you for you answer!<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I check recomendation:<br>
&gt;&gt;&gt; 1. On first node closed all connection from second node by iptables. Check that on both nodes &quot;gluster peer status&quot; return  &quot;Disconnected&quot;. Check that on both nodes share was mounted and work well like local file system.<br>
&gt;&gt;&gt; 2. Rebooted second node (remind first node closed by iptables). Second node booted without problem and proccesses of glusterfs started:<br>
&gt;&gt;&gt; # ps aux | grep [g]luster<br>
&gt;&gt;&gt; root      4145  0.0  0.0 375692 16076 ?        Ssl  13:35   0:00 /usr/sbin/glusterd -p /var/run/glusterd.pid<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; &quot;gluster peer status&quot; return &quot;Disconnected&quot; and volume started on localhost:<br>
&gt;&gt;&gt; # gluster volume info<br>
&gt;&gt;&gt;  Volume Name: files<br>
&gt;&gt;&gt; Type: Replicate<br>
&gt;&gt;&gt; Volume ID: 41067184-d57a-4132-a997-dbd47c974b40<br>
&gt;&gt;&gt; Status: Started<br>
&gt;&gt;&gt; Number of Bricks: 1 x 2 = 2<br>
&gt;&gt;&gt; Transport-type: tcp<br>
&gt;&gt;&gt; Bricks:<br>
&gt;&gt;&gt; Brick1: xxx1:/storage/gluster_brick_repofiles<br>
&gt;&gt;&gt; Brick2: xxx2:/storage/gluster_brick_repofiles<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Вut I cann&#39;t mount this volume:<br>
&gt;&gt;&gt; # cat /etc/fstab |grep gluster<br>
&gt;&gt;&gt; 127.0.0.1:/files                            /repo           glusterfs       rw,_netdev              0 0<br>
&gt;&gt;&gt; # mount /repo<br>
&gt;&gt;&gt; Mount failed. Please check the log file for more details.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Part of log I have sent in first message.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; If I will open first node by iptables I could mount without problem, but what must I do, when I lost one node and I have probability reboot another node?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt; `gluster volume start &lt;volname&gt; force` doesn&#39;t work?<br>
&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 2015-06-17 18:46 GMT+03:00 Ravishankar N &lt;<a href="mailto:ravishankar@redhat.com">ravishankar@redhat.com</a>&gt;:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On 06/17/2015 07:04 PM, Игорь Бирюлин wrote:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; If we turn off one server, another will be work and mounted volume will be use without problem.<br>
&gt;&gt;&gt;&gt;&gt; But if we rebooted our another server, when first was turned off (or gluster was stopped on this server), our volume cann&#39;t mount (glusterd started).<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; If both nodes are down and you bring up only one node, glusterd will not start the volume (i.e. the brick, nfs and glustershd processes) automatically. It waits for the other node&#39;s glusterd also to be up so that they are in sync. You can override this behavior by doing a `gluster volume start &lt;volname&gt; force` to bring up the gluster process only on this node and then mount the volume.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; -Ravi<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<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><br>
</p>