Loss of Samba/CIFS mount on client

SMB, NFS, FTP, web file manager and Rsync server.
Locked
kilbey1
Posts: 19
Joined: 17 Mar 2020, 08:19

Loss of Samba/CIFS mount on client

Post by kilbey1 »

I am running TOS 4.2.09-2101251735-P1.04 on an F2-220.

I find t that after some time, the client on which my NAS folders are mounted (a Macbook) runs into a connection error and loses the mounts.
Running Macbook 16" 2019 with Big Sur 11.2.3 (20D91).

When the mounts are lost, I find I can still ping the NAS.

After connectivity is lost, I log into TOS and may see the Samba file server as disabled. I try to restart with the TOS user interface, but it does not succeed. The UI shows an attempt to connect, but the checkbox refreshes to unchecked.

Checking the service from the Service Status panel shows that Samba is disabled.

I SSHed into the NAS as root and ran a Samba restart command, then Samba start command, and the following is returned:

Code: Select all

[root@musicinas ~]# /etc/init.d/samba restart
Reloading smb.conf file: killall: smbd: no process killed
killall: nmbd: no process killed
0
0
start-stop-daemon: unable to close pidfile '/var/run/samba.pid' (No space left on device)
start-stop-daemon: child returned error exit status 2
/etc/init.d/functions: line 611: echo: write error: No space left on device
start-stop-daemon: unable to close pidfile '/var/run/samba.pid' (No space left on device)
start-stop-daemon: child returned error exit status 2
/etc/init.d/functions: line 611: echo: write error: No space left on device

[root@musicinas ~]# /etc/init.d/samba start
0
0
start-stop-daemon: unable to close pidfile '/var/run/samba.pid' (No space left on device)
start-stop-daemon: child returned error exit status 2
/etc/init.d/functions: line 611: echo: write error: No space left on device
start-stop-daemon: unable to close pidfile '/var/run/samba.pid' (No space left on device)
start-stop-daemon: child returned error exit status 2
/etc/init.d/functions: line 611: echo: write error: No space left on device
Checking my space shows Used Space 5.37 TB, and Free Space 3.72 TB.

At this point, the only option is to restart the NAS completely. I usually have to restart the NAS about 2 or 3 times a day.
User avatar
RyanYang
TM Support
Posts: 1141
Joined: 01 Dec 2020, 11:50
China

Re: Loss of Samba/CIFS mount on client

Post by RyanYang »

Hi,
Your system does not have the configuration file, you need to reinstall the system:viewtopic.php?f=75&t=423
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement)
kilbey1
Posts: 19
Joined: 17 Mar 2020, 08:19

Re: Loss of Samba/CIFS mount on client

Post by kilbey1 »

Do you mean the Samba files? I see I have it.

Code: Select all

[root@musicinas ~]# cd /etc/samba/
[root@musicinas samba]# ls
buildhome  lmhosts.rpmorig  smb.conf          smb-extend.conf  smb-null.conf
lmhosts    smb-ads.conf     smb.conf.rpmorig  smb-ldap.conf    smbp
smb.conf:

Code: Select all

[global]
include = /etc/samba/smb-extend.conf

[homes]
comment = Home Directories
path = /mnt/md0/User/%S/home
root preexec = /etc/samba/buildhome %D %S
valid users = %S
browseable = no
writable = yes
veto files = /desktop

[public]
path = /mnt/md0/public
browsable = yes
writeable = yes
inherit permissions = yes
public = yes

use sendfile = yes
aio read size = 4096
aio write size = 4096

[appdata]
path = /mnt/md0/appdata
browsable = yes
writeable = yes
inherit permissions = yes
vfs objects = catia fruit streams_xattr
fruit:time machine = yes
write list = admin,evemcgivern
valid users = admin,evemcgivern

use sendfile = yes
aio read size = 4096
aio write size = 4096

[Video]
path = /mnt/md0/Video
browsable = yes
writeable = yes
inherit permissions = yes
write list = admin,evemcgivern
valid users = admin,evemcgivern

use sendfile = yes
aio read size = 4096
aio write size = 4096

                                       
[Photo]                                
path = /mnt/md0/Photo                  
browsable = yes                        
writeable = yes                        
inherit permissions = yes              
write list = admin,evemcgivern         
valid users = admin,evemcgivern        
                                       
use sendfile = yes                     
aio read size = 4096                   
aio write size = 4096                  
                                       
[Music]                                
path = /mnt/md0/Music                  
browsable = yes                        
writeable = yes                        
inherit permissions = yes              
public = yes                   
hosts allow = *                
hosts deny = 0.0.0.0/0         
                               
use sendfile = yes             
aio read size = 4096           
aio write size = 4096          
                               
[usbshare1]                    
path = /mnt/usb/usbshare1      
browsable = yes                
writeable = yes                
inherit permissions = yes      
write list = evemcgivern,admin 
valid users = evemcgivern,admin
                               
use sendfile = yes             
aio read size = 4096           
aio write size = 4096 

smb-extend.conf:

Code: Select all

[Global]
allocation roundup size = 4096
passdb backend = smbpasswd
obey pam restrictions = yes
encrypt passwords = Yes
max log size = 100
socket options = TCP_NODELAY SO_KEEPALIVE SO_SNDTIMEO=10 SO_RCVTIMEO=10  IPTOS_L
config file = /etc/samba/smb.conf
smb passwd file = /etc/samba/smbp
smb encrypt = off
strict allocate = no
durable handles = no
min protocol = NT1
max protocol = SMB3
client min protocol = NT1
client max protocol = SMB3
log level = 0
guest account = guest
delete veto files = yes
follow symlinks = no
wide links = no
unix extensions = no
min receivefile size = 4096
client ntlmv2 auth = yes
client lanman auth = yes
ntlm auth = yes
lanman auth = yes
local master = no
os level = 200
smb2 leases = yes
netbios name = musicinas
server string = musicinas
workgroup = WORKGROUP
veto files = /.AppleDB/.AppleDouble/.AppleDesktop/Network Trash Folder/Temporary
hide files = /~$*.doc?/~$*.xls?/~$*.ppt?
vfs objects = full_audit catia fruit streams_xattr
fruit:aapl = yes
full_audit:syslog = false
full_audit:prefix = %u|%I
full_audit:success = connect mkdir rmdir pread_send pread_recv create_file read
full_audit:failure = connect
security = user
include = /etc/samba/smb-null.conf
map to guest = bad user
kilbey1
Posts: 19
Joined: 17 Mar 2020, 08:19

Re: Loss of Samba/CIFS mount on client

Post by kilbey1 »

Also, rebooting the NAS solves the issue, if it makes a difference. The mounts lose connection after some time.
User avatar
RyanYang
TM Support
Posts: 1141
Joined: 01 Dec 2020, 11:50
China

Re: Loss of Samba/CIFS mount on client

Post by RyanYang »

Reinstalling the system is the fastest solution.
You can also send an email to our support team and wait for remote processing: viewtopic.php?f=75&t=608
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement)
kilbey1
Posts: 19
Joined: 17 Mar 2020, 08:19

Re: Loss of Samba/CIFS mount on client

Post by kilbey1 »

Thanks, got stuck on "Loading..." graphic, but only because it took a long time to check the drive. Reset info, apps, etc. and I'm back in business. Appreciate the help.
Locked

Return to “File Services”