Samba with GlusterFS - fails to create/copy subfolder or any other type of file in the main folder.

Issues related to applications and software problems
Post Reply
lrosioru
Posts: 5
Joined: 2020/05/18 21:59:49

Samba with GlusterFS - fails to create/copy subfolder or any other type of file in the main folder.

Post by lrosioru » 2020/05/18 22:10:12

Samba with GlusterFS - can create a folder file in teh Share without issues.
When I try to create or paste something in that folder, I get error as seen in Windows "The file '<%1 NULL:nameDest>' is too large for the destination file system.
The File system is 400G size.
Using Guest user.
When setting up just Samba without GlusterFS works without issues.
Permission is 775, tried 777 also.
Tried disabling firewalld and selinux, same issue.
Tried with source as Windows 2016 and Windows 2019.

Config
[gluster-"Gvol_OIT"]
comment = For samba share of volume "Gvol_OIT"
vfs objects = glusterfs
glusterfs:volume = "Gvol_OIT"
glusterfs:logfile = /var/log/samba/glusterfs-"Gvol_OIT".%M.log
glusterfs:loglevel = 7
path = /
read only = no
guest ok = yes
kernel share modes = No
inherit permissions = Yes

Creating /New Folder >> SUCCESS
[2020/05/18 18:04:50.650207, 3] ../../source3/smbd/trans2.c:3460(smbd_do_qfsinfo)
smbd_do_qfsinfo: level = 1001
[2020/05/18 18:04:50.650290, 3] ../../source3/smbd/trans2.c:3460(smbd_do_qfsinfo)
smbd_do_qfsinfo: level = 1005
[2020/05/18 18:04:51.561354, 2] ../../source3/smbd/dosmode.c:138(unix_mode)
unix_mode(New folder) inheriting from .
[2020/05/18 18:04:51.561416, 2] ../../source3/smbd/dosmode.c:163(unix_mode)
unix_mode(New folder) inherit mode 40775
[2020/05/18 18:04:51.561457, 3] ../../source3/smbd/smb2_server.c:3201(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_OBJECT_NAME_NOT_FOUND] || at ../../source3/smbd/smb2_create.c:296
[2020/05/18 18:04:51.599497, 2] ../../source3/smbd/dosmode.c:138(unix_mode)
unix_mode(New folder) inheriting from .
[2020/05/18 18:04:51.599550, 2] ../../source3/smbd/dosmode.c:163(unix_mode)
unix_mode(New folder) inherit mode 40775
[2020/05/18 18:04:51.796191, 3] ../../source3/smbd/smb2_server.c:3201(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_INVALID_PARAMETER] || at ../../source3/smbd/smb2_create.c:296
[2020/05/18 18:04:51.796884, 3] ../../source3/smbd/smb2_server.c:3201(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_INVALID_PARAMETER] || at ../../source3/smbd/smb2_create.c:296
[2020/05/18 18:04:51.824735, 3] ../../source3/smbd/dir.c:662(dptr_create)
creating new dirptr 0 for path ., expect_close = 0
[2020/05/18 18:04:51.824861, 3] ../../source3/smbd/dir.c:1227(smbd_dirptr_get_entry)
smbd_dirptr_get_entry mask=[*] found . fname=. (.)
[2020/05/18 18:04:51.825531, 3] ../../source3/smbd/dir.c:1227(smbd_dirptr_get_entry)
smbd_dirptr_get_entry mask=[*] found .. fname=.. (..)
[2020/05/18 18:04:51.826220, 3] ../../source3/smbd/dir.c:1227(smbd_dirptr_get_entry)
smbd_dirptr_get_entry mask=[*] found New folder fname=New folder (New folder)
[2020/05/18 18:04:51.826888, 3] ../../source3/smbd/smb2_server.c:3201(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5] status[STATUS_NO_MORE_FILES] || at ../../source3/smbd/smb2_query_directory.c:159


