Zimbra data.mdb

De Linux Server Wiki
Aller à la navigation Aller à la recherche
su - zimbra
zmlocalconfig -s ldap_db_maxsize
ldap_db_maxsize = 85899345920
zmlocalconfig -s ldap_accesslog_maxsize
ldap_accesslog_maxsize = 85899345920
cd /opt/zimbra/data/ldap/mdb/db 
su zimbra
stop ldap
/opt/zimbra/libexec/zmslapcat /opt/zimbra/data/ldap/mdb/db
mv data.mdb data.mdb.old
/opt/zimbra/common/sbin/slapadd -q -b "" -F /opt/zimbra/data/ldap/config -l /opt/zimbra/data/ldap/mdb/db/ldap.bak
start ldap
ls -alsh


  • 824K -rw------- 1 zimbra zimbra 80G Jul 16 14:26 data.mdb
  • 81G -rw------- 1 zimbra zimbra 80G Jul 16 13:41 data.mdb.old

Désormais, data.mdb est a nouveau un fichier sparse