[Samba] Slow Samba when added new hard drive

Fredrik Ahlin fredrik.ahlin at gmail.com
Tue Jan 31 20:19:34 GMT 2006


Hi,

I've used Samba several years without any problems. Last week I added
a new disk to my system, and Samba started to behave very strange.
It's slow in terms of establish a connection and time to list
directories. I've tried to resolve the problem without success. No
other daemon has problems, both ftp and http works fine as well as
internal communication.

Below I've attached both samba log file and a tcpdump. The log file
indicates some kind of timeout and the tcpdump shows ERROR: Unknown
error (22,49152) in the reply message.

I get the same problem with 3.0.8pre1-0.pre1.3 and 3.0.21a. I use
Windows XP Professional and Xbox as clients to Samba. The system is
running Fedora Core release 3 (2.6.9-1.667) with 9 hard drives (8 pata
and 1 sata).

I haven't changed anything, neither on the server or the clients more
than added the new hard drive. Samba seems to be ok when I disconnect
the new hard drive.

Thanks,
Fredrik

>From the logfile (smbd -D -d 5):
[2006/01/31 21:08:05, 3] libsmb/ntlmssp.c:debug_ntlmssp_flags(63)
  Got NTLMSSP neg_flags=0x60080215
    NTLMSSP_NEGOTIATE_UNICODE
    NTLMSSP_REQUEST_TARGET
    NTLMSSP_NEGOTIATE_SIGN
    NTLMSSP_NEGOTIATE_NTLM
    NTLMSSP_NEGOTIATE_NTLM2
    NTLMSSP_NEGOTIATE_128
    NTLMSSP_NEGOTIATE_KEY_EXCH
[2006/01/31 21:08:05, 5] auth/auth.c:get_ntlm_challenge(95)
  auth_get_challenge: module guest did not want to specify a challenge
[2006/01/31 21:08:05, 5] auth/auth.c:get_ntlm_challenge(95)
  auth_get_challenge: module sam did not want to specify a challenge
[2006/01/31 21:08:05, 5] auth/auth.c:get_ntlm_challenge(135)
  auth_context challenge created by random
[2006/01/31 21:08:05, 5] auth/auth.c:get_ntlm_challenge(136)
  challenge is:
[2006/01/31 21:08:05, 5] lib/util.c:dump_data(2058)
  [000] B6 A0 82 E7 4E 2C 8F 0C                           ....N,..
[2006/01/31 21:08:25, 5] lib/util.c:show_msg(454)
[2006/01/31 21:08:25, 5] lib/util.c:show_msg(464)
  size=230
  smb_com=0x73
  smb_rcls=22
  smb_reh=0
  smb_err=49152
  smb_flg=136
  smb_flg2=51201
  smb_tid=0
  smb_pid=1
  smb_uid=100
  smb_mid=3
  smt_wct=4
  smb_vwv[ 0]=  255 (0xFF)
  smb_vwv[ 1]=    0 (0x0)
  smb_vwv[ 2]=    0 (0x0)
  smb_vwv[ 3]=  132 (0x84)
  smb_bcc=187
[2006/01/31 21:08:25, 3] smbd/process.c:timeout_processing(1447)
  timeout_processing: End of file from client (client has disconnected).

And from tcpdump:
21:12:14.973928 IP (tos 0x0, ttl  64, id 9491, offset 0, flags [none],
proto 6, length: 204) xbox.1057 > sharky.netbios-ssn: P 256:420(164)
ack 94 win 64419
>>> NBT Packet
NBT Session Packet
Flags=0x0
Length=160 (0xa0)

SMB PACKET: SMBsesssetupX (REQUEST)
SMB Command   =  0x73
Error class   =  0x0
Error code    =  0 (0x0)
Flags1        =  0x8
Flags2        =  0x1
Tree ID       =  0 (0x0)
Proc ID       =  1 (0x1)
UID           =  0 (0x0)
MID           =  3 (0x3)
Word Count    =  12 (0xc)
Com2=0xFF
Res1=0x0
Off2=0 (0x0)
MaxBuffer=
WARNING: Short packet. Try increasing the snap length
[|SMB]


21:12:14.991657 IP (tos 0x0, ttl  64, id 39111, offset 0, flags [DF],
proto 6, length: 40) sharky.netbios-ssn > xbox.1056: . [tcp sum ok]
1:1(0) ack 1 win 6432
21:12:15.013681 IP (tos 0x0, ttl  64, id 31537, offset 0, flags [DF],
proto 6, length: 40) sharky.netbios-ssn > xbox.1057: . [tcp sum ok]
94:94(0) ack 420 win 6432
21:12:15.252060 IP (tos 0x0, ttl  64, id 39113, offset 0, flags [DF],
proto 6, length: 274) sharky.netbios-ssn > xbox.1056: P 1:235(234) ack
1 win 6432
>>> NBT Packet
NBT Session Packet
Flags=0x0
Length=230 (0xe6)

SMB PACKET: SMBsesssetupX (REPLY)
SMB Command   =  0x73
Error class   =  0x16
Error code    =  49152 (0xc000)
Flags1        =  0x88
Flags2        =  0x1
Tree ID       =  0 (0x0)
Proc ID       =  1 (0x1)
UID           =  100 (0x64)
MID           =  3 (0x3)
Word Count    =  4 (0x4)
SMBError = ERROR: Unknown error (22,49152)
[000] FF 00 00 00 00 00 00 09                          
\377\000\000\000\000\000\000\011
[|SMB]


More information about the samba mailing list