Red Hat Directory Server B.08.00 for HP-UX Release Notes and Supplemental Instructions
C Manually Migrating a Directory Server to a System with
a Different Host Name
To use the automated procedure described in “Migrating a Directory Server on an HP 9000
System to Red Hat Directory Server 8.0 on a Different System” (page 41), you must assign the
source host name to the target system. If you want to migrate a Directory Server to a target system
with a different host name, you can use the manual procedure described in this appendix.
This procedure requires you to manually create the Administration Server on the target system.
In addition, the Configuration Directory Server (the Directory Server that hosts the directory
tree which contains the configuration data for an administration domain) must be a separate
Directory Server instance with no databases other than the configuration database
(o=NetscapeRoot).
To manually migrate a Directory Server to a system with a different host name, follow these
steps:
1. Complete the steps in the “Preparing for Migration” (page 42) subsection in the “Migrating
a Directory Server on an HP 9000 System to Red Hat Directory Server 8.0 on a Different
System” (page 41) section.
2. On the target system, install Red Hat Directory Server 8.0 as described in Chapter 2 (page 17).
3. On the target system, use the setup-ds-admin.pl script to create a Directory Server
instance to host the configuration database (o=NetscapeRoot).
a. Enter the following command sequence:
cd /opt/dirsrv/sbin
./setup-ds-admin.pl
b. Respond to the prompts as described in “Running the setup-ds-admin.pl or
setup-ds.pl Script” (page 26). When the script prompts if you want to register the
software with an existing Configuration Directory Server, enter no to create a
Configuration Directory Server. Enter the appropriate responses for the local system
and for the Configuration Directory Server you are creating.
c. Record your responses for the following information:
• The Configuration Directory Server URL
• The Configuration Directory Server administrator's name.
• The Configuration Directory Server administrator's password.
4. Create an.inf file, such as setup.inf, that contains the Configuration Directory Server
administrator's password. You specify the file name using the --file option in the next
step. The .inf file contains the password information as follows:
[General]
ConfigDirectoryAdminPwd=passwd
5. Run the migrate-ds.pl script for each Directory Server instance you want to migrate.
For the --oldsroot argument, specify the directory that contains the uncompressed legacy
Directory Server tar file contents, such as /tmp/oldserver/myInstance.
• To migrate from a Netscape Directory Server 6.11 or 6.21 instance, enter the following
command sequence:
cd /opt/dirsrv/sbin
./migrate-ds.pl --oldsroot oldserver_datadir \
--actualsroot /var/opt/netscape/servers \
--instance slapd-instance --cross
• To migrate from a Red Hat Directory Server 7.1 instance, enter the following command
sequence:
cd /opt/dirsrv/sbin
./migrate-ds.pl --oldsroot oldserver_datadir \
69