Opening /New Folder >> SUCCESS
[2020/05/18 18:05:10.982030, 3] ../../source3/smbd/smb2_notify.c:253(smbd_smb2_notify_send)
smbd_smb2_notify_send: notify change called on New folder, filter = FILE_NAME|DIR_NAME|ATTRIBUTES|LAST_WRITE, recursive = 0
[2020/05/18 18:05:10.982418, 2] ../../source3/smbd/dosmode.c:138(unix_mode)
unix_mode(New folder) inheriting from .
[2020/05/18 18:05:10.982455, 2] ../../source3/smbd/dosmode.c:163(unix_mode)
unix_mode(New folder) inherit mode 40775
[2020/05/18 18:05:10.982681, 3] ../../source3/smbd/open.c:1304(open_file)
Error opening file New folder (NT_STATUS_FILE_IS_A_DIRECTORY) (local_flags=0) (flags=0)
[2020/05/18 18:05:10.983127, 1] ../../source3/smbd/notify_inotify.c:442(inotify_watch)
inotify_add_watch returned No such file or directory
[2020/05/18 18:05:10.983159, 1] ../../source3/smbd/notifyd/notifyd.c:473(notifyd_apply_rec_change)
notifyd_apply_rec_change: sys_notify_watch for [//New folder] returned No such file or directory
[2020/05/18 18:05:11.008098, 3] ../../source3/smbd/dir.c:662(dptr_create)
creating new dirptr 0 for path New folder, expect_close = 0
[2020/05/18 18:05:11.008197, 3] ../../source3/smbd/dir.c:1227(smbd_dirptr_get_entry)
smbd_dirptr_get_entry mask=[*] found New folder/. fname=. (.)
[2020/05/18 18:05:11.008963, 3] ../../source3/smbd/dir.c:1227(smbd_dirptr_get_entry)
smbd_dirptr_get_entry mask=[*] found New folder/.. fname=.. (..)
[2020/05/18 18:05:11.009641, 3] ../../source3/smbd/smb2_server.c:3201(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[9] status[STATUS_NO_MORE_FILES] || at ../../source3/smbd/smb2_query_directory.c:159
[2020/05/18 18:05:11.030752, 3] ../../source3/smbd/smb2_server.c:3201(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_CANCELLED] || at ../../source3/smbd/smb2_notify.c:126
[2020/05/18 18:05:11.086710, 3] ../../source3/smbd/smb2_notify.c:253(smbd_smb2_notify_send)
smbd_smb2_notify_send: notify change called on ., filter = FILE_NAME|DIR_NAME|ATTRIBUTES|LAST_WRITE, recursive = 0


Creating /New Folder/New Folder >> FAILURE
[2020/05/18 18:05:45.387335, 3] ../../source3/smbd/trans2.c:3460(smbd_do_qfsinfo)
smbd_do_qfsinfo: level = 1001
[2020/05/18 18:05:45.387431, 3] ../../source3/smbd/trans2.c:3460(smbd_do_qfsinfo)
smbd_do_qfsinfo: level = 1005
[2020/05/18 18:05:46.034196, 3] ../../source3/smbd/smb2_server.c:3201(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_INVALID_PARAMETER] || at ../../source3/smbd/smb2_create.c:296
[2020/05/18 18:05:46.035203, 3] ../../source3/smbd/smb2_server.c:3201(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_INVALID_PARAMETER] || at ../../source3/smbd/smb2_create.c:296
[2020/05/18 18:05:46.035748, 3] ../../source3/smbd/smb2_server.c:3201(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_INVALID_PARAMETER] || at ../../source3/smbd/smb2_create.c:296
[2020/05/18 18:05:46.036229, 3] ../../source3/smbd/smb2_server.c:3201(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_CANCELLED] || at ../../source3/smbd/smb2_notify.c:126
[2020/05/18 18:05:46.037345, 3] ../../source3/smbd/smb2_server.c:3201(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_INVALID_PARAMETER] || at ../../source3/smbd/smb2_create.c:296
[2020/05/18 18:05:46.037966, 3] ../../source3/smbd/smb2_server.c:3201(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_INVALID_PARAMETER] || at ../../source3/smbd/smb2_create.c:296
[2020/05/18 18:05:46.038472, 3] ../../source3/smbd/smb2_server.c:3201(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_INVALID_PARAMETER] || at ../../source3/smbd/smb2_create.c:296

Thraex
Posts: 51
Joined: 2019/05/14 19:50:28

Re: Samba with GlusterFS - fails to create/copy subfolder or any other type of file in the main folder.

Post by Thraex » 2020/05/20 14:48:16

In my smb.conf that shares 2 gluster volumes I have the path equal to where they are mounted instead of just path = /
Maybe that's your issue?

lrosioru
Posts: 5
Joined: 2020/05/18 21:59:49

Re: Samba with GlusterFS - fails to create/copy subfolder or any other type of file in the main folder.

Post by lrosioru » 2020/05/20 16:17:33

Tried that, but it will not the share at all.
And if I understand correctly, this means that we are pointing to the root of GVOL, wherever this is.

I followed this guide and the only inconsistency I had is that the entry will not be automatically created in samba.conf from Gluster, I had to create it manually.
https://wiki.centos.org/HowTos/GlusterFSonCentOS

lrosioru
Posts: 5
Joined: 2020/05/18 21:59:49

Re: Samba with GlusterFS - fails to create/copy subfolder or any other type of file in the main folder.

Post by lrosioru » 2020/05/20 16:22:28

And if I login with root, navigate to the path (where I fail to create file from the share), I can create one

lrosioru
Posts: 5
Joined: 2020/05/18 21:59:49

Re: Samba with GlusterFS - fails to create/copy subfolder or any other type of file in the main folder.

Post by lrosioru » 2020/05/22 18:59:51

revisited the mount commands as per guide and it's working now

lrosioru
Posts: 5
Joined: 2020/05/18 21:59:49

Re: Samba with GlusterFS - fails to create/copy subfolder or any other type of file in the main folder.

Post by lrosioru » 2020/05/22 19:00:34

And I shared the folder mounted with "mount -t glusterfs" as a regular samba share

Post Reply