[Samba] Upgrade broke file locking
adam at morrison-ind.com
adam at morrison-ind.com
Tue Aug 20 04:23:01 GMT 2002
Prior to upgrading from RH7.0 to RH7.3 our Samba filserver worked perfectly.
Now we are having locking problems. Initially Iused the same samba binaries
built on RH70, I tried rebuilding Samba and reinstalling but it had no effect.
If user bon opens an M$-Office file they frequently get a 'file is already in
use by bob'. Sure enough smbstatus -L shows the file locked by bob, but bob is
the one that can't open it. And if bob shuts down his computer the lock seems
to hang around for a bit. And the same file will continue to exhibit the same
behavior, even after reboots of the client PC (mostly winY2k boxes). Has anyone
seen anything like this?
System
-------------------
Distro: RedHat 7.3
Kernel: 2.4.18-3smp
Glibc: 2.2.5-39
GCC: 2.96-112
GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
GCC: gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-112)
Samba:
-------------------
Version: 2.2.5 with patches from ftp://ftp.samba.org/pub/jerry/patches/post-2.2.5
Built into an RPM with the folloein ./configure option in the spec file -
--prefix=%{prefix} --localstatedir=/var --with-configdir=/etc/samba
--with-privatedir=/etc/samba --with-codepagedir=/etc/codepages \
--with-fhs --with-quotas --with-msdfs --with-smbmount --with-pam \
--with-pam_smbpass --with-syslog --with-utmp
--with-sambabook=%{prefix}/share/swat/using_samba \
--with-swatdir=%{prefix}/share/swat --with-libsmbclient
Built on the same machine it is running on.
Hardware:
-------------------
Box: IBM Netfinity 5500
CPU: Dual Pentium II (Deschutes) 450MHz 512 KB stepping level 3
SCSI: ServeRAID II BIOS 4.50.05 Firmware 2.88.13 Driver 4.90.18
RAM: 1Gb
Modified system parameters:
---------------------------
kernel.sysrq = 0
fs.file-max = 32767
fs.inode-max = 65535
vm.freepages = 768 2048 4096
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 4194304
net.ipv4.ip_always_defrag = 0
net.ipv4.conf.all.rp_filter = 1
net.ipv4.ip_forward = 0
Global section of smb.conf and a sample share
---------------------------------------------
[global]
workgroup = BACKBONE
server string = NT v6 File Server
security = server
encrypt passwords = Yes
hosts equiv = /etc/samba/hosts.equiv
password server = littleboy
time server = Yes
lpq cache time = 30
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
domain admin group = @cis
log file = /var/log/samba/log.%m
debug level = 1
remote announce = 192.168.10.255/BACKBONE
os level = 100
wins server = littleboy
guest account = pcnet
invalid users = root
include = /etc/samba/smb.conf.%m
printer admin = @cis
veto files = /trash/
[sls_data]
comment = Department Data Share
path = /usr/pcnet/deptdata/sales
admin users = @cis
force group = sales
writeable = Yes
force create mode = 0660
force directory mode = 0770
guest ok = Yes
oplocks = No
vfs object = /usr/lib/samba/vfs/recycle.so
vfs options = /etc/samba/recycle.conf
preexec = /etc/samba/make_trashcan.sh %U
More information about the samba
mailing list