[Samba] Re: Samba corrupting files

Chris de Vidal cdevidal at yahoo.com
Wed Feb 26 17:37:15 GMT 2003


--- "Parker, Robin" <robin.parker at nectech.co.uk>
wrote:
> We're now getting corrupt files appearing in
> ClearCase.  The files are in
> tact except for a number of lines added to the
> beggining of the file.

I can't explain that type of corruption, but I can
suggest you disable all oplocks.  In your smb.conf
global section, 'kernel oplocks = No', and on each
share specify 'oplocks = No' and 'level2 oplocks =
No'.

I'm not a member of the Samba team but a Linux
administrator whose primary responsibility is several
Samba servers.  We had corruption on several large
flat database files.  When we disabled all oplocks,
our databases no longer corrupted.

I've not been able to test which oplock setting of the
three was causing this problem (or if it was all
three) so I suggest you try disabling them all at once
and then gradually re-enabling them one at a time.  If
that doesn't fix it, be sure to set them back, as
oplocks are a performance boost.

Good luck,
/dev/idal

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/


More information about the samba mailing list