[Samba] One file open or locked way too many times. How to fix?

Alex Crow acrow at integrafin.co.uk
Thu Jun 28 15:13:41 GMT 2007


Gary,

Is that FoxPro?

We had something like that back when we used it but it turned out to be
something in the FP code.

Our settings for locking were:
    oplocks = no
    level2 oplocks = no

And until we got rid of Fox we never had any issues with those.

Cheers

Alex


On Thu, 2007-06-28 at 10:16 -0400, Gary wrote:
> 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>
> > 
> > 
> 
-- 
This message is intended only for the addressee and may contain 
confidential information.  Unless you are that person, you may not 
disclose its contents or use it in any way and are requested to delete 
the message along with any attachments and notify us immediately. 

"Transact" is operated by Integrated Financial Arrangements plc 
Domain House, 5-7 Singer Street, London  EC2A 4BQ 
Tel: (020) 7608 4900 Fax: (020) 7608 1200
(Registered office: as above; Registered in England and Wales under
number: 3727592) 
Authorised and regulated by the Financial Services Authority (entered on
the FSA Register; number: 190856)




More information about the samba mailing list