<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>also i think you should be able to get better performance if you
      use vfs_glusterfs [1]. From what I understand it's similar to
      samba what nfs-ganesha does for nfs, it uses the libgfapi directly
      rather than sharing a fuse-mount <br>
    </p>
    <p>[1]
      <a class="moz-txt-link-freetext" href="https://www.samba.org/samba/docs/current/man-html/vfs_glusterfs.8.html">https://www.samba.org/samba/docs/current/man-html/vfs_glusterfs.8.html</a></p>
    <p>on my test machine i did this: (centos 7) <br>
    </p>
    <p>
      first we need to install <code>samba-vfs-glusterfs</code> and of
      course the samba server which comes as a dependency: </p>
    <pre class="code">yum install samba-vfs-glusterfs
</pre>
    <pre class="code">gluster volume set vol1 server.allow-insecure on</pre>
    <p>
      now stop and start the gluster volume, this will auto-create a
      (non-working, how funny is that) configuration in <code>/etc/samba/smb.conf</code>
      gluster volume stop vol1
    </p>
    <pre class="code">gluster volume start vol1</pre>
    <p>
      now edit <code>/etc/samba/smb.conf</code> and add <code>kernel
        share modes = no</code> and also <code>guest ok=yes</code> to
      the newly created <code>[gluster-vol1]</code> section so that it
      finally looks about like this: </p>
    <pre class="code">[gluster-vol1]
comment = For samba share of volume vol1
vfs objects = glusterfs
glusterfs:volume = vol1
glusterfs:logfile = /var/log/samba/glusterfs-vol1.%M.log
glusterfs:loglevel = 7
path = /
read only = no
guest ok = yes
kernel share modes = no</pre>
    <p>
      now restart samba
    </p>
    <pre class="code">systemctl restart smb </pre>
    <p>
      and now you should be able to mount the samba share </p>
    <pre class="code">mount.cifs -o guest //gluster1/gluster-vol1 /mnt/cifs

</pre>
    <pre class="code">On 05.04.19 13:58, David Spisla wrote:
</pre>
    <blockquote type="cite"
cite="mid:CAJyj9j9oE5rmUFTOTM_ki1D9LovfqvhsBBDm632f=+jdJEFi0Q@mail.gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div>I forgot the link. Here it is:</div>
          <div><a
href="https://github.com/gluster/glusterdocs/blob/9f2c979b50517b7cb7bf9fbcfccb033bc7bf5082/docs/Administrator%20Guide/Accessing%20Gluster%20from%20Windows.md"
              moz-do-not-send="true">https://github.com/gluster/glusterdocs/blob/9f2c979b50517b7cb7bf9fbcfccb033bc7bf5082/docs/Administrator%20Guide/Accessing%20Gluster%20from%20Windows.md</a><br>
          </div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">Am Fr., 5. Apr. 2019 um
          13:57 Uhr schrieb David Spisla &lt;<a
            href="mailto:spisla80@gmail.com" moz-do-not-send="true">spisla80@gmail.com</a>&gt;:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">
            <div>Hello Anoop,</div>
            <div><br>
            </div>
            <div>it is a known issue that Gluster+Samba has a poor
              performance especially for small files.</div>
            <div>May this manual can give you more inspiration how to
              setup your Gluster and Samba environment.</div>
            <div><br>
            </div>
            <div>Regards</div>
            <div>David Spisla<br>
            </div>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">Am Fr., 5. Apr. 2019 um
              11:28 Uhr schrieb Anoop C S &lt;<a
                href="mailto:anoopcs@cryptolab.net" target="_blank"
                moz-do-not-send="true">anoopcs@cryptolab.net</a>&gt;:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">On Fri, 2019-04-05 at
              09:28 +0200, Benedikt Kaleß wrote:<br>
              &gt; Hi everyone,<br>
              &gt; <br>
              &gt; I'm running gluster version 5.5-1 and I'm dealing
              with a slow<br>
              &gt; performance together with samba and start to analyze
              the issue.<br>
              &gt; <br>
              &gt; I want to set the options for samba. But when I try<br>
              &gt; <br>
              &gt;     gluster volume set &lt;VOLNAME&gt;  group samba<br>
              &gt; <br>
              &gt; I get the following error message:<br>
              &gt; <br>
              &gt;     Unable to open file
              '/var/lib/glusterd/groups/samba'.<br>
              &gt; <br>
              &gt; Do you have any hints for me?<br>
              <br>
              This particular group command is only available from v6.0
              (as of now).<br>
              <br>
              <a
                href="https://bugzilla.redhat.com/show_bug.cgi?id=1656771"
                rel="noreferrer" target="_blank" moz-do-not-send="true">https://bugzilla.redhat.com/show_bug.cgi?id=1656771</a><br>
              <br>
              &gt; Thank you in advance<br>
              &gt; <br>
              &gt; Benedikt<br>
              &gt; <br>
              <br>
              _______________________________________________<br>
              Gluster-users mailing list<br>
              <a href="mailto:Gluster-users@gluster.org" target="_blank"
                moz-do-not-send="true">Gluster-users@gluster.org</a><br>
              <a
                href="https://lists.gluster.org/mailman/listinfo/gluster-users"
                rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.gluster.org/mailman/listinfo/gluster-users</a></blockquote>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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="https://lists.gluster.org/mailman/listinfo/gluster-users">https://lists.gluster.org/mailman/listinfo/gluster-users</a></pre>
    </blockquote>
  </body>
</html>