Re: Samba-VFS-Glusterfs issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes I can mount the gluster volume at the shell and read/write from/to it so there is no issue with Gluster or the volume. It seems to be between samba and gluster from what I can gather.


Cheers

Jon


On 2014-07-17 15:04, Daniel Müller wrote:
With samba 4.1.7 on centos 6.5, glusterfs 3.4.1qa2


gluster volume status
Status of volume: sambacluster
Gluster process Port Online Pid
----------------------------------------------------------------------------
--
Brick s4master:/raid5hs/glusterfs/samba 49152 Y 2674 Brick s4slave:/raid5hs/glusterfs/samba 49152 Y 2728 NFS Server on localhost 2049 Y 2906 Self-heal Daemon on localhost N/A Y 2909 NFS Server on s4slave 2049 Y 3037 Self-heal Daemon on s4slave N/A Y 3041

There are no active volume tasks

Mounts

/dev/sdb1 on /raid5hs type xfs (rw)
And

172.17.1.1:/sambacluster on /mnt/glusterfs type fuse.glusterfs
(rw,allow_other,max_read=131072)





[home]
comment=home s4master vfs objects= recycle
vfs objects= recycle, glusterfs
recycle:repository= /%P/%U/.Papierkorb
glusterfs:volume= sambacluster
glusterfs:volfile_server = 172.17.1.1  <---set my ip there
recycle:exclude = *.tmp,*.temp,*.log,*.ldb,*.TMP,?~$*,~$*
recycle:keeptree = Yes
recycle:exclude = ?~$*,~$*,*.tmp,*.temp,*.TMP,Thumbs.db
recycle:exclude_dir = .Papierkorb,Papierkorb,tmp,temp,profile,.profile
recycle:touch_mtime = yes
recycle:versions = Yes
recycle:minsize = 1
msdfs root=yes
path= /ads/home ##<---set path that wil be accessible on my gluster vol
read only=no
posix locking =NO  ##<--gluster can work
kernel share modes = No  ##gluster can work
access based share enum=yes
hide unreadable=yes


Can you read and write to the rmounted gluster-vol from shell?


EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen
Tel.: 07071/206-463, Fax: 07071/206-499
eMail: mueller@xxxxxxxxxxxxxxx
Internet: www.tropenklinik.de





-----Ursprüngliche Nachricht-----
Von: gluster-users-bounces@xxxxxxxxxxx
[mailto:gluster-users-bounces@xxxxxxxxxxx] Im Auftrag von Jon Archer
Gesendet: Donnerstag, 17. Juli 2014 15:42
An: gluster-users
Betreff:  Samba-VFS-Glusterfs issues

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?

Thanks

Jon
_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://supercolony.gluster.org/mailman/listinfo/gluster-users
_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://supercolony.gluster.org/mailman/listinfo/gluster-users





[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux