Hi,
Do you mean the linux machines use SAMBA to read files from a windows server? If there’s any misunderstanding, please feel free to feedback.
I found some docs about the lock and oplock settings of SAMBA and these settings could cause issues in some cases:
One thing to remember about locking and Samba is that locks taken out by SMB clients will not generally effect or be detectable by Unix programs or NFS clients. This means that data corruption can still happen if Unix and Windows programs open the same file, or if the same NFS exported directory is shared by two different Samba servers.
https://doxfer.webmin.com/Webmin/Samba_Windows_File_Sharing#Editing_other_file_share_options
Oplocks is by default set to “on” by Samba on all configured shares, so careful attention should be given to each case to determine if the potential benefit is worth the potential for delays.
If a client session has been caching writes and reads locally due to oplocks, it is likely that the data will be lost when the application restarts or recovers from the TCP interrupt.
Unless your system supports kernel oplocks, you should disable oplocks if you are accessing the same files from both UNIX/Linux and SMB clients. Regardless, oplocks should always be disabled if you are sharing a database file (e.g., Microsoft Access) between multiple clients, because any break the first client receives will affect synchronization of the entire file (not just the single record), which will result in a noticeable performance impairment and, more likely, problems accessing the database in the first place.
https://www.samba.org/samba/docs/old/Samba3-HOWTO/locking.html
https://flylib.com/books/en/3.364.1.71/1/
Maybe these docs can give you some directions to check the lock and oplock settings.
Thanks for your time!
Best Regards,
Mico Mi
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.