Optimizing 5.0 to 6.0 LDAP upgrade: Difference between revisions

No edit summary
No edit summary
Line 5: Line 5:
==Pre-upgrade tuning==
==Pre-upgrade tuning==


When upgrading from ZCS 5.0.x to ZCS 6.0.x, the LDAP database is exported and then re-imported as the OpenLDAP and underlying database software have changed versions, requiring that this be done.  It is possible to optimize this process by increasing the resources available to OpenLDAP to perform this task before starting the upgrade.
When upgrading from ZCS 5.0.x to ZCS 6.0.x, the LDAP database is exported and then re-imported as the OpenLDAP and underlying database software have changed versions, requiring that this be done.  It is possible to optimize this process by increasing the resources available to OpenLDAP to perform this task before starting the upgrade. The primary way of doing this is to increase the number of threads slapadd can have available to it for indexing while importing the new database.  To modify the default value from 1 to the number of real cores on your server, do the following.  This example assumes you have 8 real cores available (4 dual core cpus, for example):
 
#Install 6.0 software only
./install.sh -s
# When this finishes, we want to update the olcToolThreads value
cd /opt/zimbra/openldap/etc/openldap/config
# Edit cn=config.ldif, and replace the value for olcToolThreads
olcToolThreads: 8
 
You will also want to ensure you have a correctly customized DB_CONFIG file.  It is advised to have this configured pre-upgrade.
 


==Extra schema migration==
==Extra schema migration==

Revision as of 00:06, 15 April 2009


LDAP customization

Pre-upgrade tuning

When upgrading from ZCS 5.0.x to ZCS 6.0.x, the LDAP database is exported and then re-imported as the OpenLDAP and underlying database software have changed versions, requiring that this be done. It is possible to optimize this process by increasing the resources available to OpenLDAP to perform this task before starting the upgrade. The primary way of doing this is to increase the number of threads slapadd can have available to it for indexing while importing the new database. To modify the default value from 1 to the number of real cores on your server, do the following. This example assumes you have 8 real cores available (4 dual core cpus, for example):

#Install 6.0 software only
./install.sh -s
# When this finishes, we want to update the olcToolThreads value
cd /opt/zimbra/openldap/etc/openldap/config
# Edit cn=config.ldif, and replace the value for olcToolThreads
olcToolThreads: 8

You will also want to ensure you have a correctly customized DB_CONFIG file. It is advised to have this configured pre-upgrade.


Extra schema migration

Jump to: navigation, search