[Samba] file corruption problem - smb log informationwritten to files on shares

Arva Clarke awclarke at tstt.net.tt
Sat Mar 15 14:37:20 GMT 2003


I am having a really strange problem with my samba server I am currently
running samba-2.2.1a-4 on a Redhat 7.2 box (dual PII processors, IDE raid
promise, I GB RAM). Its being operating more or less smoothly for the last 6
months. Suddenly users started to complain about corrupted files on shares.
On examination of the files we noticed that smb log information was being
written to the top of the files (the same stuff was written to
log.machine_name in /var/log/samba Here is an example from an excel file
that has be zapped


2003/03/13 12:14:37, 2] smbd/open.c:open_file(213)

lprescott opened file Working Papers/Trade/Co info.xls read=Yes

write=Yes (numopen=1)

[2003/03/13 12:14:37, 5] smbd/nttrans.c:reply_ntcreate_and_X(1025)

reply_ntcreate_and_X: fnum = 11331, open name = Working

Papers/Trade/Co info.xls

[2003/03/13 12:14:37, 5] lib/util.c:show_msg(285)








[2003/03/13 12:14:37, 5] lib/util.c:show_msg(293)






[2003/03/13 12:14:37, 5] lib/util.c:show_msg(302)

smb_vwv[0]=255 (0xFF)

[2003/03/13 12:14:37, 5] lib/util.c:show_msg(302)

smb_vwv[1]=0 (0x0)

[2003/03/13 12:14:37, 5] lib/util.c:show_msg(302)

smb_vwv[2]=17152 (0x4300)

[2003/03/13 12:14:37, 5] lib/util.c:show_msg(302)

---------------this goes on for many hundred lines

These is some remnant of the binary but I can't recover it. Lucky I had a
back up This file was located on the users home share /home/blabla

As I say this user had become pretty comfortable working with documents on
the server. At we we blamed Excel as the problems started when we were
forced to give some of our users MS Office instead of OO (compatibility
issues they claimed). The first file that we noticed with the problem was a
Ms Word file We did some reading and figured it was probably something to do
with op locks. So we turned off all op locking (although this made
downloading ofuser profiles lot slower slow but..)

Unfortunately the problem keeps croping up sporadically and zapping theusers
data. Yesterday, the librarian lost he NTUSER.DAT and thus could not log in
with roaming profile examination of the file showed corruption with smb logs
messed up the file We have been forced to tell users to edit documents on
local Machines and just keep a backups on the server (data transfer
(COPY/PASTE) seems go OK. It seems that the problem occurs when you open a
file ind an application read/writeon a remote share)

I am wondering if this has somting to do with buffer sizes??

Can any one out there help us? This is a real show stopper for us  We were
on the verge of migrating everbody (going from 10 - 20 users)to SAMBA before
these problems occured.


Anyway, here is the samba.conf



    workgroup = CCMSUWI

    netbios name = ALLISTER

    server string = Samba PDC running %v

    encrypt passwords = Yes

    passwd program = /usr/bin/passwd

    unix password sync = Yes

    log level = 5 # to help with corruption problem

      log file = /var/log/samba/log.%m

    max log size = 50

    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192

    logon script = netlogon.bat

    logon path = \\%L\profiles\%U

    logon drive = H:

    logon home = \\%L\%U\.profile

    domain logons = Yes

    os level = 64

    preferred master = True

    domain master = True

    hosts allow =

    oplocks = No

    level2 oplocks = No


    comment = Home Directories

    read only = No

    browseable = No


    path = /home/samba/profiles

    read only = No

    create mask = 0600

    directory mask = 0700

    browseable = No


    comment = Network Logon Service

    path = /home/netlogon

    write list = root lprescott ssankarsingh cclarke rkarim agordon
kaguillera mdass lcharles acaton

    browseable = No


    path = /home/DATA

    read only = No

    create mask = 0664

    directory mask = 0775

    guest ok = Yes


    path = /home/DATA/CMS

    valid users = lprescott acaton pjoseph mdass lcharles cclarke

    read only = No

    create mask = 0664

    directory mask = 0775


    comment = "All Printers"

    path = /var/spool/samba

    create mask = 0700

    guest ok = Yes

More information about the samba mailing list