Migrating an 8.0 Directory Server to 8.1 on Another Machine856.3.2. Migrating an 8.0 Directory Server to 8.1 on Another MachineTo upgrade Directory Server and move the instance from one machine to another, the 8.0 informationmust be imported into the new instance manually. This is true for both moving to another machine andmoving to a new platform.WARNINGMigration cannot change the hostname used by the Directory Server and AdministrationServer. The old machine must have the same hostname as your new machine. Tocommission a new machine on which to run Directory Server 8.1, first rename the oldmachine (for example, change ldap.example.com to ldap_old.example.com),then give the new machine the original name of the old machine (ldap.example.com).Because the large number of configuration issues based on the Directory Server'shostname — including the Console, replication, TLS/SSL, and Kerberos — it is extremelydifficult to rename the server. Red Hat strongly recommends that you do not attempt tochange the Directory Server hostname.1. Back up all the Directory Server user and configuration data. For example:cd /usr/lib/dirsrv/slapd-instance_namedb2bak /var/lib/dirsrv/slapd-instance_name/bak/instance_name-2009_04_30_16_27_562. Export all of the database information to LDIF. The LDIF file must be named the name of thedatabase with .ldif appended. For example:db2ldif -r -n userRoot -a /var/lib/dirsrv/slapd-instance_name/db/userRoot.ldifdb2ldif -r -n NetscapeRoot -a /var/lib/dirsrv/slapd-instance_name/db/NetscapeRoot.ldifNOTEUse the -r option if the server is used in replication.3. On the new machine which will host Directory Server, install or upgrade the Directory Server 8.1packages. For example:yum install -yThis automatically updates the Red Hat Directory Server packages as well as any other requiredpackages.Red Hat Directory Server 8.1 requires that all of the packages in the Red Hat Directory Serverchannel be updated. Running simply yum update updates all Red Hat Directory Server and RedHat Enterprise Linux packages. To exclude packages from updating on your system, you canuse --exclude packages, restrict the update to only the Red Hat Directory Server channel, orexplicitly list the packages to update. Run man yum for a list of options. For example:yum install -y --disablerepo=* --enablerepo=rhel-x86_64-server-5-rhdirserv-8