[Samba] Samba4 on Ubuntu server
Andrew Bartlett
abartlet at samba.org
Tue Jan 6 19:20:39 MST 2015
On Tue, 2014-12-30 at 09:26 -0700, David Bear wrote:
> On 12/29/2014 12:52 AM, Andrew Bartlett wrote:
> > On Mon, 2014-12-22 at 14:33 -0700, Cj Tibbetts wrote:
> >> Here is the information requested
> >> it took 3 days before results came
> >> samba-tool dbcheck finished with this error
> >>
> >> root at ham1:/usr/local/samba/bin# time ./samba-tool dbcheck --cross-ncs
> >> Checking 212687 objects
> >> ERROR(<type 'exceptions.MemoryError'>): uncaught exception -
> >> File
> >> "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py",
> >> line 175, in _run
> >> return self.run(*args, **kwargs)
> >> File
> >> Segmentation fault (core dumped)
> >>
> >> real 1980m21.023s
> >> user 1408m48.304s
> >> sys 11m43.788s
> > 212000 objects is very large for Samba, but running out of memory isn't
> > a good idea either. We need to work on dbcheck to make it able to
> > continue working on such large databases, rather than blowing up.
> I don't know why we should have so many objects. We only have about 125
> machines joined to the the AD.
>
> We have about 800 persons objects.
>
> Something is indeed amis.
The internal DNS server had a bug which created an excessive number of
deleted objects.
> >
> > I'm assuming you have an exceedingly large DNS partition, due to the bug
> > in Samba 4.1 where we would create a new deleted object each time DNS
> > was updated.
> Are you suggesting that if we went with bind_dlz we might have better
> luck ? Or is there regular 'clean up' that we should be doing to remove
> old dns objects?
Current code, or using bind_dlz, and then some care to slowly expunge
the database is how folks have recovered from this on other sites.
> >
> > If a core file was really dumped, getting that into a debugger and
> > getting a bt full may be enlightening.
> Not sure at this point I can get a core dump. In a separate post to the
> list, I asked a question related to the AD sites and services tool. I'm
> wondering if that tool could have messed things up?
Probably not. It is just a massive DB.
Andrew Bartlett
--
Andrew Bartlett
http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
More information about the samba
mailing list