Robert Dal Santo wrote:> Is there any work underway to get Samba to support OPLOCKS? I know > they are difficult to implement but I'm faced with a decisions now to buy an > NT box (Ugh!) or do a lot of messing around to get this application > to perform decently. The application in questions takes around 5 > hours to do a taks without OPLOCKS and around an hour to do the same > task with OPLOCKS :(FYI, Oplock support is currently *IN DEVELOPMENT*, and is the major goal of Samba 1.9.18. I have a situation that needs Oplocks too, and have been corresponding with several of the Samba team on this - Andrew Tridgell and Jeremy Allison to be specific. As of last week, initial OPLOCK support was in place, and they were ironing out some bugs. Jeremy told me that a public Samba alpha/beta release with oplock support would most likely show up on the Samba ftp site this week or next. I would imagine it will be "1.9.18alpha1" or something like that. I would not use an alpha release of Samba in your production environment, but I would take heart - it appears that your performance issues with Samba will be solved in the very near future - if your users can wait a month or two... Later! -- Jim Morris (Jim@Morris.net) -------------------------------------------------------------------- If planes were crashing as often as DOS and Windoze, I doubt that anyone but suicidal maniacs would fly...run linux (or solaris-x86, or BSD, or ...) and be done with it.
Hi All, I don't seem to be able to subscrube to the samba list because I am on ht esamba-ntdom list, so can you please respond directly to me. I have put up a share for the accounting people where tey store the quickbooks files. When one person accesses the file everything is fine. smbstatus looks like this: Locked files: Pid DenyMode R/W Oplock Name -------------------------------------------------- 2216 DENY_NONE RDWR EXCLUSIVE+BATCH /usr1/oracom/accounting/Quickbooks 2000/Active/New QB.QBI Tue Sep 12 13:03:07 2000 2216 DENY_NONE RDWR EXCLUSIVE+BATCH /usr1/oracom/accounting/Quickbooks 2000/Active/New QB.QBW Tue Sep 12 13:03:06 2000 notice the Quickbooks stuff has the exclusive+batch oplock. Now when someone else tries to access the file (which is allowed, it worked when I had the files on an NT workstation) they get an error saying it is not a quickbooks file, and the smbstatus follows: Locked files: Pid DenyMode R/W Oplock Name -------------------------------------------------- 2216 DENY_NONE RDWR EXCLUSIVE+BATCH /usr1/oracom/accounting/Quickbooks 2000/Active/New QB.QBI Tue Sep 12 13:03:07 2000 2229 DENY_ALL RDWR EXCLUSIVE+BATCH /usr1/oracom/accounting/Quickbooks 2000/Active/INET/_License.tmp Tue Sep 12 13:07:33 2000 2229 DENY_NONE RDONLY NONE /usr1/oracom/accounting/Quickbooks 2000/Active/New QB.QBW Tue Sep 12 13:07:33 2000 2216 DENY_NONE RDWR NONE /usr1/oracom/accounting/Quickbooks 2000/Active/New QB.QBW Tue Sep 12 13:03:06 2000 Another smbstatus later in time: Locked files: Pid DenyMode R/W Oplock Name -------------------------------------------------- 2318 DENY_NONE RDWR NONE /usr1/oracom/accounting/Quickbooks 2000/Active/New QB.QBI Tue Sep 12 13:11:51 2000 2328 DENY_NONE RDWR NONE /usr1/oracom/accounting/Quickbooks 2000/Active/New QB.QBW Tue Sep 12 13:14:01 2000 2318 DENY_NONE RDWR NONE /usr1/oracom/accounting/Quickbooks 2000/Active/New QB.QBW Tue Sep 12 13:11:50 2000 So we have no oplocks and everything is read write. Any help would be great. Thanks Glenn -- Glenn MacGregor Director of Services Oracom, Inc. http://www.oracom.com Tel. +1 978.557.5710 Ext. 302 Fax +1 978.557.5716
I am getting this in the error log: [2002/09/20 14:53:55, 0] smbd/reply.c:reply_lockingX(4413) reply_lockingX: Error : oplock break from client for fnum = 7600 and no oplock granted on (wwwwwwww.doc). [2002/09/23 09:32:11, 0] smbd/nttrans.c:call_nt_transact_ioctl(1762) call_nt_transact_ioctl: Currently not implemented. [2002/09/23 10:02:35, 0] smbd/nttrans.c:call_nt_transact_ioctl(1762) call_nt_transact_ioctl: Currently not implemented. [2002/09/23 16:31:38, 0] smbd/nttrans.c:call_nt_transact_ioctl(1762) call_nt_transact_ioctl: Currently not implemented. [2002/09/24 08:39:51, 0] smbd/nttrans.c:call_nt_transact_ioctl(1762) call_nt_transact_ioctl: Currently not implemented. [2002/09/25 08:54:01, 0] smbd/nttrans.c:call_nt_transact_ioctl(1762) call_nt_transact_ioctl: Currently not implemented. [2002/09/26 08:50:10, 0] smbd/nttrans.c:call_nt_transact_ioctl(1762) call_nt_transact_ioctl: Currently not implemented. [2002/09/26 08:52:08, 0] smbd/oplock.c:oplock_break(813) oplock_break: no break received from client within 30 seconds. oplock_break failed for file xxxxxx.doc (dev = 12b, inode = 4832). [2002/09/26 08:52:08, 0] smbd/oplock.c:oplock_break(859) oplock_break: client failure in oplock break in file yyyyyyyyyyy.doc [2002/09/26 08:52:08, 0] smbd/reply.c:reply_lockingX(4413) reply_lockingX: Error : oplock break from client for fnum = 8253 and no oplock granted on this file (zzzzzzzzzzzzzz.doc). I have noticed suggestions of making: oplocks = no level2 oplocks = no kernel oplocks = no What exactly does this do? We are running Win2k clients on a SCO OpenServer 5.0.4 running as a file server. The log.nmbd contains the following: [2002/09/26 11:15:14, 0] nmbd/nmbd_namequery.c:query_name_response(105) query_name_response: Multiple (2) responses received for a query on subnet 192.168.xxx.3 for name LANGROUP<1d>. This response was from IP 192.168.xxx.2, reportingan IP address of 192.168.xxx.2. [2002/09/26 11:25:33, 0] nmbd/nmbd_namequery.c:query_name_response(105) query_name_response: Multiple (2) responses received for a query on subnet 192.168.xxx.3 for name LANGROUP<1d>. This response was from IP 192.168.xxx.2, reportingan IP address of 192.168.xxx.2. [2002/09/26 11:30:32, 0] nmbd/nmbd_namequery.c:query_name_response(105) query_name_response: Multiple (2) responses received for a query on subnet 192.168.xxx.3 for name LANGROUP<1d>. This response was from IP 192.168.xxx.2, reportingan IP address of 192.168.xxx.2. [2002/09/26 11:35:47, 0] nmbd/nmbd_namequery.c:query_name_response(105) query_name_response: Multiple (2) responses received for a query on subnet 192.168.xxx.3 for name LANGROUP<1d>. This response was from IP 192.168.xxx.2, reportingan IP address of 192.168.xxx.2. I'm not sure a) What this means? ... and b) How to correct it if it is a problem? Yours sincerely, John Knox SYSTEMS ADMINISTRATOR RIDER HUNT MELBOURNE Phone: +61 3 9690 6111 Fax: +61 3 9690 6577 E-mail: jknox@riderhunt.com.au <mailto:jknox@riderhunt.com.au> This e-mail is intended only for the use of the individual or entity named above and may contain information that is confidential and privileged. If you are not the intended recipient of this e-mail communication, please notify us immediately by e-mail to rhm@riderhunt.com.au <mailto:rhm@riderhunt.com.au> or reply by e-mail direct to the sender and then destroy any electronic or paper copy of this message. Rider Hunt Melbourne does not represent, warrant or guarantee that the integrity of this communication has been maintained nor that the communication is free of errors, virus or interference.
On Thu, 26 Sep 2002, John Knox wrote:> [2002/09/26 08:52:08, 0] smbd/oplock.c:oplock_break(813) > oplock_break: no break received from client within 30 seconds. > oplock_break failed for file xxxxxx.doc (dev = 12b, inode = 4832). > [2002/09/26 08:52:08, 0] smbd/oplock.c:oplock_break(859) > oplock_break: client failure in oplock break in file yyyyyyyyyyy.doc > [2002/09/26 08:52:08, 0] smbd/reply.c:reply_lockingX(4413) > reply_lockingX: Error : oplock break from client for fnum = 8253 and no > oplock granted on this file (zzzzzzzzzzzzzz.doc).This sounds like a queueing bug we fixed (post 2.2.5?). Can you retest against 2.2.6pre2 cheers, jerry --------------------------------------------------------------------- Hewlett-Packard http://www.hp.com SAMBA Team http://www.samba.org -- http://www.plainjoe.org "Sams Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--
hello, how is it possible to unlock a file, which is locked by a oplock, without restart the samba server? ( sorry my english ) i use: samba 2.2.7 linux regards marcel beltz
Dear List, I'm using samba 2.2.8a as a PDC which I built from the src.rpm on a RedHat 9 box. In every file share (including homes and netlogon) I have the following lines. kernel oplocks = no level2 oplocks = no In smbd.log I keep getting the following lines [2003/05/06 17:28:35, 0] smbd/oplock_linux.c:linux_init_kernel_oplocks(287) Failed to setup RT_SIGNAL_LEASE handler I have about 40 machines using Win98, Win2000 and WinXP. In the global section I had oplocks = no and that didn't seem to help so I commented it out. If I have oplocks turned off why do I still get the error messages in smbd.log? TIA Warren
I have read that I need to turn oplocks off for QuickBooks. I think I understand what Oplocks are. I also believe I understand why I need to turn them off. But in Windows, where is this option? Are Oplocks always on in windows? If this is the case, I reiterate why do I need to turn them off in Samba? **********CONFIDENTIALITY STATEMENT********** This e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. It is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this email is not the intended recipient, or agent responsible for delivering or copying of this communication, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please reply to the sender that you have received the message in error, then delete it. Thank you
On Wed, 4 Jun 2003, Brandon Lederer wrote:> I have read that I need to turn oplocks off for QuickBooks. I think I > understand what Oplocks are. I also believe I understand why I need to turn > them off. But in Windows, where is this option? Are Oplocks always on in > windows? If this is the case, I reiterate why do I need to turn them off in > Samba?Suggest you read the chapter on locking in the following, it might help: http://samba.org/~jht/NT4migration/Samba-HOWTO-Collection.pdf - John T. -- John H Terpstra Email: jht@samba.org
On Wed, Jun 04, 2003 at 08:09:24AM -0500, Brandon Lederer wrote:> I have read that I need to turn oplocks off for QuickBooks. I think I > understand what Oplocks are. I also believe I understand why I need to turn > them off. But in Windows, where is this option? Are Oplocks always on in > windows? If this is the case, I reiterate why do I need to turn them off in > Samba?oplocks are usually on in both Windows and Samba. In Samba you can turn them off per share or file or globally in the smb.conf. In Windows you can only turn them off globally in the registry. Jeremy.