[Gluster-users] samba-vfs-glusterfs share problems

Diego Remolina dijuremo at gmail.com
Thu Oct 1 21:53:34 UTC 2015


On all your shares where you use vfs objects = glusterfs also add the option:

kernel share modes = No

Then restart samba.

Here is one of my example shares:

[Projects]
   path = /projects
   browseable = yes
   write list = @Staff,root, at Admin, at Managers
   writeable = yes
   guest ok = no
   create mask = 660
   directory mask = 770
   kernel share modes = No
   vfs objects = glusterfs
   glusterfs:loglevel = 7
   glusterfs:logfile = /var/log/samba/glusterfs-projects.log
   glusterfs:volume = export

HTH,

Diego

On Thu, Oct 1, 2015 at 4:15 PM, Steve Dainard <sdainard at spd1.com> wrote:
> samba-vfs-glusterfs-4.1.12-23.el7_1.x86_64
> gluster 3.6.6
>
> I've shared a gluster volume using samba vfs with the options:
> vfs objects = glusterfs
> glusterfs:volume = test
> path = /
>
> I can do the following:
> (Windows client):
> -Create new directory
> -Create new file -- an error pops up "Unable to create the file 'New
> Test Document.txt' The system cannot find the file specified.' BUT the
> file is created anyways and shows up in the directory immediately
> -Create a new sub directory in the above directory
> -Delete or rename any file
> (Linux client)
> -Create new directory
> -Create a new file under sub-directory -- "Device or resource busy"
> BUT the file is created anyways - must refresh to see file in GUI
> -Delete or rename any file
>
> Can not do:
> (Windows client)
> -Edit the new txt file in notepad -- file opens but popup says 'The
> process cannot access the file because it is being used by another
> process.'
> -Create a new file in the above new directory -- "Unable to create the
> file 'New Text Document.txt' The system cannot find the file
> specified", refreshing the directory doesn't list the file, but if
> samba is restarted the client can see the file.
> (Linux client)
> -Edit the new file -- "Unexpected error: Device or resource busy"
>
>
> I've also shared the same volume via a fuse mount, and have no issues
> performing any file operations.
>
> smb.conf shares:
>
> [gluster-test-fuse]
> comment = exporting gluster filesystem via fuse mount
> path = /mnt/gluster/test
> read only = no
> writable = yes
> write list = +users
> browseable = yes
> guest ok = yes
> create mask = 0660
> ;directory mask = 0770
> force directory mode = 0770
> force group = users
>
> [gluster-test]
> comment = exporting gluster filesystem via gfapi
> vfs objects = glusterfs
> glusterfs:volume = test
> glusterfs:logfile = /var/log/samba/glusterfs-test.%M.log
> glusterfs:loglevel = 7
> path = /
> writable = yes
> write list = +users
> browseable = yes
> guest ok = yes
> create mask = 0660
> ;directory mask = 0770
> force directory mode = 0770
> force group = users
>
> Other things of note:
>
> I have a default ACL on the gluster volume, as well as setgid.
>
> Anyone else get samba vfs to work properly? I've opened a bugzilla
> here: https://bugzilla.redhat.com/show_bug.cgi?id=1268092
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://www.gluster.org/mailman/listinfo/gluster-users


More information about the Gluster-users mailing list