[Gluster-users] [Gluster-devel] RPMs for Samba 4.1.3 w/ Gluster VFS plug-in for RHEL, CentOS, etc., now available

Lalatendu Mohanty lmohanty at redhat.com
Fri Feb 14 06:24:58 UTC 2014


On 02/14/2014 06:37 AM, Dan Mons wrote:
> Hi,
>
> This is failing for me.  I've had the same problems after trying to 
> build my own vfs_glusterfs from source.  I'm certain I'm doing 
> something stupid.
>
> Client is a Windows Server 2008R2 64bit machine with AD authentication.
>
> 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).  The Gluster volume is working fine (this is our production 
> test/backup cluster, and has been in operation for over a year).
>
> Samba works fine when pointing to a local FUSE mount (this is how we 
> run in production today for Windows and Mac clients).  When I change 
> to vfs_glusterfs, it all goes wrong.
>
> Client errors include:
>
> Action: On Windows regular windows explorer directory browsing
> Result: All good.  Much faster than regular Samba to FUSE.
>
> Action: On Windows: Right click -> New ->  Text Document
> Result: "Unable to create the file "New Text Document.txt".  The 
> system cannot find the file specified.
>
> Action:
> On a Linux box: dmesg > test.txt
> On Windows: double-click test.txt
> Result: The process cannot access the file because it is in use by 
> another process
>
> Action: On Windows: drag and drop a text file to a share
> Result: nothing (file not copied, no error dialog).
>
> Samba logs:
> [2014/02/14 10:44:52.972999,  0] 
> ../source3/modules/vfs_glusterfs.c:292(vfs_gluster_connect)
>   prodbackup: Initialized volume from server localhost
> [2014/02/14 10:46:31.020793,  0] 
> ../source3/modules/vfs_glusterfs.c:627(vfs_gluster_stat)
>   glfs_stat(./..) failed: No data available
> [2014/02/14 10:47:03.326100,  0] 
> ../source3/modules/vfs_glusterfs.c:292(vfs_gluster_connect)
>   prodbackup: Initialized volume from server localhost
> [2014/02/14 10:47:08.449040,  0] 
> ../source3/modules/vfs_glusterfs.c:627(vfs_gluster_stat)
>   glfs_stat(./..) failed: No data available
> [2014/02/14 10:48:21.007241,  0] 
> ../source3/modules/vfs_glusterfs.c:292(vfs_gluster_connect)
>   prodbackup: Initialized volume from server localhost
> [2014/02/14 10:48:21.068066,  0] 
> ../source3/modules/vfs_glusterfs.c:627(vfs_gluster_stat)
>   glfs_stat(./..) failed: No data available
> [2014/02/14 10:51:36.683883,  0] 
> ../source3/modules/vfs_glusterfs.c:292(vfs_gluster_connect)
>   prodbackup: Initialized volume from server localhost
> [2014/02/14 10:51:36.743577,  0] 
> ../source3/modules/vfs_glusterfs.c:627(vfs_gluster_stat)
>   glfs_stat(./..) failed: No data available
> [2014/02/14 10:53:14.160588,  0] 
> ../source3/modules/vfs_glusterfs.c:627(vfs_gluster_stat)
>   glfs_stat(./..) failed: No data available
> [2014/02/14 10:53:57.229060,  0] 
> ../source3/modules/vfs_glusterfs.c:292(vfs_gluster_connect)
>   prodbackup: Initialized volume from server localhost
> [2014/02/14 10:53:57.288750,  0] 
> ../source3/modules/vfs_glusterfs.c:627(vfs_gluster_stat)
>   glfs_stat(./..) failed: No data available
> [2014/02/14 10:54:47.062171,  0] 
> ../source3/modules/vfs_glusterfs.c:292(vfs_gluster_connect)
>   prodbackup: Initialized volume from server localhost
> [2014/02/14 10:54:47.121809,  0] 
> ../source3/modules/vfs_glusterfs.c:627(vfs_gluster_stat)
>   glfs_stat(./..) failed: No data available
> [2014/02/14 10:55:16.602058,  0] 
> ../source3/modules/vfs_glusterfs.c:292(vfs_gluster_connect)
>   prodbackup: Initialized volume from server localhost
> [2014/02/14 10:55:16.670562,  0] 
> ../source3/modules/vfs_glusterfs.c:627(vfs_gluster_stat)
>   glfs_stat(./..) failed: No data available
>
>

The log seems similar to bug 
https://bugzilla.redhat.com/show_bug.cgi?id=1062674

Please put "kernel share modes = No" for the shares and let us know if 
it works for you.

-Lala
> /etc/samba/smb.conf:
>
> [global]
>         workgroup = BLAH
>         server string = Samba Server Version %v
>         log file = /var/log/samba/log.%m
>         max log size = 50
>         security = ads
>         passdb backend = tdbsam
>         realm = BLAH
>         domain master = no
>         domain logons = no
>         wins support = yes
>         wins proxy = yes
>         dns proxy = yes
>         load printers = no
> ## Shares
> [prodbackup]
>         vfs object = glusterfs
>         glusterfs:volume = prodbackup
>         glusterfs:volfile_server = localhost
>         path = /
>         Comment = prodbackup
>         browseable = yes
>         writable = yes
>         guest ok = no
>         valid users = +prod
>         create mask = 0660
>         force create mode = 0660
>         directory mask = 0770
>         force directory mode = 0770
>         hide dot files = no
>
> Any pointers would be appreciated.
>
> -Dan
>
>
> ----------------
> Dan Mons
> Skunk Works
> Cutting Edge
> http://cuttingedge.com.au
>
>
> On 7 February 2014 07:12, Dan Mons <dmons at cuttingedge.com.au 
> <mailto:dmons at cuttingedge.com.au>> wrote:
>
>     Fantastic work, thank you.
>
>     -Dan
>     ----------------
>     Dan Mons
>     Skunk Works
>     Cutting Edge
>     http://cuttingedge.com.au
>
>
>     On 6 February 2014 22:50, Kaleb KEITHLEY <kkeithle at redhat.com
>     <mailto:kkeithle at redhat.com>> wrote:
>     >
>     > YUM repo at
>     http://download.gluster.org/pub/gluster/glusterfs/samba/ now has
>     > el6 RPMs for RHEL6, CentOS6; along with RPMs for Fedora 18 and
>     Fedora 19.
>     >
>     > Fedora 20 and Fedora 21 (rawhide) have Samba 4.1.3 by default.
>     >
>     > --
>     >
>     > Kaleb
>     > _______________________________________________
>     > Gluster-users mailing list
>     > Gluster-users at gluster.org <mailto:Gluster-users at gluster.org>
>     > http://supercolony.gluster.org/mailman/listinfo/gluster-users
>
>
>
>
> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel at nongnu.org
> https://lists.nongnu.org/mailman/listinfo/gluster-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20140214/40f57289/attachment.html>


More information about the Gluster-users mailing list