[Samba] 32 bits limit?
Matthieu Patou
mat at samba.org
Mon Jun 1 14:06:57 MDT 2015
On 06/01/2015 05:09 AM, mathias dufresne wrote:
> Hi all,
>
> Still playing with a big database (120k users, 150k computers) I tried to
> split my users into a lot of OUs. This increased the database size and I
> was not able to finish to add users into the DB because database file has
> reached 4GB size which seems to be the limit.
>
> First: am I right to say file
> /var/lib/samba/private/sam.ldb.d/DC=example,DC=com.ldb has a maximum size
> of 4GB?
You are right.
> Secondly: if I'm right about the size limit, why this size limit?
TDB is still using 32bits structures, we had a project called NTDB that
was copping with this issue and other issues we had in TDB as we found
other way to solve the TDB issues (but the size) we have dropped the
work on NTDB as there was some issues on how to manage the migration.
In order to compact your database you might want to dump it to a file:
tdbdump <file.ldb> > dump_sam.ldb and then restore it to a *new* ldb and
see if it improves the size.
You should also check if you have any deleted object by doing a
ldbsearch with isDeleted=*, and purge all the deleted objects (but the
deleted object container).
--
Matthieu Patou
Samba Team
http://samba.org
More information about the samba-technical
mailing list