# 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
среда, 19 марта 2014 г.
zimbra CRITICAL DATABASE ALERT LDAP primary MDB database is 90% full
Подписаться на:
Сообщения (Atom)