Symas OpenLDAP Knowledge Base

Reduce MDB File Size

  1. Stop Solserver/Slapd

     sudo /opt/symas/etc/solserver stop 
     Or
     sudo service solserver stop 
     Or
     sudo systemctl stop solserver.service 
  2. Use MDB_Copy to make a non-sparse copy of the Database

     mdb_copy /var/symas/openldap-data/<database>/ /tmp/backup/<database>/
  3. Remove existing .mdb files from /var/symas/openldap-data/

     sudo rm -rf /var/symas/openldap-data/<database>/*.mdb 
  4. Replace with MDB_Copy created .mdb files

     sudo cp /tmp/backup/<database>/*.mdb /var/symas/openldap-data/<database>/
  5. Start Solserver/Slapd

     sudo /opt/symas/etc/solserver start 
     Or
     sudo service solserver start 
     Or
     sudo systemctl start solserver.service