Maybe my first subject wasn't exactly correct... Glenn MacGregor wrote:> 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-- Glenn MacGregor Director of Services Oracom, Inc. http://www.oracom.com Tel. +1 978.557.5710 Ext. 302 Fax +1 978.557.5716
Glenn MacGregor wrote:> 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 2000The switch to non-oplocked (visible in QB.QBW) is intentional, as we're responding to an access by breaking any oplocks. The "not a quickbooks file" indicates a) they picked a bad error message, or b) the file has been overwritten. As a first step, put oplocks=no in the share where the quickbooks files live: if the problem goes away, it's a quickbooks feature (;-)). If not, we may have a samba issue. Is this Samba 2.0.7, and are any of the clients Win2000? --dave -- David Collier-Brown, | Always do right. This will gratify some people 185 Ellerslie Ave., | and astonish the rest. -- Mark Twain Willowdale, Ontario | //www.oreilly.com/catalog/samba/author.html Work: (905) 415-2849 Home: (416) 223-8968 Email: davecb@canada.sun.com