<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <br>
    <div class="moz-cite-prefix">On 21/09/15 13:56, Tiemen Ruiten wrote:<br>
    </div>
    <blockquote
cite="mid:CAAegNz2Cy-eqeP9kQW9FHAEtxjf9X1=MFsUNZPQSPp6kJpryXQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello Soumya, Kaleb, list,
        <div><br>
        </div>
        <div>This Friday I created the gluster_shared_storage volume
          manually, I just tried it with the command you supplied, but
          both have the same result:</div>
        <div><br>
        </div>
        <div>from etc-glusterfs-glusterd.vol.log on the node where I
          issued the command:</div>
        <div><br>
        </div>
        <div>
          <div>[2015-09-21 07:59:47.756845] I [MSGID: 106474]
            [glusterd-ganesha.c:403:check_host_list] 0-management:
            ganesha host found Hostname is cobalt</div>
          <div>[2015-09-21 07:59:48.071755] I [MSGID: 106474]
            [glusterd-ganesha.c:349:is_ganesha_host] 0-management:
            ganesha host found Hostname is cobalt</div>
          <div>[2015-09-21 07:59:48.653879] E [MSGID: 106470]
            [glusterd-ganesha.c:264:glusterd_op_set_ganesha]
            0-management: Initial NFS-Ganesha set up failed</div>
        </div>
      </div>
    </blockquote>
    <br>
    As far as what I understand from the logs, it called
    setup_cluser()[calls `ganesha-ha.sh` script ] but script failed.<br>
    Can u please provide following details :<br>
    -Location of ganesha.sh file??<br>
    -Location of ganesha-ha.conf, ganesha.conf files ?<br>
    <br>
    <br>
    And also can u cross check whether all the prerequisites before HA
    setup satisfied ?<br>
    <br>
    --<br>
    With Regards,<br>
    Jiffin<br>
    <br>
    <blockquote
