oplock_break with samba 2.0

Maurice Agavnian agavnian at cegelec-red.fr
Fri Jan 8 19:36:43 GMT 1999


Since I upgrade to 2.0beta5, I got a lot of messages like this in
log.smb:

[1999/01/08 16:30:38, 0] smbd/oplock.c:(734)
  oplock_break: receive_smb timed out after 30 seconds.
  oplock_break failed for file  GN/previsions/previsions 99/previsions
globales 99.xls (dev = 800073, inode = 904801).
[1999/01/08 16:31:20, 0] smbd/oplock.c:(804)
  oplock_break: client failure in break - shutting down this smbd.

When this happen, my samba server become very slow and files open by PC
users are often lost.

I was working with 1.9.18p7 before and never saw this problem.

Does the "blocking locks" paramater has something to do with oplock ?

Can I use "oplocks = False" as a (poor) workaround ?


Thanks.
Maurice.


My configuration:
---------------
samba 2.0.0 beta 5 on Solaris 2.5.1
PC are WinNT4 SP3 and Win95

smb.conf:
---------
[global]
	
	workgroup = SAMBA
	security = user
	logon script = logon.bat
	logon path = \\%L\%U\.%a-profile
	domain logons = yes
	encrypt passwords = yes
	passwd program = /bin/passwd %u
	passwd chat = *Enter*login*password* %o\n *New*password* %n\n
*enter*new*password* %n\n *changed*
	unix password sync = yes
	domain admin group = @group1, @group2

	; printing
        printing = sysv
	printcap name = /opt/samba/lib/printcap
	load printers = No
	print command = (lp -d%p -c -s -o nobanner %s; sleep 120; rm -f %s) &
	lpq command = lpstat -o%p
	lprm command = cancel %p-%j
		
	; Char set
	character set = iso8859-1
	client code page = 850
	valid chars = à:À â:Â ä:Ä ç:Ç é:É è:È ê:Ê ë:Ë î:Î ï:Ï ô:Ô ö:Ö ù:Ù û:Û
ü:Ü æ:Æ £ § µ
	preserve case = yes
	short preserve case = yes

        ; divers
	debug level = 0
	dont descend = ./etc,./var
	dead time = 15
	strip dot = yes
	nis homedir = true
	guest account = public
	max connections = 30
	invalid users = root
	dos filetimes = yes
	dos filetime resolution = yes

	; wins server et wins support
	wins support = yes
	name resolve order = lmhosts wins host bcast
	
	; master browser
	os level = 129
	preferred master = yes
	domain master = yes
	local master = yes
	

[netlogon]
	comment = Logon scripts location
	path = /outils/netlogon
	browseable = no
	locking = No
	
[homes]
	comment = Sweet Home
	browseable = no
	writable = yes
	max connections = 5


[printers]
	comment = All Printers
	path = /tmp
	browseable = no
	public = yes
	printable = yes
	create mode = 0700


More information about the samba-ntdom mailing list