Complete Contents
Introduction
Chapter 1 Preparing for Installation
Chapter 2 Using Express and Typical Install
Chapter 3 Using Custom Install
Chapter 4 Silent Installation
Chapter 5 Installing and Configuring the Synch Service
Chapter 6 Upgrading and Migrating the Directory Server
Chapter 7 Troubleshooting
Previous Next Contents Index


Chapter 6 Upgrading and Migrating the Directory Server

You can migrate to Netscape Directory Server 4.1 or a later 4.x release from Netscape Directory Server 1.03, 1.04, or 3.x. When you migrate, you install the new Directory Server and then migrate your directory data from your old 3.x or earlier server to the new server. You can upgrade to a 4.1 or later 4.x server from a previous 4.x release. When you upgrade, you install directly over your currently installed 4.x server.

This chapter describes how in the following sections:


Upgrading a Single 4.x Directory Server
To upgrade to Netscape Directory Server 4.1 or a later 4.x release, you must be running a previous version of Directory Server 4.x. If you are currently running a 3.x or earlier version of the Directory Server, you need to migrate your directory as described in "Migrating a Single Pre-4.0 Directory Server".

Complete the following steps to upgrade your 4.x server:

You are advised to familiarize yourself with features new in each release since you installed your 4.x Directory Server. This information is available for each release in the following locations:

http://home.netscape.com/eng/server/directory/4.1/relnotes.html#new

http://home.netscape.com/eng/server/directory/4.11/relnotes.html

Step 1: Back Up Your Configuration and Database

Before you upgrade your server, copy your configuration files to a safe place. The following files contain important configuration information:

Step 2: Upgrade the Server

Once you have backed up your critical configuration information, complete the following to upgrade a server:

  1. Install a new 4.1 or later 4.x Directory Server as described in Chapter  2, "Using Express and Typical Install,", Chapter  3, "Using Custom Install," or Chapter  4, "Silent Installation." Also:
  2. Upgrade your schema as described in "Step 3: Upgrade the Schema".
Step 3: Upgrade the Schema

When you upgrade to 4.1 or a later 4.x release, the upgrade process does not overwrite your old schema files. Instead, the new schema files are installed in the following directory:

<NSHOME>/bin/slapd/install/config/

Where <NSHOME> is the directory where you installed the new server.

Use the following table to decide which procedure you need to use to upgrade your schema:

If You...
Use This Procedure...
Did not modify the slapd.at.conf or slapd.oc.conf files in your 4.0 server.
Upgrading Standard Schema
Modified the slapd.at.conf or slapd.oc.conf files in your 4.0 server.
Upgrading Modified Schema

Upgrading Standard Schema

If you did not modify the slapd.at.conf or slapd.oc.conf files in your old server, you can upgrade the schema as follows:

  1. If you have not already done so, complete "Step 1: Back Up Your Configuration and Database" and "Step 2: Upgrade the Server".
  2. Copy all the files in the following directory:
  3. <NSHOME>/bin/slapd/install/config/

    except slapd.user_oc.conf and slapd.user_at.conf, to the directory where your 4.0 schema files are stored. By default this directory is:

    <NSHOME>/slapd-<ServerID>/config/

  4. Restart the Directory Server.
Upgrading Modified Schema

If you modified the slapd.at.conf or slapd.oc.conf files in your old server, you need to do the following to upgrade your schema:

  1. If you have not already done so, complete "Step 1: Back Up Your Configuration and Database" and "Step 2: Upgrade the Server". Make sure you create a backup copy of your schema files.
  2. Copy all the files in the following directory:
  3. <NSHOME>/bin/slapd/install/config/

    except slapd.user_oc.conf and slapd.user_at.conf, to the directory where your old 4.x schema files are stored. By default this directory is:

    <NSHOME>/slapd-<ServerID>/config/

  4. Examine the copy you made during "Step 1: Back Up Your Configuration and Database" of the old 4.x slapd.at.conf and slapd.oc.conf files to discover all the schema additions that you made.
  5. If you added attributes to slapd.at.conf, you need to add them to the new Directory Server using the Directory Server Console.

    If you added new object classes to slapd.oc.conf, you need to add them to the new Directory Server using the Directory Server Console.

    If you added attributes to standard object classes in slapd.oc.conf, then you must do the following:

    See the Netscape Directory Server Administrator's Guide for information on adding object classes and attributes.

  6. Restart the Directory Server.
Note. To avoid the need to perform manual schema migration in the future, never modify any schema files directly. Instead, use the schema editor in the Directory Server Console to add schema elements.


