[Samba] FILE LOCK PROBLEM

Edilson Carlos Belluomini
Wed, 08 Sep 2004 17:06:55 -0000

Hello,

I'm not a list subscriber, so please send messages to
edilson@maxihelp.com.br

First of all, sorry about my bad English.

I'm trying to use a Linux box with samba 3.0.4 configured as an standalone
file server.

I have a Cobol application (AcuCobol) that is running ok on Windows 98
workstations, with data files at Linux.

When I try to run the same application on a Windows 2000 / XP workstation,
the application starts to run, but suddenly it stops working and the cursor
becomes an hourglass. I think that it is because the workstation is waiting
for liberation of a file.

When I start the same application on a Windows 98 workstation at the same
option, the Windows 2000 workstation starts to run again, but it stops again
later (I think that it's because another workstation locks a file).

I tried to disable oplocks at samba and at Windows 2000, but it don't solve
the problem

The same behaviour occurred when I try to use RedHat 9 (Samba 2.2.7a).

When I start running this application with data files on a Windows 2000
Server, it works fine, so for a while :-{
I would have to let the data files on a Windows 2000 Server.

I really need some help. How can I diagnose this problem ?

Please, help me.


I'm using the above smb.conf:

[global]
workgroup = XXXXX
netbios name = yyyyy
server string = Linux SMB Server
large readwrite = yes
max xmit = 65535
dns proxy = no
printing = cups
local master = no
os level = 70
debug level = 1
printcap name = cups
security = user
add machine script = /usr/sbin/adduser -n -r -g machines -c "Samba
machine" -d /dev/null -s /bin/false %u
getwd cache = yes
max log size = 50
log file = /var/log/samba/%m.log
read raw = yes
load printers = yes
smb passwd file = /etc/samba/smbpasswd
write raw = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8576 SO_RCVBUF=8192
deadtime = 15
client use spnego = yes
username map = /etc/samba/smbusers
interfaces = 192.168.1.1/255.255.255.0
encrypt passwords = yes
winbind use default domain = no
oplock break wait time = 10
passdb backend = smbpasswd
template shell = /bin/false
wins support = yes
preferred master = no
domain logons = no
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431

[print$]
path = /var/lib/samba/drivers
guest ok = yes
browseable = yes
read only = yes
write list = root

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
printer admin = root

[apli]
comment = Diretorio do Sistema
path = /vv/apli
valid users = @vila
public = no
browseable = yes
writable = yes
printable = no
directory mode = 2770
create mask = 0770
create mode = 0770
force create mode = 0770
force directory mode = 2770
force group = vila
# veto oplock files = /*.DAT/*.dat/*.DAD/*.dad/
oplocks = no
level2 oplocks = no

Thanks for any help that can be provided.

Edilson Carlos Belluomini
edilson@maxihelp.com.br