Sun Microsystems 8190994 Server User Manual


 
Migrating User Data Manually
If your topology does not support automatic data migration, you must migrate the data
manually. This involves exporting the data from the existing instance and re-importing it to the
new instance.
To migrate data manually from an existing version 5 instance, perform the following steps:
1. If you already have data in the new instance, back up any conicting suxes in the new
instance.
2. If you are migrating a master server instance in a replicated topology, make sure that the
master is synchronized with all servers that are direct consumers of that master.
It is not possible to migrate the change log manually. A new change log is created in the 6.0
instance.
3. Export the required suxes to LDIF by using the db2ldif command. This command
exports all the sux contents to an LDIF le, when the server is either running or stopped.
The following example exports two suxes to a single LDIF le.
$ serverRoot/slapd-serverID/db2ldif -a example.ldif \
-r -s "ou=people,dc=example,dc=com" -s "ou=departments,dc=example,dc=com"
In this example, -a species the resulting LDIF le, -r indicates that replication information
should be exported, and -s species the suxes to be included in the export.
4. On the new instance, import the LDIF les by using the dsadm import command. For
example, the following commands import the LDIF le created previously into the two
suxes that were exported.
$ dsadm import instance-path example.ldif ou=people,dc=example,dc=com
$ dsadm import instance-path example.ldif ou=departments,dc=example,dc=com
5. If the retro change log was congured on the 5.2 instance, export the retro change log to
LDIF by using the db2ldif command.
$ serverRoot/slapd-serverID/db2ldif -a changelog.ldif \
-s "cn=changelog"
In this example, -a species the resulting LDIF le, and -s species the changelog sux.
6. On the new instance, import the retro change log using the dsadm import command. For
example, the following command imports the change log LDIF le created previously.
$ dsadm import instance-path changelog.ldif cn=changelog
7. Start the new instance.
MigratingUser DataManually
Chapter3 • Migrating DirectoryServer Manually 49
SunCondential:Registered