[Samba] 30 seconds delay on creating a file

Martin Scheerer mail at martin-scheerer.de
Sun Jun 12 21:41:34 GMT 2005


Hello everybody,

I have a simple setup with 2 linux-machines (server/client). When I want 
to execute "touch testz" on the smbfs mounted samba-share I have to wait 
30 seconds until the file is created. It sounds like a typical 
dns-timeout problem, but I dont know where.... I put already both 
machines in the /etc/hosts ...

a copy of the server-side logfile (log level = 10), I marked the delay:

[...]
[2005/06/12 16:46:38, 10] smbd/trans2.c:call_trans2setfilepathinfo(3547)
  call_trans2setfilepathinfo: SMB_SET_FILE_UNIX_BASIC: name = testz size 
= 0, uid = 4294967295, gid = 4294967295, raw perms = 0100644
[2005/06/12 16:46:38, 10] smbd/trans2.c:call_trans2setfilepathinfo(3629)
  call_trans2setfilepathinfo: SMB_SET_FILE_UNIX_BASIC setting mode 0644 
for file testz
[2005/06/12 16:46:38, 6] smbd/trans2.c:call_trans2setfilepathinfo(3848)
  actime: Sun Jun 12 16:46:38 2005
   modtime: Sun Jun 12 16:46:38 2005
   size: 0 dosmode: 0
[2005/06/12 16:46:38, 9] smbd/trans2.c:send_trans2_replies(556)
  t2_rep: params_sent_thistime = 2, data_sent_thistime = 0, 
useable_space = 65475
[2005/06/12 16:46:38, 9] smbd/trans2.c:send_trans2_replies(558)
  t2_rep: params_to_send = 2, data_to_send = 0, paramsize = 2, datasize = 0
[2005/06/12 16:46:38, 6] lib/util_sock.c:write_socket(449)
  write_socket(24,62)
[2005/06/12 16:46:38, 6] lib/util_sock.c:write_socket(452)
  write_socket(24,62) wrote 62

================= here 30 seconds delay ========================

[2005/06/12 16:47:08, 10] 
lib/util_sock.c:read_smb_length_return_keepalive(505)
  got smb length of 81
[2005/06/12 16:47:08, 6] smbd/process.c:process_smb(1090)
  got message type 0x0 of len 0x51
[2005/06/12 16:47:08, 3] smbd/process.c:process_smb(1091)
  Transaction 23 of length 85
[2005/06/12 16:47:08, 5] lib/util.c:show_msg(464)
[2005/06/12 16:47:08, 5] lib/util.c:show_msg(474)
  size=81
  smb_com=0x32
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=8
  smb_flg2=3
  smb_tid=1
  smb_pid=1
  smb_uid=100
  smb_mid=38329
  smt_wct=15
  smb_vwv[ 0]=   13 (0xD)
  smb_vwv[ 1]=    0 (0x0)
  smb_vwv[ 2]=   64 (0x40)
  smb_vwv[ 3]=16480 (0x4060)
  smb_vwv[ 4]=    0 (0x0)
  smb_vwv[ 5]=    0 (0x0)
  smb_vwv[ 6]=    0 (0x0)
  smb_vwv[ 7]=    0 (0x0)
  smb_vwv[ 8]=    0 (0x0)
  smb_vwv[ 9]=   13 (0xD)
  smb_vwv[10]=   68 (0x44)
  smb_vwv[11]=    0 (0x0)
  smb_vwv[12]=    0 (0x0)
  smb_vwv[13]=    1 (0x1)
  smb_vwv[14]=    5 (0x5)
  smb_bcc=16
[2005/06/12 16:47:08, 10] lib/util.c:dump_data(1995)
  [000] 00 00 00 00 02 00 00 00  00 5C 74 65 73 74 7A 00  ........ .\testz.
[2005/06/12 16:47:08, 3] smbd/process.c:switch_message(886)
  switch message SMBtrans2 (pid 1662) conn 0x83976a8
[2005/06/12 16:47:08, 4] smbd/uid.c:change_to_user(194)
[...]

Any hints what I can try?

Thanks in advance!

Martin Scheerer


More information about the samba mailing list