[Samba] delayed write files errors
Ni Co
kleyoneo at hotmail.com
Fri Jan 3 17:53:27 UTC 2020
Hello,
First of all : Happy New Year to you all :-)
I need your help for a problem.
I've 2 servers on CentOS 7: a Samba DC+AD and a Samba Files Sharing.
In the Samba file sharing server, all data is store in a RAID Disk
partition wich is mounted in /data/ (fstab :
UUID=a47ea879-7072-4e8f-a668-3f5a86e58ef2 /data ext4
defaults,user_xattr,acl,barrier=1 1 2).
Under Windows each user has a network drive as user home folder.
We are using Firefox and Thunderbird, and their profiles are locate in
user home folder (H:\.system\{FF,TH}\profiles.default
Everything works fine but after couple of hours (very randomly) FF and
TH crash.
In Samba log, I can see severals errors but I don't known if this
concerns the problem . Errors you can find at the end of this email.
In viewer events of Windows, there are severals errors about delayed
write file. For example :
\Device\Mup
\\fileserver\users\user\.system\Thunderbird\profile.default-release\favicons.sqlite-shm
\mrxsmb
\user\.system\Thunderbird\ensim.default-release\webappsstore.sqlite-shm
Errors that appear to only affect *.sqlite-shm file. But there is no
reference of this files in the Samba logfile.
To resolve the problem, I need to restart apps.
Some people say you should turn off TP Offloading (ethtool -K em1 gso
off gro off tso off lro off), but it's not the solution in my case.
I really don't known what can I do.
You can find smb.conf files at the end of this email.
Can someone help me ?
Thanks a lot in advance.
=======================
Samba log file :
[2019/12/31 23:09:18.415104, 2] ../source3/smbd/open.c:4032(open_directory)
open_directory: unable to create
user/.system/Thunderbird/profile.default-release. Error was
NT_STATUS_OBJECT_NAME_COLLISION
[2019/12/31 23:09:18.415157, 3]
../source3/smbd/smb2_server.c:3190(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_OBJECT_NAME_COLLISION] || at
../source3/smbd/smb2_create.c:296
(...)
[2020/01/01 16:36:23.462929, 2]
../source3/smbd/close.c:802(close_normal_file)
EXAMPLE\user closed file
user/.system/Thunderbird/profile.default-release/Mail/Feeds/Notes
(numopen=13) NT_STATUS_OK
[2020/01/01 16:36:39.466546, 3]
../source3/smbd/nttrans.c:2038(smbd_do_query_security_desc)
smbd_do_query_security_desc: sd_size = 20.
[2020/01/01 16:36:39.466608, 3]
../source3/smbd/smb2_server.c:3190(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_BUFFER_TOO_SMALL] | +info| at
../source3/smbd/smb2_getinfo.c:176
[2020/01/01 16:36:39.469203, 3]
../source3/smbd/nttrans.c:2038(smbd_do_query_security_desc)
smbd_do_query_security_desc: sd_size = 20.
(...)
2020/01/01 16:34:49.711496, 2] ../source3/smbd/open.c:1447(open_file)
EXAMPLE\user opened file
user/.system/Thunderbird/profile.default-release/cert9.db read=Yes
write=Yes (numopen=14)
[2020/01/01 16:34:49.713096, 3]
../source3/smbd/smb2_server.c:3190(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_ACCESS_DENIED] || at ../source3/smbd/smb2_getinfo.c:159
[2020/01/01 16:34:49.716099, 3]
../source3/smbd/smb2_read.c:421(smb2_read_complete)
smbd_smb2_read: fnum 314300139, file
user/.system/Thunderbird/profile.default-release/cert9.db, length=100
offset=0 read=100
[2020/01/01 16:34:49.717301, 3]
../source3/smbd/reply.c:8223(smbd_do_locking)
smbd_do_locking: fnum 314300139 type=0 num_locks=1
[2020/01/01 16:34:49.718028, 3]
../source3/smbd/reply.c:8223(smbd_do_locking)
smbd_do_locking: fnum 314300139 type=0 num_locks=1
[2020/01/01 16:34:49.718577, 3]
../source3/smbd/reply.c:8267(smbd_do_unlocking)
smbd_do_unlocking: fnum 314300139 num_ulocks=1
[2020/01/01 16:34:49.719821, 3]
../source3/smbd/smb2_server.c:3190(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/01/01 16:34:49.721241, 3]
../source3/smbd/smb2_server.c:3190(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/01/01 16:34:49.722954, 3]
../source3/smbd/smb2_read.c:421(smb2_read_complete)
smbd_smb2_read: fnum 314300139, file
user/.system/Thunderbird/profile.default-release/cert9.db, length=32768
offset=0 read=32768
(...)
[2020/01/01 16:34:50.865913, 3]
../source3/smbd/smb2_write.c:215(smb2_write_complete_internal)
smb2: fnum 314300139, file
user/.system/Thunderbird/profile.default-release/cert9.db, length=32768
offset=0 wrote=32768
[2020/01/01 16:34:50.867749, 3]
../source3/smbd/smb2_server.c:3190(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_ACCESS_DENIED] || at ../source3/smbd/smb2_getinfo.c:159
[2020/01/01 16:34:50.868937, 2]
../source3/smbd/close.c:802(close_normal_file)
EXAMPLE\user closed file
user/.system/Thunderbird/profile.default-release/cert9.db-journal
(numopen=14) NT_STATUS_OK
[2020/01/01 16:34:50.870119, 2] ../source3/smbd/open.c:1447(open_file)
EXAMPLE\user opened file
user/.system/Thunderbird/profile.default-release/cert9.db-journal
read=No write=No (numopen=15)
[2020/01/01 16:34:50.870875, 3]
../source3/smbd/trans2.c:8426(smbd_do_setfilepathinfo)
smbd_do_setfilepathinfo:
user/.system/Thunderbird/profile.default-release/cert9.db-journal (fnum
1589356365) info_level=1013 totdata=1
[2020/01/01 16:34:50.871376, 3]
../source3/smbd/smb2_server.c:3190(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_INVALID_INFO_CLASS] || at
../source3/smbd/smb2_getinfo.c:159
[2020/01/01 16:34:50.879913, 2]
../source3/smbd/close.c:802(close_normal_file)
EXAMPLE\user closed file
user/.system/Thunderbird/profile.default-release/cert9.db-journal
(numopen=14) NT_STATUS_OK
=========================
smb.conf of files sharing server :
---
[global]
workgroup = EXAMPLE
realm = EXAMPLE.DOMAIN.FR
security = ADS
bind interfaces only = yes
interfaces = lo em1
log level = 3
log file = /var/log/samba/samba.%m.log
max log size = 10000
idmap config * : backend = tdb
idmap config * : range = 3000-7999
idmap config EXAMPLE:backend = ad
idmap config EXAMPLE:schema_mode = rfc2307
idmap config EXAMPLE:range = 10000-999999
idmap config EXAMPLE:unix_nss_info = yes
acl allow execute always = yes
vfs objects = acl_xattr
map acl inherit = yes
store dos attributes = yes
unix extensions = no
[users]
comment = User Home Folder
path = /data/homes/
read only = no
follow symlinks = yes
wide links = yes
browseable = no
hide files = /desktop.ini/$RECYCLE.BIN/
---
smb.conf of AD server :
---
[global]
dns forwarder = IP_OF_ADSERVER
netbios name = ADSERVER
realm = EXAMPLE.DOMAIN.FR
server role = active directory domain controller
workgroup = EXAMPLE
idmap_ldb:use rfc2307 = yes
server services = -dns
ntlm auth = yes
bind interfaces only = yes
interfaces = lo p3p1
log level = 3
log file = /var/log/samba/samba_ad.log
max log size = 1000
[sysvol]
path = /usr/local/samba/var/locks/sysvol
read only = No
[netlogon]
path = /usr/local/samba/var/locks/sysvol/example.domain.fr/scripts
read only = No
---
More information about the samba
mailing list