<OT> dumb Samba problem fixed...

Jerry McBride mcbrides9
Sun Sep 12 11:54:21 PDT 2004


Well, stupid me.

We rolled out samba 3.06 onto the workplace servers this weekend and almost 
immediately ran into a real show stopper that turns out to be a possible 
kernel bug. 

SYMPTOM: 
Copying files or maintaining a linux to linux share that amounts to a few 
megabytes of data ends up with a dead connection. Once the share dies, the 
only way to re-establish a connection is to umount and then mount the share 
again. Once again, after a few megabytes, it'll die again. The connection 
is'nt dropped, just no I/O...

LOG:
Sep 12 10:34:11 sid kernel: smbfs: Unrecognized mount option noauto
Sep 12 10:35:38 sid kernel: smb_add_request: request [c9eaeea0, mid=2083] 
timed out!
Sep 12 10:35:38 sid kernel: smb_add_request: request [c9eaeda0, mid=2084] 
timed out!
Sep 12 10:36:08 sid kernel: smb_add_request: request [c9eaeea0, mid=2086] 
timed out!
Sep 12 10:36:59 sid kernel: smb_add_request: request [c9eaeca0, mid=2111] 
timed out!

FIX:
It seems there's a bug in the kernel that everybody knows about, but us. 
Here's a clip of what I've found via a google dig:

"The 2.6.x sendfile() system call seems to be broken in
the kernel. Try adding "use sendfile = no" to your
smb.conf."

Added that single configuration line and everything is now operating as 
expected. Even though the default setting for "use sendfile" is no, 
it is either not being recognized during samba startup or is being toggled 
"yes" by some other config statement. Either way, this'll do it. 

While I was in the smb.conf I added: 
use sendfile = no
large readwrite = no
max xmit = 16644

We're back to normal and maybe even a bit better. I can go home now. 

Cheers all.

-- 

******************************************************************************
                     Registered Linux User Number 185956
              FSF Associate Member number 2340 since 05/20/2004
             Join me in chat at #linux-users on irc.freenode.net
    Buy an Xbox for $149.00, run linux on it and Microsoft loses $150.00!
    12:13pm  up 312 days, 12:26,  16 users,  load average: 2.61, 2.67, 2.63



More information about the Linux-users mailing list