[Gluster-users] Samba-VFS-Glusterfs issues

Lalatendu Mohanty lmohanty at redhat.com
Fri Jul 18 09:59:11 UTC 2014


On 07/17/2014 07:11 PM, Jon Archer wrote:
> Hi all,
>
> I'm currently testing out the samba-vfs-glusterfs configuration to 
> look into replacing fuse mounted volumes.
>
> I've got a server configured as per:
> http://lalatendumohanty.wordpress.com/2014/02/11/using-glusterfs-with-samba-and-samba-vfs-plugin-for-glusterfs-on-fedora-20/ 
>
> but am seeing an issue:
> "Failed to set volfile_server..."
>
> I have a gluster volume share:
>
> Volume Name: share
> Type: Replicate
> Volume ID: 06d1eb42-873d-43fe-ae94-562e975cca9a
> Status: Started
> Number of Bricks: 1 x 2 = 2
> Transport-type: tcp
> Bricks:
> Brick1: storenode1:/gluster/bricks/share/brick1
> Brick2: storenode2:/gluster/bricks/share/brick1
> Options Reconfigured:
> server.allow-insecure: on
>
>
> and this is then added as a share in samba:
> [share]
> comment = Gluster and CTDB based share
> path = /
> read only = no
> guest ok = yes
> valid users = jon
> vfs objects = glusterfs
> glusterfs:loglevel = 10
> glusterfs:volume = share
>
>
> The share is visible at top level just not accessible, if i do try to 
> access it I get a samba client log entry of:
> [2014/07/17 13:31:56.084620, 0] 
> ../source3/modules/vfs_glusterfs.c:253(vfs_gluster_connect)
> Failed to set volfile_server localhost
>
>
> I've tried setting the glusterfs:volfile_server option in smb.conf to 
> IP, localhost and hostname with the same response just specifying 
> IP,localhost or hostname in the error message.
>
> Packages installed are:
>
> rpm -qa|grep gluster
> glusterfs-libs-3.5.1-1.el6.x86_64
> glusterfs-cli-3.5.1-1.el6.x86_64
> glusterfs-server-3.5.1-1.el6.x86_64
> glusterfs-3.5.1-1.el6.x86_64
> glusterfs-fuse-3.5.1-1.el6.x86_64
> samba-vfs-glusterfs-4.1.9-2.el6.x86_64
> glusterfs-api-3.5.1-1.el6.x86_64
>
> rpm -qa|grep samba
> samba-4.1.9-2.el6.x86_64
> samba-common-4.1.9-2.el6.x86_64
> samba-winbind-modules-4.1.9-2.el6.x86_64
> samba-vfs-glusterfs-4.1.9-2.el6.x86_64
> samba-winbind-clients-4.1.9-2.el6.x86_64
> samba-libs-4.1.9-2.el6.x86_64
> samba-winbind-4.1.9-2.el6.x86_64
> samba-client-4.1.9-2.el6.x86_64
>
>
> for purposes of testing I have disabled SELINUX and flushed all 
> firewall rules.
>
> Does anyone have any ideas on this error and how to resolve?

Hey Jon,

The output of "testparm -s" might help. Also you can try following

1. Remove the line "valid users = jon" from smb.conf
2. Set smbpasswd for root.
     $smbpasswd -a root

And try to access the share from the client (use root and <smbpasswd>)

-Lala



More information about the Gluster-users mailing list