On Tue, Nov 19, 2024, at 3:35 PM, Douglas Bagnall wrote:> On 19/11/24 02:27, Dan Langille via samba wrote:
>> On Wed, Nov 13, 2024, at 4:30 PM, Dan Langille via samba wrote:
>>> Hello,
>>>
>>> I'm using samba416-4.16.11 on FreeBSD 14.1 (on ZFS, in a jail,
with
>>> quotas on those filesystems, etc)
>>>
>>> I'm seeing these entries in my logs. Is this something which
needs
>>> action? If not, I'll start ignoring them.
>>>
>>> Nov 11 19:00:45 tm samba-dcerpcd[7373]: [2024/11/11
19:00:45.852391,
>>> 0] ../../lib/tdb_wrap/tdb_wrap.c:65(tdb_wrap_log)
>>> Nov 11 19:00:45 tm samba-dcerpcd[7373]:
>>> [...]
>>
>> The following is just one of the 343,930 log entries over a one hour
period (about 95 messages per second).
>>
>> Nov 18 12:00:00 tm smbd[70983]: [2024/11/18 12:00:00.027823, 0]
../../lib/tdb_wrap/tdb_wrap.c:65(tdb_wrap_log)
>> Nov 18 12:00:00 tm smbd[70983]: tdb(/var/db/samba4/gencache.tdb):
tdb_expand overflow detected current map_size[4294967295] size[128]!
>
> Is the file system size of /var/db/samba4/gencache.tdb also 4294967295?
The latest message is:
Nov 19 22:45:31 tm smbd[9742]: [2024/11/19 22:45:31.622727, 0]
../../lib/tdb_wrap/tdb_wrap.c:65(tdb_wrap_log)
Nov 19 22:45:31 tm smbd[9742]: tdb(/var/db/samba4/gencache.tdb): tdb_expand
overflow detected current map_size[4294967295] size[128]!
The file size is close
[22:44 tm dvl ~] % ls -l /var/db/samba4/gencache.tdb
-rw-r--r-- 1 root wheel 4295049215 2024.11.18 13:26 /var/db/samba4/gencache.tdb
4295049215-4294967295 = 81,920
> I think something outside of tdb must be causing this to go haywire.
>
> What are the last messages before this starts happening?
The original messages are long scrolled off the rotated files. However, I just
restarted samba:
Nov 19 22:52:55 tm nmbd[67807]: Got SIGTERM: going down...
Nov 19 22:52:55 tm nmbd[35373]: [2024/11/19 22:52:55.570689, 0]
../../source3/nmbd/nmbd.c:901(main)
Nov 19 22:52:55 tm nmbd[35373]: nmbd version 4.16.11 started.
Nov 19 22:52:55 tm nmbd[35373]: Copyright Andrew Tridgell and the Samba Team
1992-2022
Nov 19 22:52:55 tm smbd[35377]: [2024/11/19 22:52:55.674339, 0]
../../source3/smbd/server.c:1741(main)
Nov 19 22:52:55 tm smbd[35377]: smbd version 4.16.11 started.
Nov 19 22:52:55 tm smbd[35377]: Copyright Andrew Tridgell and the Samba Team
1992-2022
Nov 19 22:52:56 tm smbd[35379]: [2024/11/19 22:52:56.132117, 0]
../../lib/tdb_wrap/tdb_wrap.c:65(tdb_wrap_log)
Nov 19 22:52:56 tm smbd[35379]: tdb(/var/db/samba4/gencache.tdb): tdb_expand
overflow detected current map_size[4294967295] size[128]!
Nov 19 22:52:56 tm smbd[35379]: [2024/11/19 22:52:56.132256, 0]
../../lib/tdb_wrap/tdb_wrap.c:65(tdb_wrap_log)
Nov 19 22:52:56 tm smbd[35379]: tdb(/var/db/samba4/gencache.tdb): tdb_expand
overflow detected current map_size[4294967295] size[128]!
Nov 19 22:53:28 tm nmbd[35374]: [2024/11/19 22:53:28.398364, 0]
../../source3/nmbd/nmbd_become_lmb.c:398(become_local_master_stage2)
Nov 19 22:53:28 tm nmbd[35374]: *****
Nov 19 22:53:28 tm nmbd[35374]:
Nov 19 22:53:28 tm nmbd[35374]: Samba name server TM is now a local master
browser for workgroup TIMEMACHINE on subnet 10.0.0.65
Nov 19 22:53:28 tm nmbd[35374]:
Nov 19 22:53:28 tm nmbd[35374]: *****
At present:
[22:54 tm dvl ~] % ls -l /var/db/samba4/gencache.tdb
-rw-r--r-- 1 root wheel 4295049215 2024.11.19 22:52 /var/db/samba4/gencache.tdb
Hope that helps.
--
Dan Langille
dan at langille.org