<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <br>
    <div class="moz-cite-prefix">On 06/19/2015 01:06 AM, Игорь Бирюлин
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAEtWxpyHDsQConChTXEsxPoceK4=DwMC25eDneDyRpf6b-S8aA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Is it a bug?<br>
        </div>
        How can I understand that volume stopped if in "<span class="">gluster
          volume info</span>" I see "Status: Started"?<br>
        <div><br>
        </div>
      </div>
    </blockquote>
    <br>
    Not a bug. If `volume info ` says it is started and  `gluster volume
    status` shows gluster processes as offline, it means something is
    wrong and needs investigation. In your case you need to see why the
    other node is down.  Having identified the second node is down and
    cannot be brought back anytime soon, the `volume start force`  is
    just a workaround to restart the gluster processes.<br>
    <br>
    <blockquote
cite="mid:CAEtWxpyHDsQConChTXEsxPoceK4=DwMC25eDneDyRpf6b-S8aA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div class="gmail_extra"><br>
            <div class="gmail_quote">2015-06-18 22:07 GMT+03:00 Atin
              Mukherjee <span dir="ltr">&lt;<a moz-do-not-send="true"
                  href="mailto:atin.mukherjee83@gmail.com"
                  target="_blank">atin.mukherjee83@gmail.com</a>&gt;</span>:<br>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px
                0.8ex;border-left:1px solid
                rgb(204,204,204);padding-left:1ex">
                <p dir="ltr">Sent from one plus one<span class=""><br>
                    On Jun 18, 2015 8:51 PM, "Игорь Бирюлин" &lt;<a
                      moz-do-not-send="true"
                      href="mailto:biryulini@gmail.com" target="_blank">biryulini@gmail.com</a>&gt;
                    wrote:<br>
                    &gt;<br>
                    &gt; Sorry, I didn't check this, because after
                    reboot my second node I had looked "gluster volume
                    info" only and I have found "Status: Started".<br>
                    &gt; Now I've checked your recomendation and you are
                    right! <br>
                    &gt; "gluster volume start &lt;volname&gt; force"
                    didn't changed output of "gluster volume info" but I
                    have mounted my share!<br>
                    &gt; Thank you very much for your advice! <br>
                    &gt;<br>
                    &gt; But why does "gluster volume info" show that my
                    volname "started" before "gluster volume start
                    &lt;volname&gt; force"?<br>
                  </span>
                  In this case glusterd stops the brick processes but
                  doesn't mark its status as stopped.</p>
                <p dir="ltr">Ravi, correct me if I am wrong.</p>
                <div>
                  <div class="h5"><br>
                    &gt;<br>
                    &gt;<br>
                    &gt;<br>
                    &gt; 2015-06-18 14:18 GMT+03:00 Ravishankar N &lt;<a
                      moz-do-not-send="true"
                      href="mailto:ravishankar@redhat.com"
                      target="_blank">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 "gluster peer status" return  "Disconnected".
                    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; "gluster peer status" return
                    "Disconnected" 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'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'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 moz-do-not-send="true"
                      href="mailto:ravishankar@redhat.com"
                      target="_blank">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'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'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>
                  </div>
                </div>
                &gt; _______________________________________________<br>
                &gt; Gluster-users mailing list<br>
                &gt; <a moz-do-not-send="true"
                  href="mailto:Gluster-users@gluster.org"
                  target="_blank">Gluster-users@gluster.org</a><br>
                &gt; <a moz-do-not-send="true"
                  href="http://www.gluster.org/mailman/listinfo/gluster-users"
                  target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a><br>
              </blockquote>
            </div>
            <br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>