<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi all,</div><div><br></div><div>
<div>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.</div><div><br></div><div><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></div><div><br></div><div>cat /var/log/messages</div><div><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></div><div><br></div><div><br></div><div><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></div><div><br></div><div><br></div><div>[root@servera ~]# firewall-cmd --list-services<br>ssh dhcpv6-client glusterfs nfs rpc-bind samba</div><div><br></div><div>[root@servera ~]# cat /etc/passwd | grep smbuser<br>smbuser:x:1001:1001::/home/smbuser:/sbin/nologin<br></div><div><br></div><div><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></div><div><br></div><div>[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></div><div><br></div><div><br></div><div>Do you have any idea how can I solve this?</div><div><br></div><div>Thanks in advance!<br></div>
</div></div></div></div></div></div></div></div></div></div>