In Directory Server 5.2, data is stored in serverRoot/slapd-instance-name/db. Directory Server 6.3 stores user data in instance-path/db.
To migrate data automatically, run the following command:
$ dsmig migrate-data old-instance-path new-instance-path
All suffixes are migrated by default, except the o=netscapeRoot suffix. dsmig copies the data, the indexes, and the transaction logs. The database context, that is, the state of the database, is not migrated.
In the new Directory Server administration model, there is no Configuration Directory Server. This means that the o=netscapeRoot suffix is no longer relevant, unless your deployment includes Identity Synchronization for Windows. By default, dsmig does not migrate the o=netscapeRoot database, unless specifically requested. To migrate the o=netscapeRoot database, use the -N option with the migrate-data subcommand.
For more information, see dsmig(1M).
During data migration, Directory Server checks whether nested group definitions exceed 30 levels. Deep nesting can signify a circular group definition, where a nested group contains a group that is also its parent. When a group with more than 30 nesting levels is encountered, Directory Server stops calculating the isMemberOf attributes for additional levels.
Each time this happens, Directory Server logs an error. You safely ignore these errors, although you should examine the definition of the group mentioned in the error message for potential circular definitions.
After running dsmig migrate-data, if the error log of new instance contains lots of error messages, refer to the following steps:
Stop all the Directory Server running instances.
Remove nsslapd-infolog-area and nsslapd-infolog-level completely from the dse .ldif file.
Start the Directory Server instances.
After the migration process, if you get an error while changing your password using the ldapmodify command, refer to the following steps:
Check pwd-compat-mode using the following command:
dsconf get-server-prop pwd-compat-mode
If pwd-compat-mode is set to DS-6 mode, you must use the pwdPolicy objectclass while changing the password using the ldapmodify command.