[Samba] Re: Slow Samba when added new hard drive

Fredrik Ahlin fredrik.ahlin at gmail.com
Sat Feb 4 17:58:27 GMT 2006


Hi,

I've attached some more information below.

I can't figure out whats wrong, I've tried everything I can think of. 
Upgraded kernel, changed smb.conf to only share a simple directory with 
just one file. The problem still remains... any help would be appreciated!

Thanks,
Fredrik

# /usr/bin/smbclient -U xbox -d 10 //sharky/media
...
SPNEGO login failed: Undetermined error
lang_tdb_init: /usr/lib/samba/en_US.UTF-8.msg: No such file or directory
session setup failed: Call timed out: server did not respond after 20000 
milliseconds

 From log file:
[2006/02/04 19:00:09, 5] auth/auth.c:get_ntlm_challenge(136)
   challenge is:
[2006/02/04 19:00:09, 5] lib/util.c:dump_data(2058)
   [000] E1 9B 8F A1 00 62 DE 7D                           .....b.}
[2006/02/04 19:00:29, 5] lib/util.c:show_msg(454)
[2006/02/04 19:00:29, 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=3260
   smb_uid=100
   smb_mid=2
   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/02/04 19:00:29, 10] lib/util.c:dump_data(2058)
   [000] A1 81 81 30 7F A0 03 0A  01 01 A1 0C 06 0A 2B 06  ...0.... ......+.
   [010] 01 04 01 82 37 02 02 0A  A2 6A 04 68 4E 54 4C 4D  ....7... .j.hNTLM
   [020] 53 53 50 00 02 00 00 00  0C 00 0C 00 30 00 00 00  SSP..... ....0...
   [030] 35 02 8A 60 E1 9B 8F A1  00 62 DE 7D 00 00 00 00  5..`.... .b.}....
   [040] 00 00 00 00 2C 00 2C 00  3C 00 00 00 53 00 48 00  ....,.,. <...S.H.
   [050] 41 00 52 00 4B 00 59 00  02 00 0C 00 53 00 48 00  A.R.K.Y. ....S.H.
   [060] 41 00 52 00 4B 00 59 00  01 00 0C 00 53 00 48 00  A.R.K.Y. ....S.H.
   [070] 41 00 52 00 4B 00 59 00  04 00 00 00 03 00 00 00  A.R.K.Y. ........
   [080] 00 00 00 00 00 55 00 6E  00 69 00 78 00 00 00 53  .....U.n .i.x...S
   [090] 00 61 00 6D 00 62 00 61  00 20 00 33 00 2E 00 30  .a.m.b.a . .3...0
   [0A0] 00 2E 00 32 00 31 00 61  00 00 00 4D 00 59 00 47  ...2.1.a ...M.Y.G
   [0B0] 00 52 00 4F 00 55 00 50  00 00 00                 .R.O.U.P ...
[2006/02/04 19:00:29, 10] smbd/process.c:setup_select_timeout(1372)
   change_notify_timeout: -1




> 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