Migrating a Single Pre-4.0 Directory Server
To migrate to Netscape Directory Server 4.1 or a later 4.x release, you must be running directory 1.03, 1.04, or 3.x. If you are running Directory Server 4.0, you need to upgrade your server as described in "Upgrading a Single 4.x Directory Server".

To migrate, complete these steps:

Before You Migrate

Before performing migration, be aware that migration results in two instances of the Directory Server. One instance of the server is the configuration directory, that is, it contains all Netscape server registration information. The other server contains your migrated corporate data. The first Directory Server you install must be your configuration directory.

For more information on the configuration directory, see "Determine the Location of the Configuration Directory".

Other requirements and suggestions for migration:

Step 1: Back Up Configuration

Before you migrate your server, copy your configuration files to a safe place. The following files contain important configuration information:

Step 2: Migrate the Server

Once you have backed up your configuration, complete the following to migrate a 1.03, 1.04, or 3.x server to 4.x:

  1. Install a new 4.x Directory Server as described in Chapter  2, "Using Express and Typical Install,", Chapter  3, "Using Custom Install," or Chapter  4, "Silent Installation." Do not use the same port number your production server uses (e.g. port 389) because this initial directory will be used for server registration purposes only.
  2. Shutdown your old Directory Server (this will automatically be done for you if the server is not shut down when you begin migration).
  3. Start the Netscape Console using an account that has full read access to the server root.
  4. In the Netscape Console's navigation tree, select the Server Group folder for the host on which the migration is occurring.
  5. In the Object menu, select "Migrate Server Config...".
  6. Enter the full path to the old server's installation root directory. For example:
  7. /usr/ns-home

  8. Select the old server to migrate from the resulting list.
  9. Select Yes to overwrite any existing SIE data.
  10. Select the new server to migrate the old directory data to. Select "Create New Instance" to create a new instance to hold the data.
  11. Enter the Root DN password. This will be used for your Directory Server 4.x directory manager password.
  12. During migration, a window appears detailing problems the migration process encountered with custom schema and plugins. Where possible, this window also contains solutions to these problems. Make sure you take note of the information in this window.

Your old server is then migrated. As a result of this migration, a new Directory Server 4.x server instance is installed using the configuration information obtained from your old Directory Server. In addition, the data from your old server is migrated to the new server and the new server is started.

Step 3: Migrate Custom Schema

If you customized your old (3.x or earlier) schema by modifying slapd.at.conf or slapd.oc.conf directly, then the server migration process will not migrate your custom schema for you. Instead, you are notified during migration that you have modified the standard schema and that you need to manually fix the problem. The migration process then saves a copy of your schema files and uses standard 4.1 schema files in their place. Your old schema is saved in <NSHOME>/slapd-<serverID>/migrate_config.

While the migration will complete in this situation, it may result in a directory that cannot be modified until you have straightened out your schema. Therefore, you are strongly recommended to separate your custom schema into files other than slapd.oc.conf and slapd.at.conf before you perform migration.

To separate your custom schema from your standard schema:

  1. Examine your old slapd.at.conf and slapd.oc.conf files to discover all the schema additions that you made there.
  2. Place your custom schema elements in the following files:
  3. <NSHOME>/slapd-<serverID>/config/slapd.user_at.conf
    <NSHOME>/slapd-<serverID>/config/slapd.user_oc.conf

    You should use these filenames because these are the names that the 3.x and 4.x schema configuration editor write to.

  4. Include these files into your slapd.conf file using the userat and useroc directives. Place your new directives at the same place in the file as where the other configuration files are included. The order in which the various configuration files are included is not important.
Also, if you added attributes to standard object classes in slapd.oc.conf, then you must do the following:

  1. Create a new object class that allows your custom attributes.
  2. Place this new object class on every entry in your directory that uses the custom attributes.

Note. To avoid the need to perform manual schema migration in the future, never modify any schema files directly. Instead, use the schema editor in the Directory Server Console to add schema elements.


Upgrading or Migrating a Replicated Site
Instances of Directory Server 1.03 and 3.x can replicate to a 4.x directory. Likewise, instances of 4.x can replicate to later 4.x directory servers. Therefore, to upgrade or migrate a replicated site to 4.1 or a later 4.x release, do the following:

  1. Upgrade or migrate all your consumer servers first using the standard upgrade or migration process. See "Upgrading a Single 4.x Directory Server" or "Migrating a Single Pre-4.0 Directory Server" as appropriate.
  2. Upgrade or migrate your supplier server.
 

© Copyright 1999 Netscape Communications Corporation, All Rights Reserved.