[Samba] 32 bits limit?
infractory at gmail.com
Mon Jun 1 14:38:55 MDT 2015
Thank you all for these detailed answers. This size happened on DC where
the import were done. Database with Samba 4 was always significantly bigger
on this host than on the replicated ones. According to that I'll try the
dump trick which would also teach me some things : )
I'll came back after tests...
For LMDB the start seems to be there:
I'll read and try if I can (ie if I'm not too thick :p)
2015-06-01 22:06 GMT+02:00 Matthieu Patou <mat at samba.org>:
> 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
> Matthieu Patou
> Samba Team
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
More information about the samba-technical