Samba File Share Instability

From: Budi Janto <budijanto_at_studiokaraoke.co.id>
Date: Sat, 21 May 2022 12:21:55 UTC
Hi, folks.


I installed Samba in FreeBSD as server to serving video streaming.

# freebsd-version
13.0-RELEASE-p11

# pkg info | grep samba
samba413-4.13.17_1             Free SMB/CIFS and AD/DC server and client 
for Unix

Video storage use ZFS file system.

# zfs list
NAME   USED  AVAIL     REFER  MOUNTPOINT
pool  4.91T  2.11T     4.91T  /mnt/video

I use bonding interface for my LAN with lagg interface. /etc/rc.conf:
ifconfig_re0="up"
ifconfig_re2="up"
cloned_interfaces="lagg0"
ifconfig_lagg0="laggproto roundrobin laggport re0 laggport re2 
192.168.0.100 netmask 255.255.255.0"

And smb4.conf pointing to that directory, here is my smb4.conf:

# cat /usr/local/etc/smb4.conf
[global]
bind interfaces only = Yes
directory name cache size = 0
disable spoolss = Yes
dns proxy = No
interfaces = 127.0.0.1 192.168.0.10 192.168.9.10
load printers = No
local master = Yes
log file = /var/log/samba4/log.smbd
log level = 3
map to guest = Bad User
max log size = 500
netbios name = SERVER
os level = 255
preferred master = Yes
printcap name = /dev/null
printing = bsd
security = User
server role = standalone server
server string = SERVER %v
use sendfile = Yes
workgroup = MYGROUP

[data]
guest ok = Yes
path = /mnt/video

My client is running Windows 7 with Windows Media Player. The problem is 
that the player can't play the video again after a few hours (Client 
error is random). Can't seem to find the video path or maybe it's 
disconnected from the server (Apparently). From log.smbd I found some 
errors and I tried to include some snippets:

# grep 'smbd_smb2_request_error_ex' /var/log/samba4/log.smbd
[...]
[2022/05/21 17:31:48.963817,  3] 
../../source3/smbd/smb2_server.c:3863(smbd_smb2_request_error_ex)
   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] 
status[NT_STATUS_NOT_A_REPARSE_POINT] || at 
../../source3/smbd/smb2_ioctl.c:334
[2022/05/21 17:31:49.210140,  3] 
../../source3/smbd/smb2_server.c:3863(smbd_smb2_request_error_ex)
   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5] 
status[NT_STATUS_NOT_A_REPARSE_POINT] || at 
../../source3/smbd/smb2_ioctl.c:334
[2022/05/21 17:31:49.210873,  3] 
../../source3/smbd/smb2_server.c:3863(smbd_smb2_request_error_ex)
   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] 
status[NT_STATUS_FILE_IS_A_DIRECTORY] || at 
../../source3/smbd/smb2_create.c:334
[2022/05/21 17:31:49.211892,  3] 
../../source3/smbd/smb2_server.c:3863(smbd_smb2_request_error_ex)
   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] 
status[NT_STATUS_NOT_A_REPARSE_POINT] || at 
../../source3/smbd/smb2_ioctl.c:334
[2022/05/21 17:31:49.213027,  3] 
../../source3/smbd/smb2_server.c:3863(smbd_smb2_request_error_ex)
   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5] 
status[NT_STATUS_NOT_A_REPARSE_POINT] || at 
../../source3/smbd/smb2_ioctl.c:334
[2022/05/21 17:31:49.213613,  3] 
../../source3/smbd/smb2_server.c:3863(smbd_smb2_request_error_ex)
   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] 
status[NT_STATUS_FILE_IS_A_DIRECTORY] || at 
../../source3/smbd/smb2_create.c:334
[2022/05/21 17:31:49.214430,  3] 
../../source3/smbd/smb2_server.c:3863(smbd_smb2_request_error_ex)
   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] 
status[NT_STATUS_NOT_A_REPARSE_POINT] || at 
../../source3/smbd/smb2_ioctl.c:334
[2022/05/21 17:31:49.215877,  3] 
../../source3/smbd/smb2_server.c:3863(smbd_smb2_request_error_ex)
   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5] 
status[NT_STATUS_NOT_A_REPARSE_POINT] || at 
../../source3/smbd/smb2_ioctl.c:334
[2022/05/21 17:31:49.216800,  3] 
../../source3/smbd/smb2_server.c:3863(smbd_smb2_request_error_ex)
   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] 
status[NT_STATUS_NOT_A_REPARSE_POINT] || at 
../../source3/smbd/smb2_ioctl.c:334
[2022/05/21 17:31:49.217428,  3] 
../../source3/smbd/smb2_server.c:3863(smbd_smb2_request_error_ex)
   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] 
status[NT_STATUS_NOT_A_REPARSE_POINT] || at 
../../source3/smbd/smb2_ioctl.c:334
[2022/05/21 17:31:49.218604,  3] 
../../source3/smbd/smb2_server.c:3863(smbd_smb2_request_error_ex)
   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] 
status[NT_STATUS_NOT_A_REPARSE_POINT] || at 
../../source3/smbd/smb2_ioctl.c:334
[2022/05/21 17:31:49.348062,  3] 
../../source3/smbd/smb2_server.c:3863(smbd_smb2_request_error_ex)
   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] 
status[NT_STATUS_NOT_A_REPARSE_POINT] || at 
../../source3/smbd/smb2_ioctl.c:334
[2022/05/21 17:31:51.794615,  3] 
../../source3/smbd/smb2_server.c:3863(smbd_smb2_request_error_ex)
   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] 
status[NT_STATUS_NOT_A_REPARSE_POINT] || at 
../../source3/smbd/smb2_ioctl.c:334
[...]

Would you give me some clue/advice to fix this problem -- Thanks.


-- 
Regards,
Budi Janto