Red Hat Directory Server B.08.00.02 for HP-UX Release Notes and Supplemental Instructions

6.3 Migrating to Red Hat Directory Server 8.0 on the Same System
This section describes how to migrate from Netscape Directory Server version 6.11, 6.21 or Red
Hat Directory Server 7.1 to Red Hat Directory Server 8.0 on the same system.
For information on migrating from a previous Directory Server version on an HP 9000 system
to Red Hat Directory Server 8.0 an HP Integrity system, see Section 6.4 (page 41).
6.3.1 Preparing for Migration
To prepare the Directory Server for migration, follow these steps:
1. For a general understanding of the migration process and background information, see
Chapter 8, "Migrating from Previous Versions” in the Red Hat Directory Server Installation
Guide.
2. Back up all existing Directory Server database files and user and configuration data, including
critical configuration information contained in the dse.ldif, slapd.conf and dwgw.conf
files and any customized schema files. You can use the following procedure to perform this
step:
a. Set the current working directory to the server root for the legacy Directory Server.
For Netscape Directory Server 6.11 and 6.21, enter the following command:
cd /var/opt/netscape/servers
For Red Hat Directory Server 7.1, enter the following command:
cd /var/opt/netscape/server7
b. For each Directory Server instance, use the db2bak utility to create a backup of the
database files in a target directory that has sufficient disk space for the data. For example,
the following commands create backups of the instance1 and instance2 Directory
Server instances in the target directory /tmp/bak:
./slapd-instance1/db2bak /tmp/bak/instance1
./slapd-instance2/db2bak /tmp/bak/instance2
c. Create a tar file that contains a backup of all configuration and schema files. These
files are located below the server root directory in the following subdirectories:
slapd-instance/config
slapd-instance/schema
alias
admin-serv/config
shared/config
For example, the following command creates the tar file server7.tar for instance1
and instance2 :
tar cf /tmp/bak/server7.tar \
slapd-instance1/config \
slapd-instance2/config \
slapd-instance1/schema \
slapd-instance2/schema \
alias \
admin-serv/config \
shared/config
3. If you are migrating from Red Hat Directory Server 7.1 to Red Hat Directory Server 8.0, skip
this step.
Otherwise, if you are migrating Directory Server 6.11 or 6.21 (32-bit architecture) to Directory
Server 8.0 (64-bit architecture), use the following procedure to create LDIF files for your
Directory Server 6.11 or 6.21 databases.
36 Migrating to Red Hat Directory Server 8.0