[Samba] Oplocks, Oplock_break and request Oplock_break

Paul Cochrane paul at tortc.tuht.scot.nhs.uk
Fri May 10 06:30:04 GMT 2002


Hello there.

I'm having a few problems using samba 2.2.3a and sharing a paradox database. On the whole 
everything works fine but (there's always a but), every now and again. a machine's shares will 
close causing the database to crash (sometimes only that machine) - the other networked 
machine recover after a few error messages.

I guess the easy answer would be to disable oplocks for the share but I'd rather not since it 
makes maintaining the database much quicker when I use it personally after hours. 

I've did a little digging the the log files and have came up with the following: there are 3 
machines (doris, o-techs & hazel). It appears that Doris had an oplock on a particular file. For 
some reason (probably the clients hazel or 0-techs), on trying to free the oplock, samba killed 
the doris SMBD process even though it has locked files. Upon doris reconnecting, these locked 
files are not reconnected hence screwing up the database on the machine.

I am including the relevant sections from the logs below & what machien generated them. Can 
someone please describe what the error messages actually mean and can anyone offer any 
sugestions/solutions to the problem.

Thanks for any help.
Paul

Here are the log files:
;----------------------------------------------------------
Doris: win98
[2002/05/10 08:33:23, 1] smbd/service.c:close_cnum(653)  	doris (192.168.1.43) closed 
connection to service sophos
[2002/05/10 08:33:25, 1] smbd/service.c:make_connection(615)  	doris (192.168.1.43) connect 
to service netlogon as user doris (uid=519, gid=100) (pid 5301)
[2002/05/10 08:33:27, 1] smbd/service.c:make_connection(615)	doris (192.168.1.43) connect 
to service sophos as user doris (uid=519, gid=100) (pid 5301)
[2002/05/10 08:33:31, 1] smbd/service.c:close_cnum(653)		doris (192.168.1.43) 
closed connection to service netlogon
[2002/05/10 08:33:32, 1] smbd/service.c:make_connection(615)  	doris (192.168.1.43) connect 
to service netlogon as user doris (uid=519, gid=100) (pid 5301)
[2002/05/10 08:33:42, 1] smbd/service.c:make_connection(615)  	doris (192.168.1.43) connect 
to service bdeshare as user doris (uid=519, gid=100) (pid 5301)
[2002/05/10 08:33:44, 1] smbd/service.c:make_connection(615)  	doris (192.168.1.43) connect 
to service orthotic.sys as user doris (uid=519, gid=501) (pid 5301)
[2002/05/10 08:33:45, 1] smbd/service.c:make_connection(615)  	doris (192.168.1.43) connect 
to service orkney.sys as user doris (uid=519, gid=501) (pid 5301)
[2002/05/10 08:33:46, 1] smbd/service.c:make_connection(615)  	doris (192.168.1.43) connect 
to service orthotic.doc as user doris (uid=519, gid=501) (pid 5301)
[2002/05/10 08:33:48, 1] smbd/service.c:make_connection(615)  	doris (192.168.1.43) connect 
to service prosthet.doc as user doris (uid=519, gid=502) (pid 5301)
[2002/05/10 08:36:09, 1] smbd/service.c:close_cnum(653)  	doris (192.168.1.43) closed 
connection to service netlogon
[2002/05/10 10:52:56, 1] smbd/service.c:close_cnum(653)  	doris (192.168.1.43) closed 
connection to service prosthet.doc
[2002/05/10 10:52:56, 1] smbd/service.c:close_cnum(653)  	doris (192.168.1.43) closed 
connection to service orthotic.doc
[2002/05/10 10:52:56, 1] smbd/service.c:close_cnum(653)  	doris (192.168.1.43) closed 
connection to service orkney.sys
[2002/05/10 10:52:56, 1] smbd/service.c:close_cnum(653)  	doris (192.168.1.43) closed 
connection to service orthotic.sys
[2002/05/10 10:52:56, 1] smbd/service.c:close_cnum(653)  	doris (192.168.1.43) closed 
connection to service bdeshare
[2002/05/10 10:52:57, 1] smbd/service.c:make_connection(615)  	doris (192.168.1.43) connect 
to service orthotic.sys as user doris (uid=519, gid=501) (pid 6721)
[2002/05/10 10:53:27, 0] smbd/oplock.c:oplock_break(758)  oplock_break: receive_smb error 
(Success)
  oplock_break failed for file REF_HOSP.DB (dev = 805, inode = 2540691, file_id = 7).
[2002/05/10 10:53:27, 0] smbd/oplock.c:oplock_break(843)
  oplock_break: client failure in break - shutting down this smbd.
[2002/05/10 10:53:27, 1] smbd/service.c:close_cnum(653)  	doris (192.168.1.43) closed 
connection to service orthotic.sys
[2002/05/10 10:53:28, 1] smbd/service.c:make_connection(615)  	doris (192.168.1.43) connect 
to service orthotic.sys as user doris (uid=519, gid=501) (pid 6723)
;----------------------------------------------------------
O_techs: Win95
[2002/05/10 10:53:29, 0] smbd/oplock.c:request_oplock_break(981)
  request_oplock_break: no response received to oplock break request to pid 6721 on port 
58631 for dev = 805, inode = 2540691, file_id = 7
;----------------------------------------------------------
Hazel: win95
[2002/05/10 10:53:30, 0] smbd/oplock.c:request_oplock_break(981)
  request_oplock_break: no response received to oplock break request to pid 6721 on port 
58631 for dev = 805, inode = 2540691, file_id = 7
;----------------------------------------------------------
Doris: win98
[2002/05/10 11:09:24, 0] smbd/dir.c:dptr_close(277)
  Invalid key 283 given to dptr_close
[2002/05/10 11:09:24, 0] smbd/dir.c:dptr_close(277)
  Invalid key 265 given to dptr_close
[2002/05/10 11:09:24, 0] smbd/dir.c:dptr_close(277)
  Invalid key 281 given to dptr_close
[2002/05/10 11:09:24, 0] smbd/dir.c:dptr_close(277)
  Invalid key 271 given to dptr_close


followed by lots of similar lines......




                       -------------------------------------
Paul Cochrane         |       Tayside Orthopaedic &         |
                      | Rehabilitation Technology Centre    |
=============         |-------------------------------------|
                      | Ninewells Hospital & Med. School    | 
                      | Dundee, Scotland, UK.               |
                      | DD1 9SY.                            |
                      | Phone:  +44 1382 496284             |
                      | Fax:    +44 1382 496322             |
                      | E-Mail: paul at tortc.tuht.scot.nhs.uk |
                       -------------------------------------





More information about the samba mailing list