It is trivial.
Originally Posted by winepress
Do the following as the zimbra user:
Change the LC key for the max size of the database. Let zmconfigd push that to the OpenLDAP config DB (just watch zimbra.log).
After that is done, stop ldap, zmslapcat your DB, move /opt/zimbra/data/ldap/mdb aside, recreate /opt/zimbra/data/ldap/mdb/db
Re-run slapadd to reload your DB. It will now only show an allocation of MAXSIZE
Make sure maxsize is large enough to hold your DB + plenty of room for growth.
Zimbra :: the leader in open source messaging and collaboration