<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 02/14/2014 06:37 AM, Dan Mons wrote:<br>
    </div>
    <blockquote
cite="mid:CACa6Tyd4saK=g70bmP1FCbackHS1dpcTHTBsbx5G3xiy8dDM_g@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,<br>
        <br>
        This is failing for me. &nbsp;I've had the same problems after trying
        to build my own vfs_glusterfs from source. &nbsp;I'm certain I'm
        doing something stupid.
        <div><br>
        </div>
        <div>Client is a Windows Server 2008R2 64bit machine with AD
          authentication.</div>
        <div><br>
        </div>
        <div>Server is CentOS 6.4, Gluster 3.4.1GA, Samba 4.1.4 with
          matching samba_vfs_glusterfs as per this thread, AD
          authentication (sssd for the Linux/PAM/nsswitch side, and
          Samba is configured as a member server). &nbsp;The Gluster volume
          is working fine (this is our production test/backup cluster,
          and has been in operation for over a year).</div>
        <div><br>
          Samba works fine when pointing to a local FUSE mount (this is
          how we run in production today for Windows and Mac clients).
          &nbsp;When I change to vfs_glusterfs, it all goes wrong.</div>
        <div><br>
        </div>
        <div>Client errors include:</div>
        <div><br>
        </div>
        <div>Action: On Windows regular windows explorer directory
          browsing</div>
        <div>Result: All good. &nbsp;Much faster than regular Samba to FUSE.</div>
        <div><br>
        </div>
        <div>Action: On Windows: Right click -&gt; New -&gt; &nbsp;Text
          Document</div>
        <div>Result: "Unable to create the file "New Text Document.txt".
          &nbsp;The system cannot find the file specified.</div>
        <div><br>
        </div>
        <div>Action:&nbsp;</div>
        <div>On a Linux box: dmesg &gt; test.txt</div>
        <div>On Windows: double-click test.txt</div>
        <div>Result: The process cannot access the file because it is in
          use by another process</div>
        <div><br>
        </div>
        <div>Action: On Windows: drag and drop a text file to a share</div>
        <div>Result: nothing (file not copied, no error dialog).</div>
        <div><br>
        </div>
        <div>Samba logs:</div>
        <div>
          <div>[2014/02/14 10:44:52.972999, &nbsp;0]
            ../source3/modules/vfs_glusterfs.c:292(vfs_gluster_connect)</div>
          <div>&nbsp; prodbackup: Initialized volume from server localhost</div>
          <div>[2014/02/14 10:46:31.020793, &nbsp;0]
            ../source3/modules/vfs_glusterfs.c:627(vfs_gluster_stat)</div>
          <div>&nbsp; glfs_stat(./..) failed: No data available</div>
          <div>[2014/02/14 10:47:03.326100, &nbsp;0]
            ../source3/modules/vfs_glusterfs.c:292(vfs_gluster_connect)</div>
          <div>&nbsp; prodbackup: Initialized volume from server localhost</div>
          <div>[2014/02/14 10:47:08.449040, &nbsp;0]
            ../source3/modules/vfs_glusterfs.c:627(vfs_gluster_stat)</div>
          <div>&nbsp; glfs_stat(./..) failed: No data available</div>
          <div>[2014/02/14 10:48:21.007241, &nbsp;0]
            ../source3/modules/vfs_glusterfs.c:292(vfs_gluster_connect)</div>
          <div>&nbsp; prodbackup: Initialized volume from server localhost</div>
          <div>[2014/02/14 10:48:21.068066, &nbsp;0]
            ../source3/modules/vfs_glusterfs.c:627(vfs_gluster_stat)</div>
          <div>&nbsp; glfs_stat(./..) failed: No data available</div>
          <div>
            [2014/02/14 10:51:36.683883, &nbsp;0]
            ../source3/modules/vfs_glusterfs.c:292(vfs_gluster_connect)</div>
          <div>&nbsp; prodbackup: Initialized volume from server localhost</div>
          <div>[2014/02/14 10:51:36.743577, &nbsp;0]
            ../source3/modules/vfs_glusterfs.c:627(vfs_gluster_stat)</div>
          <div>&nbsp; glfs_stat(./..) failed: No data available</div>
          <div>[2014/02/14 10:53:14.160588, &nbsp;0]
            ../source3/modules/vfs_glusterfs.c:627(vfs_gluster_stat)</div>
          <div>&nbsp; glfs_stat(./..) failed: No data available</div>
          <div>[2014/02/14 10:53:57.229060, &nbsp;0]
            ../source3/modules/vfs_glusterfs.c:292(vfs_gluster_connect)</div>
          <div>&nbsp; prodbackup: Initialized volume from server localhost</div>
          <div>[2014/02/14 10:53:57.288750, &nbsp;0]
            ../source3/modules/vfs_glusterfs.c:627(vfs_gluster_stat)</div>
          <div>&nbsp; glfs_stat(./..) failed: No data available</div>
          <div>
            [2014/02/14 10:54:47.062171, &nbsp;0]
            ../source3/modules/vfs_glusterfs.c:292(vfs_gluster_connect)</div>
          <div>&nbsp; prodbackup: Initialized volume from server localhost</div>
          <div>[2014/02/14 10:54:47.121809, &nbsp;0]
            ../source3/modules/vfs_glusterfs.c:627(vfs_gluster_stat)</div>
          <div>&nbsp; glfs_stat(./..) failed: No data available</div>
          <div>[2014/02/14 10:55:16.602058, &nbsp;0]
            ../source3/modules/vfs_glusterfs.c:292(vfs_gluster_connect)</div>
          <div>&nbsp; prodbackup: Initialized volume from server localhost</div>
          <div>[2014/02/14 10:55:16.670562, &nbsp;0]
            ../source3/modules/vfs_glusterfs.c:627(vfs_gluster_stat)</div>
          <div>&nbsp; glfs_stat(./..) failed: No data available</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
    </blockquote>
    <br>
    The log seems similar to bug
    <a class="moz-txt-link-freetext" href="https://bugzilla.redhat.com/show_bug.cgi?id=1062674">https://bugzilla.redhat.com/show_bug.cgi?id=1062674</a><br>
    <br>
    Please put "kernel share modes = No" for the shares and let us know
    if it works for you.<br>
    <br>
    -Lala<br>
    <blockquote
