HostSEO Blog

Stories and News from IT Industry, Reviews & Tips | Technology Blog


[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

SatSunMonTueWedThuFri
 123456
78910111213
14151617181920
21222324252627
28293031 

Born in 2004 ... Trusted By Clients n' Experts

SEO Stars

They never made me feel silly for asking questions. Help me understand how to attract more people and improve my search engine ranking.

Read More

Emily Schneller Manager at Sabre Inc
SEO Stars

Took advantage of Hostseo's superb tech support and I must say, it is a very perfect one. It is very fast, servers reliability is incredible.

Read More

Leena Mäkinen Creative producer
SEO Stars

We're operating a worldwide network of servers with high quality standards requirements, we’ve choose hostseo to be our perfect partner.

Read More

Ziff Davis CEO at Mashable
SEO Stars

It’s very comfortable to know I can rely about all technical issues on Hostseo and mostly that my website and emails are safe and secured here.

Read More

Isaac H. Entrepreneur
SEO Stars

With hostseo as a hosting partner we are more flexible and save money due to the better packages with great pricing, free SEO n' free SSL too!

Read More

Madeline E. Internet Professional