cite="mid:CAAegNz2Cy-eqeP9kQW9FHAEtxjf9X1=MFsUNZPQSPp6kJpryXQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>[2015-09-21 07:59:48.653912] E [MSGID: 106123]
            [glusterd-syncop.c:1404:gd_commit_op_phase] 0-management:
            Commit of operation 'Volume (null)' failed on localhost :
            Failed to set up HA config for NFS-Ganesha. Please check the
            log file for details</div>
          <div>[2015-09-21 07:59:45.402458] I [MSGID: 106006]
            [glusterd-svc-mgmt.c:323:glusterd_svc_common_rpc_notify]
            0-management: nfs has disconnected from glusterd.</div>
          <div>[2015-09-21 07:59:48.071578] I [MSGID: 106474]
            [glusterd-ganesha.c:403:check_host_list] 0-management:
            ganesha host found Hostname is cobalt</div>
        </div>
        <div><br>
        </div>
        <div>from etc-glusterfs-glusterd.vol.log on the other node:</div>
        <div><br>
        </div>
        <div>
          <div>[2015-09-21 08:12:50.111877] E [MSGID: 106062]
            [glusterd-op-sm.c:3698:glusterd_op_ac_unlock] 0-management:
            Unable to acquire volname</div>
          <div>[2015-09-21 08:14:50.548087] E [MSGID: 106062]
            [glusterd-op-sm.c:3635:glusterd_op_ac_lock] 0-management:
            Unable to acquire volname</div>
          <div>[2015-09-21 08:14:50.654746] I [MSGID: 106132]
            [glusterd-proc-mgmt.c:83:glusterd_proc_stop] 0-management:
            nfs already stopped</div>
          <div>[2015-09-21 08:14:50.655095] I [MSGID: 106474]
            [glusterd-ganesha.c:403:check_host_list] 0-management:
            ganesha host found Hostname is cobalt</div>
          <div>[2015-09-21 08:14:51.287156] E [MSGID: 106062]
            [glusterd-op-sm.c:3698:glusterd_op_ac_unlock] 0-management:
            Unable to acquire volname</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>from etc-glusterfs-glusterd.vol.log on the arbiter node:</div>
        <div><br>
        </div>
        <div>
          <div>[2015-09-21 08:18:50.934713] E [MSGID: 101075]
            [common-utils.c:3127:gf_is_local_addr] 0-management: error
            in getaddrinfo: Name or service not known</div>
          <div>[2015-09-21 08:18:51.504694] E [MSGID: 106062]
            [glusterd-op-sm.c:3698:glusterd_op_ac_unlock] 0-management:
            Unable to acquire volname<br>
          </div>
        </div>
        <div><br>
        </div>
        <div>I have put the hostnames of all servers in my /etc/hosts
          file, including the arbiter node.</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On 18 September 2015 at 16:52, Soumya
          Koduri <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:skoduri@redhat.com" target="_blank">skoduri@redhat.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Tiemen,<br>
            <br>
            One of the pre-requisites before setting up nfs-ganesha HA
            is to create and mount shared_storage volume. Use below CLI
            for that<br>
            <br>
            "gluster volume set all cluster.enable-shared-storage
            enable"<br>
            <br>
            It shall create the volume and mount in all the nodes
            (including the arbiter node). Note this volume shall be
            mounted on all the nodes of the gluster storage pool (though
            in this case it may not be part of nfs-ganesha cluster).<br>
            <br>
            So instead of manually creating those directory paths,
            please use above CLI and try re-configuring the setup.<br>
            <br>
            Thanks,<br>
            Soumya<span class=""><br>
              <br>
              On 09/18/2015 07:29 PM, Tiemen Ruiten wrote:<br>
            </span>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex"><span
                class="">
                Hello Kaleb,<br>
                <br>
                I don't:<br>
                <br>
                # Name of the HA cluster created.<br>
                # must be unique within the subnet<br>
                HA_NAME="rd-ganesha-ha"<br>
                #<br>
                # The gluster server from which to mount the shared data
                volume.<br>
                HA_VOL_SERVER="iron"<br>
                #<br>
                # N.B. you may use short names or long names; you may
                not use IP addrs.<br>
                # Once you select one, stay with it as it will be mildly
                unpleasant to<br>
                # clean up if you switch later on. Ensure that all names
                - short and/or<br>
                # long - are in DNS or /etc/hosts on all machines in the
                cluster.<br>
                #<br>
                # The subset of nodes of the Gluster Trusted Pool that
                form the ganesha<br>
                # HA cluster. Hostname is specified.<br>
                HA_CLUSTER_NODES="cobalt,iron"<br>
                #HA_CLUSTER_NODES="<a moz-do-not-send="true"
                  href="http://server1.lab.redhat.com" rel="noreferrer"
                  target="_blank">server1.lab.redhat.com</a><br>
              </span>
              &lt;<a moz-do-not-send="true"
                href="http://server1.lab.redhat.com" rel="noreferrer"
                target="_blank">http://server1.lab.redhat.com</a>&gt;,<a
                moz-do-not-send="true"
                href="http://server2.lab.redhat.com" rel="noreferrer"
                target="_blank">server2.lab.redhat.com</a><br>
              &lt;<a moz-do-not-send="true"
                href="http://server2.lab.redhat.com" rel="noreferrer"
                target="_blank">http://server2.lab.redhat.com</a>&gt;,..."<span
                class=""><br>
                #<br>
                # Virtual IPs for each of the nodes specified above.<br>
                VIP_server1="10.100.30.101"<br>
                VIP_server2="10.100.30.102"<br>
                #VIP_server1_lab_redhat_com="10.0.2.1"<br>
                #VIP_server2_lab_redhat_com="10.0.2.2"<br>
                <br>
                hosts cobalt &amp; iron are the data nodes, the arbiter
                ip/hostname (neon)<br>
                isn't mentioned anywhere in this config file.<br>
                <br>
                <br>
                On 18 September 2015 at 15:56, Kaleb S. KEITHLEY &lt;<a
                  moz-do-not-send="true"
                  href="mailto:kkeithle@redhat.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:kkeithle@redhat.com">kkeithle@redhat.com</a></a><br>
              </span>
              <div>
                <div class="h5">
                  &lt;mailto:<a moz-do-not-send="true"
                    href="mailto:kkeithle@redhat.com" target="_blank">kkeithle@redhat.com</a>&gt;&gt;
                  wrote:<br>
                  <br>
                      On 09/18/2015 09:46 AM, Tiemen Ruiten wrote:<br>
                      &gt; Hello,<br>
                      &gt;<br>
                      &gt; I have a Gluster cluster with a single
                  replica 3, arbiter 1 volume (so<br>
                      &gt; two nodes with actual data, one arbiter
                  node). I would like to setup<br>
                      &gt; NFS-Ganesha HA for this volume but I'm having
                  some difficulties.<br>
                      &gt;<br>
                      &gt; - I needed to create a directory
                  /var/run/gluster/shared_storage<br>
                      &gt; manually on all nodes, or the command
                  'gluster nfs-ganesha enable would<br>
                      &gt; fail with the following error:<br>
                      &gt; [2015-09-18 13:13:34.690416] E [MSGID:
                  106032]<br>
                      &gt; [glusterd-ganesha.c:708:pre_setup]
                  0-THIS-&gt;name: mkdir() failed on path<br>
                      &gt; /var/run/gluster/shared_storage/nfs-ganesha,
                  [No such file or directory]<br>
                      &gt;<br>
                      &gt; - Then I found out that the command connects
                  to the arbiter node as<br>
                      &gt; well, but obviously I don't want to set up
                  NFS-Ganesha there. Is it<br>
                      &gt; actually possible to setup NFS-Ganesha HA
                  with an arbiter node? If it's<br>
                      &gt; possible, is there any documentation on how
                  to do that?<br>
                      &gt;<br>
                  <br>
                      Please send the /etc/ganesha/ganesha-ha.conf file
                  you're using.<br>
                  <br>
                      Probably you have included the arbiter in your HA
                  config; that would be<br>
                      a mistake.<br>
                  <br>
                      --<br>
                  <br>
                      Kaleb<br>
                  <br>
                  <br>
                  <br>
                  <br>
                  --<br>
                  Tiemen Ruiten<br>
                  Systems Engineer<br>
                  R&amp;D Media<br>
                  <br>
                  <br>
                </div>
              </div>
              _______________________________________________<br>
              Gluster-users mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
              <a moz-do-not-send="true"
                href="http://www.gluster.org/mailman/listinfo/gluster-users"
                rel="noreferrer" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a><br>
              <br>
            </blockquote>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature">
          <div dir="ltr">Tiemen Ruiten<br>
            Systems Engineer<br>
            R&amp;D Media<br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Gluster-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>