[Samba] Probelms Writing large files to samba

Brian Whitehead bwhitehd at earthlink.net
Tue Apr 2 09:20:09 GMT 2002


Probelms Writing large files to sambaDoes this problem happen when transferring to any share or partition?  Does this happen with all Win2K systems or do you only have one to test with?  What is the file type of the files you are transferring?  Does it happen with all file types or just certain ones?  Have you tried removing the 'interfaces' line to see how it acts when it uses the information provided by the kernel?  (default is all interfaces; eth0 and eth1)  Do you need it to only use eth1 for a specific reason?  Have you tried disabling oplocks or setting the veto for certain filetypes?

--
Brian

  ----- Original Message ----- 
  From: Ross Anderson 
  To: samba at lists.samba.org 
  Sent: Monday, April 01, 2002 1:32 PM
  Subject: [Samba] Probelms Writing large files to samba


          For some time now I've been trying to track down a problem with my Samba server. It is set up as a PDC running RH 7.2 with kernel 2.4.18, samba 2.2.3a. Now I've run MANY different versions and kernel compiles. Starting with RH default. And working up. This problem seems to have started when I moved to Win2k. As a test I installed XP. I experience the same issues. I've changed out the  NIC, cable and switch, moved IRQ's from here to Tuesday. ;-)  The system is a K6II 350 with 256 Ram, and 2 intel pro 100+ cards. I tried a set of 3 com cards also. The real problem seems to be when I copy files larger than ~10 Mbytes. The transfer starts then it seems to hang, it locks up and either claims the system resource is no longer available or the path is too deep. I've checked both system logs and Samba logs, there are errors in the samba logs below but when I tailed them out, the errors occur only after I've tried to copy the file a second time after system recovery. I've read on the archives over and seems identify that some of the problems were hardware related however I'm %90 sure I've swaped out everything. Since the problem seems to be specific to the Win2k and up systems I'm leaning towards some call procedure. Any help would be appreciated this problem is quite annoying especially for someone who does Audio editing for a major theatre. 

  Ross Anderson 





  [global]

          interfaces = eth1

          domain master = yes

          prefered master = yes

          local master = yes

          dns proxy = no

          security = user

          logon path = e:\Documents and Settings\%m\%u

  #       logon path = \\%L\profiles\%u

          logon drive = K:

          logon home = \\SHADOW_P\%u

          logon script = %U.bat

          name resolve order = wins bcast

          domain logons = yes

          null passwords = yes 

          encrypt passwords = yes

          workgroup = SHADOW

          server string = owbn.net

          socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

          netbios name = SHADOW_P

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

          load printers = yes

  #        os level = 64

          wins support = yes

          max log size = 50

          printcap name = /etc/printcap

          printing = lprng

          add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u

          nt acl support = yes 

  #============================ Share Definitions ==============================

  [homes]

          comment = Home Directories

          browseable = no

          writable = yes

          delete readonly = yes

          hide dot files = yes

          force create mode = 0770

          force directory mode = 0770

          create mask = 0770

  [netlogon]

          comment = Network Logon Service

          browseable = no

          write list = ntadmin

          path = /data/netlogon

          guest ok = yes

          writable = no

  [profiles]

          path = /data/profiles

          writeable = yes

          create mask = 0600

          directory mask = 0700

  [printers]

          comment = All Printers

          path = /var/spool/samba

          browseable = no

          guest ok = no

          printable = yes

  [den]

          path = /data/den

          writeable = yes

          comment = The wolf den

          force group = shadow

          force create mode = 0770

          force directory mode = 0770

          create mask = 0770

  [web]

          path = /data/web

          writeable = yes

          comment = web are

          force group = shadow

          force create mode = 0770

          force directory mode = 0770

          create mask = 0770

  LABEL=/                 /                       ext3    defaults        1 1

  /dev/hdc5               /data                   ext3    defaults        1 2

  /dev/hdb1               /data/mp3               ext3    defaults        1 2

  none                    /dev/pts                devpts  gid=5,mode=620  0 0

  none                    /proc                   proc    defaults        0 0

  none                    /dev/shm                tmpfs   defaults        0 0

  /dev/hdc2               swap                    swap    defaults        0 0

  /dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,kudzu,ro 0 0



  [2002/03/31 00:56:20, 0] smbd/open.c:open_mode_check(555)

    open_mode_check: Existent process 20760 left active oplock.

  [2002/03/31 00:56:20, 0] lib/util_sock.c:read_data(436)

    read_data: read failure for 43988. Error = Interrupted system call

  [2002/03/31 00:56:20, 0] tdb/tdbutil.c:tdb_log(475)

    tdb(/var/cache/samba/locking.tdb): tdb_lock failed on list 36 ltype=1 (Resource deadlock avoided)

  [2002/03/31 00:56:20, 0] tdb/tdbutil.c:tdb_log(475)

    tdb(/var/cache/samba/locking.tdb): tdb_lock failed on list 36 ltype=0 (Resource deadlock avoided)

  [2002/03/31 00:56:20, 0] smbd/oplock_linux.c:linux_oplock_receive_message(135)

    Invalid file descriptor 26 in kernel oplock break!

  [2002/03/31 00:57:57, 0] smbd/oplock.c:request_oplock_break(981)

    request_oplock_break: no response received to oplock break request to pid 20776 on port 32810 for dev = 1605, inode = 32486, file_id = 16

  [2002/03/31 00:57:57, 0] smbd/open.c:open_mode_check(551)

    open_mode_check: exlusive oplock left by process 20776 after break ! For file harley.mpg, dev = 1605, inode = 32486. Deleting it to continue...

  [2002/03/31 00:57:57, 0] smbd/open.c:open_mode_check(555)

    open_mode_check: Existent process 20776 left active oplock.

  [2002/03/31 00:57:57, 0] lib/util_sock.c:read_data(436)

    read_data: read failure for 11868. Error = Interrupted system call

  [2002/03/31 00:57:57, 0] tdb/tdbutil.c:tdb_log(475)

    tdb(/var/cache/samba/locking.tdb): tdb_lock failed on list 36 ltype=1 (Resource deadlock avoided)

  [2002/03/31 00:57:57, 0] tdb/tdbutil.c:tdb_log(475)

    tdb(/var/cache/samba/locking.tdb): tdb_lock failed on list 36 ltype=0 (Resource deadlock avoided)

  [2002/03/31 00:57:57, 0] smbd/oplock_linux.c:linux_oplock_receive_message(135)

    Invalid file descriptor 26 in kernel oplock break!

  [2002/03/31 01:04:23, 0] param/loadparm.c:map_parameter(1996)

    Unknown parameter encountered: "oplocks2"

  [2002/03/31 01:04:23, 0] param/loadparm.c:lp_do_parameter(2665)

    Ignoring unknown parameter "oplocks2"

  [2002/03/31 01:14:44, 0] smbd/oplock.c:request_oplock_break(998)

    request_oplock_break: error in response received to oplock break request to pid 20923 on port 32814 for dev = 1605, inode = 519172, file_id = 47

    Error was (Interrupted system call).

  [2002/03/31 01:14:44, 0] smbd/open.c:open_mode_check(506)

    open_mode_check: FAILED when breaking oplock (3) on file movie/Texture/Final/69.mpg, dev = 1605, inode = 519172

  [2002/03/31 01:15:03, 0] smbd/oplock.c:process_local_message(360)

    process_local_message: Received unsolicited break reply - dumping info.

  [2002/03/31 01:15:03, 0] smbd/oplock.c:process_local_message(374)

    process_local_message: unsolicited oplock break reply from pid 20929, port 32814, dev = 1605, inode = 519172, file_id = 47

  [2002/03/31 14:00:59, 0] lib/util_sock.c:read_data(436)

    read_data: read failure for 43988. Error = Connection reset by peer

  [2002/03/31 14:04:39, 0] lib/util_sock.c:read_data(436)

    read_data: read failure for 43988. Error = Connection reset by peer

-------------- next part --------------
HTML attachment scrubbed and removed


More information about the samba mailing list