Page 1 of 1

Random access problems to shares

Posted: Thu Aug 06, 2020 3:56 pm
by maxxer
Hi.
I've some Windows (Samba) shares on my NAS, they all work but sometimes users complain they cannot write to shares they used to. Then they retry after some hours and access is restored.

I don't know how to debug the issue, I couldn't find Samba logs or anything like that.

Any hint on how to proceed? thanks

AS6204R, bios 2.23, ADM 3.2.1.RKU4

Re: Random access problems to shares

Posted: Thu Aug 06, 2020 4:23 pm
by Nazar78
Could be the shares were opened and locked elsewhere?

SSH into the NAS as root then you can view the log:

Code: Select all

less /var/log/samba/samba.log

Re: Random access problems to shares

Posted: Thu Aug 06, 2020 4:32 pm
by maxxer
Unfortunately there's nothing relevant in that log file.

I did misexplain myself: the user can access the share but doesn't have write permission. I.e. I cannot create a folder at the 3rd level, while I can at 1st. As said this usually works, occasionally doesn't. No NAS reboot in between

Re: Random access problems to shares

Posted: Thu Aug 06, 2020 5:18 pm
by orion
How do you access "the share"? Map a network drive?
On the other hand, you should check ADM web page -> System Information -> Online users when failed. I wonder the accessing user is not the one you expected.

Re: Random access problems to shares

Posted: Thu Aug 06, 2020 5:26 pm
by Nazar78
maxxer wrote:Unfortunately there's nothing relevant in that log file.

I did misexplain myself: the user can access the share but doesn't have write permission. I.e. I cannot create a folder at the 3rd level, while I can at 1st. As said this usually works, occasionally doesn't. No NAS reboot in between
How about running "dmesg" from the SSH? Anything unusual? I assumed you didn't changed anything for the CIFS service other than turning it on and leave everything default. The next time it happened, toggle the CIFS service off then back to on, then check theses logs.

Code: Select all

dmesg|grep -E 'CIFS|SMB'
You should also probably run the bad block scan and smart from the storage manager's disk doctor to eliminate hardware issue.

Re: Random access problems to shares

Posted: Sat Sep 05, 2020 3:28 pm
by maxxer
I upgraded and rebooted the storage, operations seems to have restored to normality