<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    HI,<br>
    <br>
    Are your PUBLIC_ADDRESSES different from the NODES addresses (they
    must not be used on any real interface)? Is the /mnt/datavol mounted
    on all nodes?<br>
    <br>
    I also found I had to copy /var/lib/samba/private/* to the
    /mnt/datavol/lock area to get samba working.<br>
    <br>
    Cheers<br>
    <br>
    Alex<br>
    <br>
    <div class="moz-cite-prefix">On 30/04/15 17:55, Sharad Shukla wrote:<br>
    </div>
    <blockquote
cite="mid:CAN5QNEQhimgoJgfFy9uQixV3QUhfdxq8TeYfTWx32eMB7xi4Sg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Hi Alex and friends,<br>
            <br>
          </div>
          I have installed CTDB and all related packages . I did all the
          required steps to configure ctdb and samba configuration, but
          somehow the lockfile functionality does not work.<br>
          <br>
          <br>
        </div>
        <div><i>Following is the ctdb configuration:</i><br>
          CTDB_RECOVERY_LOCK="/mnt/datavaol/lock/lockfile"<br>
          CTDB_PUBLIC_ADDRESSES=/etc/ctdb/public_addresses<br>
          CTDB_MANAGES_SAMBA=yes<br>
          CTDB_NODES=/etc/ctdb/nodes<br>
          <br>
          <br>
        </div>
        <div>Having the above config I was getting the error "Unable to
          find lockfile". So the problem was with CTDB_RECOVERY_LOCK, so
          I commented it. After this I again started ctdb services but
          now the Samba starting was a big problem....  I was getting
          the following error:<br>
          Starting SMB services: /bin/bash: line 1:  4339
          Aborted                 (core dumped) smbd -D<br>
          <br>
        </div>
        <div><i>Following is the smb.conf:</i><br>
          [global]<br>
                  clustering = yes<br>
                  idmap backend = tdb2<br>
                  private dir = /mnt/datavol/lock<br>
          <br>
          [share]<br>
                  comment = Gluster and CTDB based shared volume<br>
                  path = /mnt/datavol/share<br>
                  read only = no<br>
                  guest ok = yes<br>
          <br>
          <br>
        </div>
        <div>I tried every possible way to start Samba daemon but failed
          to do so ..<br>
          <br>
        </div>
        <div>I would really appreciate if you can look into this
          configuration and suggest me some tips to make ctdb running
          without any errors..<br>
          <br>
        </div>
        <div>Thanks &amp; Regards<br>
        </div>
        <div>Sharad<br>
        </div>
        <div><br>
          <br>
        </div>
        <div><br>
          <br>
          <br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Apr 29, 2015 at 11:45 AM, Alex
          Crow <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:acrow@integrafin.co.uk" target="_blank">acrow@integrafin.co.uk</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div>
                <div class="h5"> <br>
                  <br>
                  <div>On 29/04/15 10:34, Sharad Shukla wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div>
                        <div>
                          <div>
                            <div>
                              <div>
                                <div>
                                  <div>Hi Susant,<br>
                                    <br>
                                  </div>
                                  I have installed Glusterfs in 2
                                  machines which I want to use for
                                  establishing cluster. I am using
                                  CentOs 6.6. The gluster volume is set
                                  up and running fine. I am manually
                                  creating the files onto the mounted
                                  volume and they are replicating..<br>
                                  <br>
                                </div>
                                So far looks like everything is working.
                                Now I have configured a shared ip
                                address for reaching the replicated
                                volume by using the following command:<br>
                                <br>
                                <div
                                  style="font-size:12px!important;line-height:15px!important">
                                  <div><span>gluster </span><span>volume
                                    </span><span>set</span><span> </span><span>[</span><span>VOLUME</span><span>]</span><span>
                                    </span><span>auth</span><span>.</span><span>allow</span><span>
                                    </span><span>[</span><span>IP </span><span>ADDRESS</span><span>]</span></div>
                                </div>
                                <br>
                              </div>
                              This IP address is visible to me under
                              "gluster volume info", but I am unable to
                              ping this ip address. I am getting the
                              message that "Host is unreachable"<br>
                              <br>
                            </div>
                            I need this ip address reachable so that I
                            can connect my application which needs to
                            use this shared ip to connect to cluster.<br>
                            <br>
                          </div>
                          This application is a little urgent for me. I
                          would really appreciate your help..<br>
                          <br>
                        </div>
                        Thanks<br>
                      </div>
                      Sharad<br>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
              Hi,<br>
              <br>
              That command is just setting an acl for that IP to connect
              to the gluster daemon.<br>
              <br>
              Normally you don't need to add any IP addresses as
              glusterfs clients will know about both servers as soon as
              they connect to one of them. If you're using Samba or NFS
              the preferred option is to use CTDB to spread a pool of
              virtual IP addresses over the servers.<br>
              <br>
              Cheers<br>
              <br>
              Alex<br>
              <br>
              <blockquote type="cite">
                <div dir="ltr">
                  <div>
                    <div>
                      <div>
                        <div>
                          <div>
                            <div><br>
                              <span class="HOEnZb"><font color="#888888">
                                </font></span></div>
                            <span class="HOEnZb"><font color="#888888">
                              </font></span></div>
                          <span class="HOEnZb"><font color="#888888"> </font></span></div>
                        <span class="HOEnZb"><font color="#888888"> </font></span></div>
                      <span class="HOEnZb"><font color="#888888"> </font></span></div>
                    <span class="HOEnZb"><font color="#888888"> </font></span></div>
                  <span class="HOEnZb"><font color="#888888"> </font></span></div>
                <span class="HOEnZb"><font color="#888888"> <br>
                    -- <br>
                    This message has been scanned for viruses and <br>
                    dangerous content by <a moz-do-not-send="true"
                      href="http://www.mailscanner.info/"
                      target="_blank"><b>MailScanner</b></a>, and is <br>
                    believed to be clean. <br>
                    <fieldset></fieldset>
                    <br>
                    <pre>_______________________________________________
Gluster-users mailing list
<a moz-do-not-send="true" href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a>
<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></pre>
                  </font></span></blockquote>
              <span class="HOEnZb"><font color="#888888"> <br>
                  <pre cols="72">-- 
This message is intended only for the addressee and may contain
confidential information. Unless you are that person, you may not
disclose its contents or use it in any way and are requested to delete
the message along with any attachments and notify us immediately.
"Transact" is operated by Integrated Financial Arrangements plc. 29
Clement's Lane, London EC4N 7AE. Tel: (020) 7608 4900 Fax: (020) 7608
5300. (Registered office: as above; Registered in England and Wales
under number: 3727592). Authorised and regulated by the Financial
Conduct Authority (entered on the Financial Services Register; no. 190856).
</pre>
                </font></span></div>
            <br>
            _______________________________________________<br>
            Gluster-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
            <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>
      <br>
      -- <br>
      This message has been scanned for viruses and
      <br>
      dangerous content by
      <a moz-do-not-send="true" href="http://www.mailscanner.info/"><b>MailScanner</b></a>,
      and is
      <br>
      believed to be clean.
    </blockquote>
    <br>
  </body>
</html>