Installation guide
8.4.3. Migrating a Directory Server from One Machine to Another
To migrate a Directory Server installation from one machine to a new Directory Server instance on a new
machine of the same platform, run the migration script (m igrate-ds-adm in) with options specifying
the physical, network-accessible old server root directory (oldsroot), such as tarball or network drive,
and specifying the actual directory name of the server root on the old machine (actualsroot), such as
/opt/redhat-ds. In this case, actualsroot names the original absolute installation directory, which
oldsroot gives the path to access that directory.
NOTE
If the new machine has a different architecture than the old machine, such as moving from i386 to
x86_64, you must perform a cross platform migration, described in Section 8.4.4, “Migrating a
Directory Server from One Platform to Another”. The procedure in this section assumes that the
Directory Server is being migrated from one machine to another of the same architecture, such as
i386 to i386.
WARNING
Migration cannot change the hostname used by the Directory Server and Administration Server.
The old machine must have the same hostname as your new machine. If you are going to
commission a new machine on which to run Directory Server 8.0, first rename the old machine (for
example, change ldap.example.com to ldap_old.exam ple.com ), then give the new
machine the original name of the old machine (ldap.exam ple.com ). Because the large number
of configuration issues based on the Directory Server's hostname — including the Console,
replication, TLS/SSL, and Kerberos — it is extremely difficult to rename the server with the
migration script. Red Hat strongly recommends that you do not attempt to change the Directory
Server hostname.
NOTE
On Red Hat Enterprise Linux and Solaris machines, the m igrate-ds-adm in tool is in the
/usr/sbin/ directory. On HP-UX machines, the m igrate-ds-adm in is in the
/opt/dirsrv/sbin/ directory.
For example, this script migrates a Directory Server on server1 to server2, using an NFS-mounted
directory:
# /usr/sbin/migrate-ds-admin.pl --oldsroot server2:/migration/opt/redhat-ds
--actualsroot /opt/redhat-ds General.ConfigDirectoryAdminPwd=password
The oldsroot can also specify a local directory on the target machine that was created from a tarball. In
that case, create a tarball of your old server root directory, and untar it on the target machine. In this
example, a tarball was created of /opt/redhat-ds on the source machine, and it was untarred under
/migration on the target machine:
# /usr/sbin/migrate-ds-admin.pl --oldsroot /migration/opt/redhat-ds
--actualsroot /opt/redhat-ds General.ConfigDirectoryAdminPwd=password
Red Hat Directory Server 8.0 Installation Guide
104