Sun Java System Directory Server Enterprise Edition 6.0 Migration Guide

Using dsmig to Migrate the Schema

Directory Server 5.2 schema files are located in serverRoot/slapd-instance-path/config/schema. Directory Server 6.0 schema files are located in INSTANCE-PATH/config/schema.

Directory Server 6.0 provides a new schema file, 00ds6pwp.ldif, that contains new password policy attributes. In addition, certain configuration attributes have been added to 00core.ldif. Apart from these files, the standard schema files provided with Directory Server 6.0 are identical to those provided in 5.2.

To migrate the schema automatically, run the following command:

$ dsmig migrate-schema old-instance-path new-instance-path

When you run this command, any custom schema defined in the 99user.ldif file are copied to the new instance. If the new instance is already in production, and you have already modified the 99user.ldif file of the new instance, dsmig performs a best effort merge of the two files. Custom schema defined in any other files are also copied to the new instance.

During schema migration, all fractional replication information is moved from the schema files. Fractional replication must be redefined in the new instance.

For more information, see dsmig(1M).