Hi, I used to have a win NT to serve small office networks comprised of windows clients. During the last months I have made a considerable effort to learn enough about linux in order to explore it's capabilities for that application. In the area of file & print sharing samba still looks as the best choice. I am using it in my office for some weeks now and I am quite happy with it. Yet I had one problem regarding locking that troubled me a lot (in fact the list helped me a lot in finding the solution): In my setup with RedHat 7.0 + Samba 2.2 I had to disable oplocks (set oplocks = no) for shares containing databases (specificaly MS Access ones) that were accessed simultaneously from more than one windows 98 clients. If I left it enabled I was getting a lot of "access denied", "this file is allready in use" and stuff like that. Disabling oplocks solves the problem but according to the "Using samba" reference lowers performance. Has anybody any sugestions in order to have both the performance and the stability??? Nick Demou enLogic
All-Ireland Racing/Guinness Cycling Team
2001-May-07 21:46 UTC
Can I have oplocks enabled without problems?
Windows 95 has bugs in the oplock code. I'm not sure if Windows 98 continues that fine tradition or not, but from what you're saying it sure seems to. If you have any 95 machines on your network, turn off oplocks. The same may be the case for 98. You'll simply have to deal with the performance hit. -Bill -----Original Message----- From: Nick Demou <ndemou@enlogic.gr> To: samba List <samba@lists.samba.org> Date: Saturday, May 05, 2001 12:41 PM Subject: Can I have oplocks enabled without problems?>Hi, > >I used to have a win NT to serve small office networks comprised of windows >clients. During the last months I have made a considerable effort to learn >enough about linux in order to explore it's capabilities for that >application. In the area of file & print sharing samba still looks as the >best choice. I am using it in my office for some weeks now and I am quite >happy with it. Yet I had one problem regarding locking that troubled me a >lot (in fact the list helped me a lot in finding the solution): > >In my setup with RedHat 7.0 + Samba 2.2 I had to disable oplocks (set >oplocks = no) for shares containing databases (specificaly MS Access ones) >that were accessed simultaneously from more than one windows 98 clients. If >I left it enabled I was getting a lot of "access denied", "this file is >allready in use" and stuff like that. Disabling oplocks solves the problem >but according to the "Using samba" reference lowers performance. Hasanybody>any sugestions in order to have both the performance and the stability??? > >Nick Demou >enLogic > > >-- >To unsubscribe from this list go to the following URL and read the >instructions: lists.samba.org/mailman/listinfo/samba >
Never turn on oplocks for databases: NT auto-recognizes and turns them off for you, Samba has to be told. If you do, the first person to open the database will get an entire copy of it copied to their machine, to use locally. As soon as the second person logs on, though, the first one will be stopped (by an oplock break), will have to copy it all back to the server, and only then will be able to work. This produces HORRIBLE delays for the first two users, who will report the Samba server has bad performance. --dave -- David Collier-Brown, | Always do right. This will gratify Performance & Engineering Team | some people and astonish the rest. Americas Customer Engineering | -- Mark Twain (905) 415-2849 | davecb@canada.sun.com