Chapter 8. Migrating from Previous Versions

1.Stop all Directory Server instances and the Administration Server.

2.Back up all the Directory Server user and configuration data.

3.Export all of the database information to LDIF. The LDIF file must be named the name of the database with .ldif appended. For example:

cd /opt/redhat-ds/slapd-instance

./db2ldif -n userRoot -a /opt/redhat-ds/slapd-instance/db/userRoot.ldif

./db2ldif -n NetscapeRoot -a /opt/redhat-ds/slapd-instance/db/NetscapeRoot.ldif

4.Install the Directory Server 8.0 packages on the new machine which will host Directory Server.

5.Make the old Directory Server accessible to the new machine, either through an NFS-mounted drive or tarball.

6.Run the migration script as root. Specify the current physical location of the Directory Server with the oldsroot parameter and the location on the old machine with the actualsroot parameter.

IMPORTANT

Do not set up the new Directory Server instances with setup-ds-admin.plbefore running the migration script.

For example:

/usr/sbin/migrate-ds-admin.pl --cross --oldsroot

server2:/migration/opt/redhat-ds

--actualsroot /opt/redhat-ds General.ConfigDirectoryAdminPwd=password

The migration process starts. The legacy Directory Server is migrated, and a new Directory Server 8.0 instance is installed using the configuration information from the legacy Directory Server.

120

Page 130
Image 130
HP UX Red Hat Direry Server Software manual For example