cite="mid:CACa6Tyd4saK=g70bmP1FCbackHS1dpcTHTBsbx5G3xiy8dDM_g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>/etc/samba/smb.conf:</div>
        <div><br>
        </div>
        <div>
          <div>[global]</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; workgroup = BLAH</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; server string = Samba Server Version %v</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; log file = /var/log/samba/log.%m<br>
          </div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; max log size = 50<br>
          </div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; security = ads<br>
          </div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; passdb backend = tdbsam</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; realm = BLAH</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; domain master = no<br>
          </div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; domain logons = no</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; wins support = yes<br>
          </div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; wins proxy = yes</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; dns proxy = yes</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; load printers = no<br>
          </div>
          <div>## Shares<br>
          </div>
          <div>[prodbackup]<br>
          </div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; vfs object = glusterfs</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; glusterfs:volume = prodbackup</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; glusterfs:volfile_server = localhost</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; path = /</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; Comment = prodbackup</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; browseable = yes</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; writable = yes</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; guest ok = no</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; valid users = +prod</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; create mask = 0660</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; force create mode = 0660</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; directory mask = 0770</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; force directory mode = 0770</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; hide dot files = no</div>
          <div><br>
          </div>
        </div>
        <div>Any pointers would be appreciated.&nbsp;</div>
        <div><br>
        </div>
        <div>-Dan</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>----------------<br>
          Dan Mons<br>
          Skunk Works<br>
          Cutting Edge<br>
          <a moz-do-not-send="true" href="http://cuttingedge.com.au"
            target="_blank">http://cuttingedge.com.au</a></div>
        <br>
        <br>
        <div class="gmail_quote">On 7 February 2014 07:12, Dan Mons <span
            dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:dmons@cuttingedge.com.au" target="_blank">dmons@cuttingedge.com.au</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            Fantastic work, thank you.<br>
            <br>
            -Dan<br>
            ----------------<br>
            Dan Mons<br>
            Skunk Works<br>
            Cutting Edge<br>
            <a moz-do-not-send="true" href="http://cuttingedge.com.au"
              target="_blank">http://cuttingedge.com.au</a><br>
            <div class="HOEnZb">
              <div class="h5"><br>
                <br>
                On 6 February 2014 22:50, Kaleb KEITHLEY &lt;<a
                  moz-do-not-send="true"
                  href="mailto:kkeithle@redhat.com">kkeithle@redhat.com</a>&gt;
                wrote:<br>
                &gt;<br>
                &gt; YUM repo at <a moz-do-not-send="true"
                  href="http://download.gluster.org/pub/gluster/glusterfs/samba/"
                  target="_blank">http://download.gluster.org/pub/gluster/glusterfs/samba/</a>
                now has<br>
                &gt; el6 RPMs for RHEL6, CentOS6; along with RPMs for
                Fedora 18 and Fedora 19.<br>
                &gt;<br>
                &gt; Fedora 20 and Fedora 21 (rawhide) have Samba 4.1.3
                by default.<br>
                &gt;<br>
                &gt; --<br>
                &gt;<br>
                &gt; Kaleb<br>
                &gt; _______________________________________________<br>
                &gt; Gluster-users mailing list<br>
                &gt; <a moz-do-not-send="true"
                  href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
                &gt; <a moz-do-not-send="true"
                  href="http://supercolony.gluster.org/mailman/listinfo/gluster-users"
                  target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Gluster-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-devel@nongnu.org">Gluster-devel@nongnu.org</a>
<a class="moz-txt-link-freetext" href="https://lists.nongnu.org/mailman/listinfo/gluster-devel">https://lists.nongnu.org/mailman/listinfo/gluster-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>