[cifs-protocol] Filelock using SAMBA and XP / process not terminated
Stefan Lubitz
Stefan.Lubitz at mackevision.de
Fri Mar 18 08:17:58 MDT 2011
Hi everybody,
I posted this already to the samba list, but no one answered........
Since a few weeks we have a very strange behavior.
It happens from time to time that the Samba Server is not closing the process after an XP Client (XP64 SP2) has connected to a file.
If I want to rename a file or see the permission of it, my XP Client stops responding. After some minutes or sometimes hours, the File will be accessible again.
I can use smbstatus to see which client keeps the file open (smbstatus -L | grep filename). If I kill the process, then I can rename the file again. Rebooting the Client won't help.
This Error appears after the following changes:
1. Move the XP Clients to an ActiveDirectory Domain (w2k8)
2. Use new Network Switches
And it appears on different Samba Servers (some authenticate to AD some to an old LDAP).
Hopefully someone has an Idea what could be wrong or what to do to avoid this situation.
Here are some informations:
storage2:~# smbstatus -L | grep 0058.exr
12274 10046 DENY_NONE 0x20196 WRONLY EXCLUSIVE+BATCH /serv1/samba/STR-1011-00367-VW SCENE_010/SHOT_0010_000/RENDER/3D/FINAL_LAYERS/MACKELAYER/CONV/VW_324_Beetle_Wheels_ALLOY_WHEEL_7JX17_ET43_Mirror_conv.0058.exr Fri Mar 18 12:58:32 2011
12274 10046 DENY_NONE 0x20089 RDONLY EXCLUSIVE+BATCH /serv1/samba/STR-1011-00367-VW SCENE_010/SHOT_0010_000/RENDER/3D/FINAL_LAYERS/MACKELAYER/VW_324_Beetle_Wheels_ALLOY_WHEEL_7JX17_ET43_Mirror.0058.exr Fri Mar 18 12:58:30 2011
storage2:~# smbstatus -p | grep 12274
12274 node64 Domain Users render97 (192.168.103.97)
storage2:~# lsof | grep 12274
...
smbd 12274 node64 5u IPv4 1084872 TCP storage2.lan.mackevision.de:microsoft-ds->render97.lan.mackevision.de:2029 (ESTABLISHED)
smbd 12274 node64 6w REG 8,1 5 1524987 /var/run/samba/smbd.pid
smbd 12274 node64 7u REG 8,1 1761280 1524985 /var/run/samba/messages.tdb
smbd 12274 node64 8u REG 8,1 303104 1524988 /var/run/samba/sessionid.tdb
smbd 12274 node64 9u REG 8,1 245760 1524989 /var/run/samba/connections.tdb
smbd 12274 node64 10u REG 8,1 49152 1524990 /var/run/samba/brlock.tdb
smbd 12274 node64 11u REG 8,1 2719744 1524991 /var/run/samba/locking.tdb
smbd 12274 node64 12u REG 8,1 8192 1524986 /var/run/samba/gencache.tdb
smbd 12274 node64 13u REG 8,1 8192 1524946 /var/lib/samba/ntdrivers.tdb
smbd 12274 node64 14u REG 8,1 8192 1524940 /var/lib/samba/group_mapping.tdb
smbd 12274 node64 15u REG 8,1 8192 1524942 /var/lib/samba/account_policy.tdb
smbd 12274 node64 16u REG 8,1 8192 1524947 /var/lib/samba/ntprinters.tdb
smbd 12274 node64 17u REG 8,1 696 1524948 /var/lib/samba/ntforms.tdb
smbd 12274 node64 18rW REG 8,33 3880577 10150877 /serv1/samba/STR-1011-00367-VW/SCENE_010/SHOT_0010_000/RENDER/3D/FINAL_LAYERS/MACKELAYER/VW_324_Beetle_Wheels_ALLOY_WHEEL_7JX17_ET43_Mirror.0058.exr
smbd 12274 node64 19r FIFO 0,6 1084873 pipe
smbd 12274 node64 20w FIFO 0,6 1084873 pipe
smbd 12274 node64 21r FIFO 0,6 6750 pipe
smbd 12274 node64 22w FIFO 0,6 6750 pipe
smbd 12274 node64 23u REG 8,1 8192 1525008 /var/run/samba/share_info.tdb
smbd 12274 node64 24u REG 8,1 196608 3670129 /var/cache/samba/netsamlogon_cache.tdb
smbd 12274 node64 25r REG 8,33 8128 10143973 /serv1/samba/STR-1011-00367-VW/_GEN_GLOBAL/3D_3DSMAX/SCENES/HUGO_RENDERJOBS/STR-1011-00367-VW_VW_324_Beetle_Wheels_ALLOY_WHEEL_7JX17_ET43_Mirror__1716.ms
smbd 12274 node64 26uW REG 8,33 479232 10150906 /serv1/samba/STR-1011-00367-VW/SCENE_010/SHOT_0010_000/RENDER/3D/FINAL_LAYERS/MACKELAYER/CONV/VW_324_Beetle_Wheels_ALLOY_WHEEL_7JX17_ET43_Mirror_conv.0058.exr
smbd 12274 node64 27w REG 8,1 5477934 3670091 /var/log/samba/log.node64 (deleted)
....
I am using Debain Systems (one Ubuntu Server).
Samba Version 3.0.24 and 3.4.7 (on the Ubuntu)
This is my smb.conf:
netbios name = storage2
workgroup = mackevision
wins server = 192.168.105.50
server string = Storage Server 2 (%v)
hosts allow = 192.168.
security = domain
encrypt passwords = yes
password server = PDC
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = 192.168.102.2/24 192.168.101.2/24 192.168.103.2/24
bind interfaces only = yes
log level = 0
log file = /var/log/samba/log.%U
max log size = 10000
null passwords = no
hide unreadable = yes
hide dot files = yes
dos charset = 850
dos filemode = yes
unix charset = ISO8859-1
domain master = no
local master = no
preferred master = yes
os level = 2
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
smb ports = 445
Regards,
Stefan
Stefan Lubitz
Head of IT Stuttgart - Munich - Detroit
_________________________________________________________
MACKEVISION
Medien Design GmbH, Stuttgart
Forststraße 7
D - 70174 Stuttgart
Tel.: +49 (0) 711 / 933 048-98
Fax.: +49 (0) 711 / 933 048-90
stefan.lubitz at mackevision.de<mailto:stefan.lubitz at mackevision.de>
www.mackevision.de<http://www.mackevision.de/>
Geschäftsführer: Armin Pohl, Joachim Lincke
HRB 243735 Amtsgericht Stuttgart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/cifs-protocol/attachments/20110318/8da58d1a/attachment.html>
More information about the cifs-protocol
mailing list