<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>I have moved a step further as now I can mount the volume on client machine. It was selinux problem.</div><div><br></div><div>setsebool -P samba_load_libgfapi 1<br></div><div><br></div><div> However when I try to write a file on it,</div><div>I am receiving 'Permission denied'</div><div><br></div><div><br>[root@workstation smbdata]# df<br>Filesystem 1K-blocks Used Available Use% Mounted on<br>/dev/mapper/centos-root 6486016 1191072 5294944 19% /<br>devtmpfs 495892 0 495892 0% /dev<br>tmpfs 507736 0 507736 0% /dev/shm<br>tmpfs 507736 6836 500900 2% /run<br>tmpfs 507736 0 507736 0% /sys/fs/cgroup<br>/dev/sda1 1038336 161940 876396 16% /boot<br>tmpfs 101548 0 101548 0% /run/user/1000<br>//servera.lab.local/gluster-mastervol 2076672 66720 2009952 4% /mnt/smbdata<br>[root@workstation smbdata]# ls<br>file00 file01 file02 file03 file04 file05 file06 file07 file08 file09 file10<br>[root@workstation smbdata]# touch file11<br>touch: cannot touch ‘file11’: Permission denied<br></div><div><br></div><div>Any idea how can I solve this problem?</div><div><br></div><div>Thanks in advance!<br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">Στις Τρί, 9 Οκτ 2018 στις 3:21 μ.μ., ο/η Diego Remolina <<a href="mailto:dijuremo@gmail.com">dijuremo@gmail.com</a>> έγραψε:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Per: <a href="https://www.samba.org/samba/docs/current/man-html/vfs_glusterfs.8.html" rel="noreferrer" target="_blank">https://www.samba.org/samba/docs/current/man-html/vfs_glusterfs.8.html</a><br>
<br>
Does adding: kernel share modes = no<br>
to smb.conf and restarting samba helps?<br>
<br>
FWIW, I have had many recent problems using the samba vfs plugins on<br>
Centos 7.5 (latest) against a 3.10.x glusterfs server. When exporting<br>
via samba and using vfs objects = glusterfs many different programs<br>
have i/o errors specially when trying to save files.<br>
<br>
Some specific files (Autodesk Revit files) present problem reading.<br>
<br>
My current workaround for regular operation has been using a fuse<br>
mount and sharing directly from it via samba. So commented out all the<br>
vfs objects and gluster related configurations and exported the<br>
locally fuse mounted directory.<br>
On Tue, Oct 9, 2018 at 9:12 AM Christos Tsalidis <<a href="mailto:chtsalid@gmail.com" target="_blank">chtsalid@gmail.com</a>> wrote:<br>
><br>
> Hi all,<br>
><br>
> I am testing the samba client in glusterfs 3.12.14 version on CentOS Linux release 7.5.1804 and getting a mount error(5): Input/output error.<br>
><br>
><br>
> [root@workstation ~]# mount /mnt/smbdata<br>
> mount error(5): Input/output error<br>
> Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)<br>
> [root@workstation ~]# cat /etc/fstab | grep smbdata<br>
> //servera.lab.local/gluster-mastervol /mnt/smbdata cifs user=smbuser,pass=redhat 0 0<br>
> [root@workstation ~]# rpm -q cifs-utils<br>
> cifs-utils-6.2-10.el7.x86_64<br>
><br>
> cat /var/log/messages<br>
><br>
> Oct 9 13:50:33 workstation kernel: CIFS VFS: cifs_mount failed w/return code = -5<br>
> Oct 9 13:50:53 workstation kernel: CIFS VFS: cifs_mount failed w/return code = -5<br>
> Oct 9 13:51:49 workstation kernel: CIFS VFS: cifs_mount failed w/return code = -5<br>
> Oct 9 13:52:06 workstation kernel: CIFS VFS: cifs_mount failed w/return code = -5<br>
> Oct 9 14:01:02 workstation systemd: Created slice User Slice of root.<br>
> Oct 9 14:01:02 workstation systemd: Starting User Slice of root.<br>
> Oct 9 14:01:02 workstation systemd: Started Session 4 of user root.<br>
> Oct 9 14:01:02 workstation systemd: Starting Session 4 of user root.<br>
> Oct 9 14:01:02 workstation systemd: Removed slice User Slice of root.<br>
> Oct 9 14:01:02 workstation systemd: Stopping User Slice of root.<br>
> Oct 9 14:34:54 workstation kernel: CIFS VFS: cifs_mount failed w/return code = -5<br>
> Oct 9 14:36:02 workstation kernel: CIFS VFS: cifs_mount failed w/return code = -5<br>
><br>
><br>
><br>
> [root@servera ~]# systemctl status smb<br>
> ● smb.service - Samba SMB Daemon<br>
> Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)<br>
> Active: active (running) since Tue 2018-10-09 13:28:48 CEST; 53min ago<br>
> Main PID: 18707 (smbd)<br>
> Status: "smbd: ready to serve connections..."<br>
> CGroup: /system.slice/smb.service<br>
> ├─18707 /usr/sbin/smbd --foreground --no-process-group<br>
> ├─18709 /usr/sbin/smbd --foreground --no-process-group<br>
> ├─18710 /usr/sbin/smbd --foreground --no-process-group<br>
> └─18711 /usr/sbin/smbd --foreground --no-process-group<br>
><br>
> Oct 09 13:35:49 servera.lab.local smbd[18986]: [2018/10/09 13:35:49.774640, 0] ../source3/modules/vfs_glusterfs.c:345(vfs...nnect)<br>
> Oct 09 13:35:49 servera.lab.local smbd[18986]: mastervol: Failed to initialize volume (Transport endpoint is not connected)<br>
> Oct 09 13:36:46 servera.lab.local smbd[18997]: [2018/10/09 13:36:46.098201, 0] ../source3/modules/vfs_glusterfs.c:345(vfs...nnect)<br>
> Oct 09 13:36:46 servera.lab.local smbd[18997]: mastervol: Failed to initialize volume (Transport endpoint is not connected)<br>
> Oct 09 13:37:03 servera.lab.local smbd[19036]: [2018/10/09 13:37:03.470317, 0] ../source3/modules/vfs_glusterfs.c:345(vfs...nnect)<br>
> Oct 09 13:37:03 servera.lab.local smbd[19036]: mastervol: Failed to initialize volume (Transport endpoint is not connected)<br>
> Oct 09 14:19:51 servera.lab.local smbd[19075]: [2018/10/09 14:19:51.273307, 0] ../source3/modules/vfs_glusterfs.c:345(vfs...nnect)<br>
> Oct 09 14:19:51 servera.lab.local smbd[19075]: mastervol: Failed to initialize volume (Transport endpoint is not connected)<br>
> Oct 09 14:20:59 servera.lab.local smbd[19085]: [2018/10/09 14:20:59.726227, 0] ../source3/modules/vfs_glusterfs.c:345(vfs...nnect)<br>
> Oct 09 14:20:59 servera.lab.local smbd[19085]: mastervol: Failed to initialize volume (Transport endpoint is not connected)<br>
> Hint: Some lines were ellipsized, use -l to show in full.<br>
> [root@servera ~]# gluster volume info mastervol<br>
><br>
> Volume Name: mastervol<br>
> Type: Distribute<br>
> Volume ID: f6bfe62f-068d-4ade-8d47-ee2e61418804<br>
> Status: Started<br>
> Snapshot Count: 0<br>
> Number of Bricks: 2<br>
> Transport-type: tcp<br>
> Bricks:<br>
> Brick1: servera:/bricks/brick-a1/brick<br>
> Brick2: serverb:/bricks/brick-b1/brick<br>
> Options Reconfigured:<br>
> storage.batch-fsync-delay-usec: 0<br>
> server.allow-insecure: on<br>
> performance.stat-prefetch: off<br>
> transport.address-family: inet<br>
> nfs.disable: off<br>
> [root@servera ~]# gluster volume status mastervol<br>
> Status of volume: mastervol<br>
> Gluster process TCP Port RDMA Port Online Pid<br>
> ------------------------------------------------------------------------------<br>
> Brick servera:/bricks/brick-a1/brick 49153 0 Y 18904<br>
> Brick serverb:/bricks/brick-b1/brick 49153 0 Y 9654<br>
> NFS Server on localhost 2049 0 Y 19024<br>
> NFS Server on serverb.lab.local 2049 0 Y 9675<br>
><br>
> Task Status of Volume mastervol<br>
> ------------------------------------------------------------------------------<br>
> There are no active volume tasks<br>
><br>
><br>
> [root@servera ~]# firewall-cmd --list-services<br>
> ssh dhcpv6-client glusterfs nfs rpc-bind samba<br>
><br>
> [root@servera ~]# cat /etc/passwd | grep smbuser<br>
> smbuser:x:1001:1001::/home/smbuser:/sbin/nologin<br>
><br>
><br>
> [root@servera ~]# cat /etc/samba/smb.conf<br>
> # See smb.conf.example for a more detailed config file or<br>
> # read the smb.conf manpage.<br>
> # Run 'testparm' to verify the config is correct after<br>
> # you modified it.<br>
><br>
> [global]<br>
> workgroup = SAMBA<br>
> security = user<br>
><br>
> passdb backend = tdbsam<br>
><br>
> printing = cups<br>
> printcap name = cups<br>
> load printers = yes<br>
> cups options = raw<br>
><br>
> [homes]<br>
> comment = Home Directories<br>
> valid users = %S, %D%w%S<br>
> browseable = No<br>
> read only = No<br>
> inherit acls = Yes<br>
><br>
> [printers]<br>
> comment = All Printers<br>
> path = /var/tmp<br>
> printable = Yes<br>
> create mask = 0600<br>
> browseable = No<br>
><br>
> [print$]<br>
> comment = Printer Drivers<br>
> path = /var/lib/samba/drivers<br>
> write list = @printadmin root<br>
> force group = @printadmin<br>
> create mask = 0664<br>
> directory mask = 0775<br>
><br>
> [gluster-mastervol]<br>
> comment = For samba share of volume mastervol<br>
> vfs objects = glusterfs<br>
> glusterfs:volume = mastervol<br>
> glusterfs:logfile = /var/log/samba/glusterfs-mastervol.%M.log<br>
> glusterfs:loglevel = 7<br>
> path = /<br>
> read only = no<br>
> guest ok = yes<br>
><br>
> [root@servera ~]# cat /var/log/samba/glusterfs-mastervol.10.0.2.20.log<br>
> [2018-10-09 11:35:25.955750] W [MSGID: 101002] [options.c:995:xl_opt_validate] 0-gfapi: option 'address-family' is deprecated, preferred is 'transport.address-family', continuing with correction<br>
> [2018-10-09 11:35:25.966487] E [socket.c:3295:socket_connect] 0-gfapi: connection attempt on failed, (Permission denied)<br>
> [2018-10-09 11:35:25.966861] I [MSGID: 104024] [glfs-mgmt.c:811:mgmt_rpc_notify] 0-glfs-mgmt: disconnected from remote-host: localhost<br>
> [2018-10-09 11:35:29.969343] E [socket.c:3295:socket_connect] 0-gfapi: connection attempt on failed, (Permission denied)<br>
> [2018-10-09 11:35:29.969551] I [MSGID: 104025] [glfs-mgmt.c:828:mgmt_rpc_notify] 0-glfs-mgmt: Exhausted all volfile servers [Transport endpoint is not connected]<br>
> [2018-10-09 11:35:29.971484] I [MSGID: 101191] [event-epoll.c:644:event_dispatch_epoll_worker] 0-epoll: Exited thread with index 1<br>
> [2018-10-09 11:35:29.969550] I [MSGID: 104024] [glfs-mgmt.c:811:mgmt_rpc_notify] 0-glfs-mgmt: disconnected from remote-host: localhost<br>
> [2018-10-09 11:35:29.971734] I [timer.c:89:gf_timer_call_cancel] (-->/lib64/libglusterfs.so.0(gf_log_fini+0x18) [0x7f5d7ab08938] -->/lib64/libglusterfs.so.0(gf_log_disable_suppression_before_exit+0x33) [0x7f5d7ab08903] -->/lib64/libglusterfs.so.0(gf_timer_call_cancel+0x179) [0x7f5d7ab137f9] ) 0-timer: ctx cleanup started<br>
> [2018-10-09 11:35:46.758283] W [MSGID: 101002] [options.c:995:xl_opt_validate] 0-gfapi: option 'address-family' is deprecated, preferred is 'transport.address-family', continuing with correction<br>
> [2018-10-09 11:35:46.768809] E [socket.c:3295:socket_connect] 0-gfapi: connection attempt on failed, (Permission denied)<br>
> [2018-10-09 11:35:46.769146] I [MSGID: 104024] [glfs-mgmt.c:811:mgmt_rpc_notify] 0-glfs-mgmt: disconnected from remote-host: localhost<br>
> [2018-10-09 11:35:49.774441] E [socket.c:3295:socket_connect] 0-gfapi: connection attempt on failed, (Permission denied)<br>
> [2018-10-09 11:35:49.774597] I [MSGID: 104025] [glfs-mgmt.c:828:mgmt_rpc_notify] 0-glfs-mgmt: Exhausted all volfile servers [Transport endpoint is not connected]<br>
> [2018-10-09 11:35:49.776114] I [MSGID: 101191] [event-epoll.c:644:event_dispatch_epoll_worker] 0-epoll: Exited thread with index 1<br>
> [2018-10-09 11:35:49.774595] I [MSGID: 104024] [glfs-mgmt.c:811:mgmt_rpc_notify] 0-glfs-mgmt: disconnected from remote-host: localhost<br>
> [2018-10-09 11:35:49.776381] I [timer.c:89:gf_timer_call_cancel] (-->/lib64/libglusterfs.so.0(gf_log_fini+0x18) [0x7f5d7ab08938] -->/lib64/libglusterfs.so.0(gf_log_disable_suppression_before_exit+0x33) [0x7f5d7ab08903] -->/lib64/libglusterfs.so.0(gf_timer_call_cancel+0x179) [0x7f5d7ab137f9] ) 0-timer: ctx cleanup started<br>
> [2018-10-09 11:36:43.084797] W [MSGID: 101002] [options.c:995:xl_opt_validate] 0-gfapi: option 'address-family' is deprecated, preferred is 'transport.address-family', continuing with correction<br>
> [2018-10-09 11:36:43.093954] E [socket.c:3295:socket_connect] 0-gfapi: connection attempt on failed, (Permission denied)<br>
> [2018-10-09 11:36:43.094242] I [MSGID: 104024] [glfs-mgmt.c:811:mgmt_rpc_notify] 0-glfs-mgmt: disconnected from remote-host: localhost<br>
> [2018-10-09 11:36:46.098039] E [socket.c:3295:socket_connect] 0-gfapi: connection attempt on failed, (Permission denied)<br>
> [2018-10-09 11:36:46.098160] I [MSGID: 104025] [glfs-mgmt.c:828:mgmt_rpc_notify] 0-glfs-mgmt: Exhausted all volfile servers [Transport endpoint is not connected]<br>
> [2018-10-09 11:36:46.099301] I [MSGID: 101191] [event-epoll.c:644:event_dispatch_epoll_worker] 0-epoll: Exited thread with index 1<br>
> [2018-10-09 11:36:46.098158] I [MSGID: 104024] [glfs-mgmt.c:811:mgmt_rpc_notify] 0-glfs-mgmt: disconnected from remote-host: localhost<br>
> [2018-10-09 11:36:46.099661] I [timer.c:89:gf_timer_call_cancel] (-->/lib64/libglusterfs.so.0(gf_log_fini+0x18) [0x7f5d7ab08938] -->/lib64/libglusterfs.so.0(gf_log_disable_suppression_before_exit+0x33) [0x7f5d7ab08903] -->/lib64/libglusterfs.so.0(gf_timer_call_cancel+0x179) [0x7f5d7ab137f9] ) 0-timer: ctx cleanup started<br>
> [2018-10-09 11:37:00.456669] W [MSGID: 101002] [options.c:995:xl_opt_validate] 0-gfapi: option 'address-family' is deprecated, preferred is 'transport.address-family', continuing with correction<br>
> [2018-10-09 11:37:00.466135] E [socket.c:3295:socket_connect] 0-gfapi: connection attempt on failed, (Permission denied)<br>
> [2018-10-09 11:37:00.466323] I [MSGID: 104024] [glfs-mgmt.c:811:mgmt_rpc_notify] 0-glfs-mgmt: disconnected from remote-host: localhost<br>
> [2018-10-09 11:37:03.470127] E [socket.c:3295:socket_connect] 0-gfapi: connection attempt on failed, (Permission denied)<br>
> [2018-10-09 11:37:03.470275] I [MSGID: 104025] [glfs-mgmt.c:828:mgmt_rpc_notify] 0-glfs-mgmt: Exhausted all volfile servers [Transport endpoint is not connected]<br>
> [2018-10-09 11:37:03.471773] I [MSGID: 101191] [event-epoll.c:644:event_dispatch_epoll_worker] 0-epoll: Exited thread with index 1<br>
> [2018-10-09 11:37:03.470274] I [MSGID: 104024] [glfs-mgmt.c:811:mgmt_rpc_notify] 0-glfs-mgmt: disconnected from remote-host: localhost<br>
> [2018-10-09 11:37:03.472038] I [timer.c:89:gf_timer_call_cancel] (-->/lib64/libglusterfs.so.0(gf_log_fini+0x18) [0x7f5d7ab08938] -->/lib64/libglusterfs.so.0(gf_log_disable_suppression_before_exit+0x33) [0x7f5d7ab08903] -->/lib64/libglusterfs.so.0(gf_timer_call_cancel+0x179) [0x7f5d7ab137f9] ) 0-timer: ctx cleanup started<br>
> [2018-10-09 12:19:48.258100] W [MSGID: 101002] [options.c:995:xl_opt_validate] 0-gfapi: option 'address-family' is deprecated, preferred is 'transport.address-family', continuing with correction<br>
> [2018-10-09 12:19:48.267722] E [socket.c:3295:socket_connect] 0-gfapi: connection attempt on failed, (Permission denied)<br>
> [2018-10-09 12:19:48.268239] I [MSGID: 104024] [glfs-mgmt.c:811:mgmt_rpc_notify] 0-glfs-mgmt: disconnected from remote-host: localhost<br>
> [2018-10-09 12:19:51.273134] E [socket.c:3295:socket_connect] 0-gfapi: connection attempt on failed, (Permission denied)<br>
> [2018-10-09 12:19:51.273266] I [MSGID: 104025] [glfs-mgmt.c:828:mgmt_rpc_notify] 0-glfs-mgmt: Exhausted all volfile servers [Transport endpoint is not connected]<br>
> [2018-10-09 12:19:51.275239] I [MSGID: 101191] [event-epoll.c:644:event_dispatch_epoll_worker] 0-epoll: Exited thread with index 1<br>
> [2018-10-09 12:19:51.273265] I [MSGID: 104024] [glfs-mgmt.c:811:mgmt_rpc_notify] 0-glfs-mgmt: disconnected from remote-host: localhost<br>
> [2018-10-09 12:19:51.275492] I [timer.c:89:gf_timer_call_cancel] (-->/lib64/libglusterfs.so.0(gf_log_fini+0x18) [0x7f5d7ab08938] -->/lib64/libglusterfs.so.0(gf_log_disable_suppression_before_exit+0x33) [0x7f5d7ab08903] -->/lib64/libglusterfs.so.0(gf_timer_call_cancel+0x179) [0x7f5d7ab137f9] ) 0-timer: ctx cleanup started<br>
> [2018-10-09 12:20:56.711327] W [MSGID: 101002] [options.c:995:xl_opt_validate] 0-gfapi: option 'address-family' is deprecated, preferred is 'transport.address-family', continuing with correction<br>
> [2018-10-09 12:20:56.720534] E [socket.c:3295:socket_connect] 0-gfapi: connection attempt on failed, (Permission denied)<br>
> [2018-10-09 12:20:56.720810] I [MSGID: 104024] [glfs-mgmt.c:811:mgmt_rpc_notify] 0-glfs-mgmt: disconnected from remote-host: localhost<br>
> [2018-10-09 12:20:59.726063] E [socket.c:3295:socket_connect] 0-gfapi: connection attempt on failed, (Permission denied)<br>
> [2018-10-09 12:20:59.726187] I [MSGID: 104025] [glfs-mgmt.c:828:mgmt_rpc_notify] 0-glfs-mgmt: Exhausted all volfile servers [Transport endpoint is not connected]<br>
> [2018-10-09 12:20:59.727301] I [MSGID: 101191] [event-epoll.c:644:event_dispatch_epoll_worker] 0-epoll: Exited thread with index 1<br>
> [2018-10-09 12:20:59.726186] I [MSGID: 104024] [glfs-mgmt.c:811:mgmt_rpc_notify] 0-glfs-mgmt: disconnected from remote-host: localhost<br>
> [2018-10-09 12:20:59.727643] I [timer.c:89:gf_timer_call_cancel] (-->/lib64/libglusterfs.so.0(gf_log_fini+0x18) [0x7f5d7ab08938] -->/lib64/libglusterfs.so.0(gf_log_disable_suppression_before_exit+0x33) [0x7f5d7ab08903] -->/lib64/libglusterfs.so.0(gf_timer_call_cancel+0x179) [0x7f5d7ab137f9] ) 0-timer: ctx cleanup started<br>
><br>
><br>
> Do you have any idea how can I solve this?<br>
><br>
> Thanks in advance!<br>
> _______________________________________________<br>
> Gluster-users mailing list<br>
> <a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
> <a href="https://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">https://lists.gluster.org/mailman/listinfo/gluster-users</a><br>
_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="https://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">https://lists.gluster.org/mailman/listinfo/gluster-users</a></blockquote></div>