Samba 2.2.2 and W2k file locking (Lotus Notes)

cwood at wencor.com cwood at wencor.com
Fri Jan 11 14:45:08 GMT 2002


When I go in and view my [homes] share in SWAT, it says that oplocks is
YES, locking is Yes, etc.  I then click Commit Changes and assume those are
really set.  After spending a week tracking down a problem, I discovered if
I open the smb.conf file directly, that these settings are NOT really being
set or saved.

If I edit the smb.conf file and add them, ANY changes to ANY share in SWAT
will result in them being lost when Commit Changes is clicked in SWAT.  Am
I misunderstanding how these settings are supposed to be done?  Is SWAT
broken?

Also, will lock settings fix the following problem?

--- History of this question --
The last week I have been fighting a battle trying to figure out a problem
I have been having with a  new Lotus Notes installation.  After getting a
lot of help from a Citrix group, I used the filemon utility to figure out
where Notes was crashing out.  Filemon indicated a locking error on a file
on the user share.  This should be impossible because each user share
should be exclusive to each user.  (Note that these are Citrix/Terminal
Server users so they are on the same server and attaching to the same SAMBA
server but seperate user shares.)

I then decided to move the data from the samba share to a W2k PDC server
and make two shares over there to test my problem.  When I started copying
from h:\notes\data to i:\notes\data (h: being samba and i: being w2k), I
then got a file sharing error on desktop5.dsk.  Each user has this file in
h:\notes\data\.  Again, this user didn't have Notes open to cause a sharing
violation, but another Citrix user DID have notes open in their OWN home
directory.  I verified this same error with a third user.  All three files
were different sizes and physically different files, but the windows server
was seeing or pointing to them as only one or as a sharing violation
because of their identical names.

This lead me to starting this email which caused me to look at the smb.conf
so I could cut and paste my settings:
[homes]
      comment = Home Directories
      path = /home/%S
      read only = No

I have since added the locking options as follows:
[homes]
      comment = Home Directories
      path = /home/%S
      read only = No
      oplocks = Yes
      blocking locks = Yes
      locking = Yes
      level2 oplocks = Yes
      posix locking = Yes

----
Data General Unix Server (DG/UX 4.2mu05)
Samba 2.2.2

Windows 2000 Terminal Servers / Citrix Metaframe 1.8

-=-=-=-=-=-
Chris Wood
801-489-2097
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-






More information about the samba mailing list