[SOLVED]CRITICAL! LDAP primary MDB database is 90% full in Zimbra

You may get this type errors as email in the zimbra admin email account. This was related with the zimbra 8.x changes in ldap db configuration. You may probably see this issue during a zimbra migration or restore task
First check the following values in your zimbra

#su - zimbra
#zmlocalconfig -s ldap_db_maxsize
ldap_db_maxsize = 85899345920
#zmlocalconfig -s ldap_accesslog_maxsize
ldap_accesslog_maxsize = 85899345920

You can see the db size and accesslog size is same that is 80 GB , Now please setup the size as follows,

# zmlocalconfig -e ldap_db_maxsize=85899345920

# zmlocalconfig -e ldap_accesslog_maxsize=10737418240

Give some time for applying the changes

# sleep 90

Now stop slapd

# ldap stop

Go to database directory

# cd /opt/zimbra/data/ldap/mdb/db

Take a backup of ldap database

# /opt/zimbra/libexec/zmslapcat /opt/zimbra/data/ldap/mdb/db

Rename the original db to .old

# mv data.mdb data.mdb.old

Recreate database with new size and restore from backup

# /opt/zimbra/openldap/sbin/slapadd -q -b "" -F /opt/zimbra/data/ldap/config -l /opt/zimbra/data/ldap/mdb/db/ldap.bak

Now start slapd

# ldap start

Tar the original if you need

# gzip data.mdb.old

The above will fix your issue

Subscribe Now

10,000 successful online businessmen like to have our content directly delivered to their inbox. Subscribe to our newsletter!

Archive Calendar

Sat Sun Mon Tue Wed Thu Fri
 1234
567891011
12131415161718
19202122232425
262728293031  

Over 20000 Satisfied Customers!

From 24/7 support that acts as your extended team to incredibly fast website performance

Zelt staff were fantastic, I had a concern with a domain and they got back to me very quickly and they helped me to resolve the issue!

author
Technician, Diageo PLC

I'm using Zelt for my portfolio since 2006. The transition was seamless, the support was immediate, and everything works perfectly.

author
Photographer, Allister Freeman

Very easy to understand & use even though I am not very technologically minded. No complications whatsoever & I wouldn't hesitate to recommend it to all.

author
Actor, A&J Artists

Zelt support team have been amazingly responsive and helpful to any of my queries, thank you so much to the Zelt have been amazingly responsive and helpful to any of my queries ๐Ÿ‘๐Ÿ‘๐Ÿ‘

author
Technician, Diageo PLC

Anytime I've had a problem I can't solve, I've found Zelt to be diligent and persistent. They simply won't let an issue go until the client is happy.

author
Doctor, SmartClinics

Zelt support team have been amazingly responsive and helpful to any of my queries, thank you so much to the Zelt have been amazingly responsive and helpful to any of my queries ๐Ÿ‘๐Ÿ‘๐Ÿ‘

author
Freelancer, Fiverr

24/7 World-Class Support

Ran into trouble? Contact our Customer Success team any time via live chat or email.

  • Receive professional WordPress support
  • Our specialists are available round
Get Support