Samba share from a NFS mount file locking issue
A recent problem that came up was accessing Samba from a Windows machine. Samba server was exporting an NFS mounted device to its users. The users would receive a “The process cannot access the file because another process has locked a portion of the file.” This created a big headache as files could be accessed, but writes failed. You could still create a new file and delete it, but modifying it would get this error.
After some research, the solution to this problem was to modify the global section of smb.conf and change or add:
strict locking = no
Samba works on NFS-Shares if you switch off strict locking.