Gary MacKay
2007-Jun-22 15:54 UTC
[Samba] One file open or locked way too many times. How to fix?
A Windows 2000 Server is a member server of the domain. The domain server is CentOS 4.5 with all updates and Samba 3.0.24 built using the packaging/RHEL/makerpms.sh script. The W2k server is opening this file on the samba server. This problem started several versions of CentOS and Samba ago, and I did the upgrades thinking it would fix it. It did not. It seems to be "locking" or "opening" a file zillions of times and then finally starts throwing errors about "Too Many Files Open". I have all of the kernel, level2, and oplocks set to 'no' in the smb.conf file. The FD column starts out at 1uw and just grows until it reaches whatever 'open file' value I put in the /proc/sys/fs/file-max setting. Rebooting the W2k server or restarting samba fixes the problem for awhile. Never the same amount of time. Sometime it lasts days or weeks, other times only a few hours. <snip> smbd 4803 root 256uw REG 8,2 182 5128393 /usr/local/samba/fo/Goldmine/SyncLock.DBF smbd 4803 root 257uw REG 8,2 182 5128393 /usr/local/samba/fo/Goldmine/SyncLock.DBF smbd 4803 root 258uw REG 8,2 182 5128393 /usr/local/samba/fo/Goldmine/SyncLock.DBF smbd 4803 root 259uw REG 8,2 182 5128393 /usr/local/samba/fo/Goldmine/SyncLock.DBF smbd 4803 root 260uw REG 8,2 182 5128393 /usr/local/samba/fo/Goldmine/SyncLock.DBF smbd 4803 root 261uw REG 8,2 182 5128393 /usr/local/samba/fo/Goldmine/SyncLock.DBF smbd 4803 root 262uw REG 8,2 182 5128393 /usr/local/samba/fo/Goldmine/SyncLock.DBF smbd 4803 root 263uw REG 8,2 182 5128393 /usr/local/samba/fo/Goldmine/SyncLock.DBF smbd 4803 root 264uw REG 8,2 182 5128393 /usr/local/samba/fo/Goldmine/SyncLock.DBF smbd 4803 root 265uw REG 8,2 182 5128393 /usr/local/samba/fo/Goldmine/SyncLock.DBF smbd 4803 root 266uw REG 8,2 182 5128393 /usr/local/samba/fo/Goldmine/SyncLock.DBF smbd 4803 root 267uw REG 8,2 182 5128393 /usr/local/samba/fo/Goldmine/SyncLock.DBF smbd 4803 root 268uw REG 8,2 182 5128393 /usr/local/samba/fo/Goldmine/SyncLock.DBF smbd 4803 root 269uw REG 8,2 182 5128393 /usr/local/samba/fo/Goldmine/SyncLock.DBF smbd 4803 root 270uw REG 8,2 182 5128393 /usr/local/samba/fo/Goldmine/SyncLock.DBF smbd 4803 root 271uw REG 8,2 182 5128393 /usr/local/samba/fo/Goldmine/SyncLock.DBF smbd 4803 root 272uw REG 8,2 182 5128393 /usr/local/samba/fo/Goldmine/SyncLock.DBF smbd 4803 root 273uw REG 8,2 182 5128393 /usr/local/samba/fo/Goldmine/SyncLock.DBF </snip>
Gary
2007-Jun-28 14:17 UTC
[Samba] One file open or locked way too many times. How to fix?
bump? Gary MacKay wrote:> A Windows 2000 Server is a member server of the domain. The domain > server is CentOS 4.5 with all updates and Samba 3.0.24 built using the > packaging/RHEL/makerpms.sh script. The W2k server is opening this file > on the samba server. > > This problem started several versions of CentOS and Samba ago, and I did > the upgrades thinking it would fix it. It did not. > > It seems to be "locking" or "opening" a file zillions of times and then > finally starts throwing errors about "Too Many Files Open". I have all > of the kernel, level2, and oplocks set to 'no' in the smb.conf file. > > The FD column starts out at 1uw and just grows until it reaches whatever > 'open file' value I put in the /proc/sys/fs/file-max setting. Rebooting > the W2k server or restarting samba fixes the problem for awhile. Never > the same amount of time. Sometime it lasts days or weeks, other times > only a few hours. > > <snip> > > smbd 4803 root 256uw REG 8,2 182 5128393 > /usr/local/samba/fo/Goldmine/SyncLock.DBF > smbd 4803 root 257uw REG 8,2 182 5128393 > /usr/local/samba/fo/Goldmine/SyncLock.DBF > smbd 4803 root 258uw REG 8,2 182 5128393 > /usr/local/samba/fo/Goldmine/SyncLock.DBF > smbd 4803 root 259uw REG 8,2 182 5128393 > /usr/local/samba/fo/Goldmine/SyncLock.DBF > smbd 4803 root 260uw REG 8,2 182 5128393 > /usr/local/samba/fo/Goldmine/SyncLock.DBF > smbd 4803 root 261uw REG 8,2 182 5128393 > /usr/local/samba/fo/Goldmine/SyncLock.DBF > smbd 4803 root 262uw REG 8,2 182 5128393 > /usr/local/samba/fo/Goldmine/SyncLock.DBF > smbd 4803 root 263uw REG 8,2 182 5128393 > /usr/local/samba/fo/Goldmine/SyncLock.DBF > smbd 4803 root 264uw REG 8,2 182 5128393 > /usr/local/samba/fo/Goldmine/SyncLock.DBF > smbd 4803 root 265uw REG 8,2 182 5128393 > /usr/local/samba/fo/Goldmine/SyncLock.DBF > smbd 4803 root 266uw REG 8,2 182 5128393 > /usr/local/samba/fo/Goldmine/SyncLock.DBF > smbd 4803 root 267uw REG 8,2 182 5128393 > /usr/local/samba/fo/Goldmine/SyncLock.DBF > smbd 4803 root 268uw REG 8,2 182 5128393 > /usr/local/samba/fo/Goldmine/SyncLock.DBF > smbd 4803 root 269uw REG 8,2 182 5128393 > /usr/local/samba/fo/Goldmine/SyncLock.DBF > smbd 4803 root 270uw REG 8,2 182 5128393 > /usr/local/samba/fo/Goldmine/SyncLock.DBF > smbd 4803 root 271uw REG 8,2 182 5128393 > /usr/local/samba/fo/Goldmine/SyncLock.DBF > smbd 4803 root 272uw REG 8,2 182 5128393 > /usr/local/samba/fo/Goldmine/SyncLock.DBF > smbd 4803 root 273uw REG 8,2 182 5128393 > /usr/local/samba/fo/Goldmine/SyncLock.DBF > > </snip> > >
Adam Tauno Williams
2007-Jun-29 17:55 UTC
[Samba] One file open or locked way too many times. How to fix?
On Thu, 2007-06-28 at 10:16 -0400, Gary wrote:> bump? > > smbd 4803 root 256uw REG 8,2 182 5128393 > > /usr/local/samba/fo/Goldmine/SyncLock.DBFLooks like Goldmine! :) We have a goldmine database on a Samba .0.22-13.18 (openSUSE 10.1) server. No problems. sardine:~ # smbstatus| grep -i gold | grep -i sync 24710 DENY_NONE 0x2019f RDWR EXCLUSIVE +BATCH /srv/cifs/goldmine Program Files/GoldMine/SyncTask.DBF Fri Jun 29 02:06:54 2007 24710 DENY_NONE 0x2019f RDWR EXCLUSIVE +BATCH /srv/cifs/goldmine Program Files/GoldMine/SyncLock.DBF Fri Jun 29 02:06:54 2007 24710 DENY_NONE 0x2019f RDWR EXCLUSIVE +BATCH /srv/cifs/goldmine Program Files/GoldMine/SyncTask.MDX Fri Jun 29 02:06:54 2007 -- Adam Tauno Williams, Network & Systems Administrator Consultant - http://www.whitemiceconsulting.com Developer - http://www.opengroupware.org