Red Hat Directory Server B.08.00 for HP-UX Release Notes and Supplemental Instructions
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.
a. Enter the following command sequence to determine the database names for a Directory
Server instance:
cd /var/opt/netscape/servers/slapd-instance
find ./db -type d
Each subdirectory under the db represents a separate database, such as NetscapeRoot
or userRoot. The name of the database is the same as the subdirectory name.
b. For each database, enter the following command sequence to create an LDIF file in the
db subdirectory below the instance directory:
cd /var/opt/netscape/servers/slapd-instance
./db2ldif -n db_name -r -a \
/var/opt/netscape/servers/slapd-instance/db/db_name.ldif
Where db_name is the database name discovered in the previous step.
For example, the following commands export the NetscapeRoot and userRoot
databases to the NetscapeRoot.ldif and userRoot.ldif files from Directory
Server 6.11 or 6.21:
cd /var/opt/netscape/servers/slapd-foo
./db2ldif -n NetscapeRoot -r -a \
/var/opt/netscape/servers/slapd-foo/db/NetscapeRoot.ldif
./db2ldif -n userRoot -r -a \
/var/opt/netscape/servers/slapd-foo/db/userRoot.ldif
IMPORTANT: The db_name portion of the LDIF file name must match the database
name, and this name is case sensitive. For example, the LDIF file name for the
NetscapeRoot database must be NetscapeRoot.ldif.
Be sure to specify the -r option. This option causes the migration tool to migrate replica
state information. If you do not specify the -r option, and you must re-initialize replicas
after the migration completes.
4. If you are using SSL to secure the Directory Server, you must temporarily disable SSL or
create a password file for the SSL private key token. For more information, see “Additional
Procedures for Migrating a Secure Directory Server” (page 47).
Migrating to Red Hat Directory Server 8.0 on the Same System 37