[Samba] One file open or locked way too many times. How to fix?
Aaron Kincer
kincera at gmail.com
Thu Jun 28 16:01:33 GMT 2007
I saw similar behavior with Access. The issue is now gone and it just so
happened to coincide with when I fixed some ACL and DOS attribute
issues. I did this by turning off the map archive, map hidden, map read
only, and map system settings and used nt acl support, ea support and
store dos attributes instead. I don't know if this was what fixed the
issue or not, but after I resolved the ACL issue and turned off the
mapping of all the dos attributes, the problem disappeared. I wish I
could have done some exhaustive testing to know if this was the fix, but
my primary goal was to fix the ACLs. Once I did that and the Access
issue went away, I decided not to spend time chasing it unless the
problem came up again.
In my log files, I saw repetitive and very rapid opening and closing of
the database file (watched via tail -f). The opening and closing only
happened as the database was being modified (i.e. they were typing
inside an Access form). Not sure if that is the kind of behavior you are
seeing. Merely having the database open didn't cause the issue.
Gary S MacKay wrote:
> It is not a FoxPro app, but it does use dBase (FoxPro) style tables. I
> have had the settings you mention in the config from the beginning. I also
> have kernel oplocks = no. Should that one be 'yes' ??
>
> - Gary
>
>
> Alex Crow said:
>
>> 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>
>>>>
>>>>
>>>>
>
>
> Edison Information Technologies www.EdisonInfo.com
> P.O. Box 554 Gary at EdisonInfo.com
> Milan, OH 44846-0554 419.499.7040
> 800.874.7128
>
More information about the samba
mailing list