Giuliano Gavazzi
Cadet
- Joined
- Sep 9, 2016
- Messages
- 8
I have a FreeNAS-11.1-U6 installation on a iXSystems 1U certified server. It has several datasets shared. All the shares and read/write in smb, with some being also shared in afp, but with Read-only Access for all users in this last protocol. My users noticed that some times Excel files were being accessed by two users in read/write mode at the same time. So I did some test and noticed that if a user (user1) was connected from a remote site (via a Sonicwall firewall/router) and so his connection was not as stable as internal ones, his samba process pid would change once in a while (quite often though) and with the process id change also the lock held on the file was lost (the corresponding RDWR entry in smbstatus would disappear). Only a save command from Excel would regrab the lock. Problem is, if another user (user2) attempted to open the same file when the first one had temporarily lost the lock on it, the second user would effectively open the file in read/write mode (and acquire the lock) on a file that was opened by the first user. So if for instance user2 had made a change and saved it and closed the file, a subsequent save by user1 would overwrite user2 changes. This behaviour has so far been noticed only from Macs running 10.11.6 (El Capitan) and conne