[Samba] Odd file locking issue with one of our SMB servers....
Greg Byshenk
samba at byshenk.net
Fri Apr 4 16:44:07 MDT 2014
On Fri, Apr 04, 2014 at 10:02:36PM +0000, Gary Greene wrote:
> Samba version: 3.6.15 on openSUSE 12.2.
>
> We?ve got a series of file shares exported from one of our storage
> systems. Periodically, we?ve a user from our accounting department
> that is getting errors from Excel that the file she?s trying to open
> is opened by someone else (it isn?t) and prompts her to either open
> it as read-only, or to cancel the open operation. When this occurs,
> she hits cancel, then she tries again immediately following this,
> and then it works without issue.
>
> This seems to occur once or twice a day for her, from what she?s
> reporting.
I'm not sure if the same is true in your case, but here is a pointer
to a solution to a problem that I had:
<http://www.jamescoyle.net/how-to/340-samba-the-process-cannot-access-the-file-because-another-process-has-locked-a-portion-of-the-file>
You don't say whether or not you are also using NFS (we are, and I
know that it's not ideal, but this is temporary while we rearrange
some file serving), but setting "strict locking = no" solved my
problem.
--
greg byshenk - samba at byshenk.net - Portland, OR USA
More information about the samba
mailing list