zimbra 80 gb ldap data.mdb

I have found this solution on zimbra forum.

As my experience this is solution is working successfully at first time but when i use this second time, this reduce the ldap database size but ldap service was not started.

for best solution use mdb_copy command which is recommend by zimbra.

# update database size
zmlocalconfig -e ldap_db_maxsize=67108864

# update log size
zmlocalconfig -e ldap_accesslog_maxsize=536870912

# allow time for zmconfigd to apply new setting (as suggested by Quanah)
sleep 90

# stop slapd
ldap stop

# change to database directory
cd /opt/zimbra/data/ldap/mdb/db

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

# move 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

# start slapd
ldap start

# archive original
gzip data.mdb.old

Advertisements

About bpn4it

Feel Free in Linux. Bipin Patel bpn4it@gmail.com Ahmadabad, Gujarat, India
This entry was posted in Uncategorized and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s