Sun Java logo     Previous      Contents      Index      Next     

Sun logo
Sun Java Enterprise System Upgrade Guide for HP-UX  

Chapter 3
Directory Server and Administration Server

This chapter describes how to upgrade Directory Server and Administration Server components to Java ES Release 4 (2005Q4). These upgrades are documented together because the two components work closely together.

The chapter provides a general overview of upgrade issues and procedures for the different upgrade paths supported by Java ES Release 4.


Overview of Directory Server and Administration Server Upgrades

This section describes the following general aspects of Directory Server and its associated Administration Server components that impact upgrading to Java ES Release 4:

About Java ES Release 4

Java ES Release 4 versions of Directory Server and Administration Server represent only minor bug fixes and improvements. There are no new functional capabilities.

Java ES Release 4 Upgrade Roadmap

Table 3-1 shows the supported Directory Server and Administration Server, upgrade paths to Java ES Release 4.

Table 3-1  Upgrade Paths to Java ES Release 4 Directory Server and Administration Server 2005Q4

Java ES Release

Components

General Approach

Re-configuration Required

Release 3

Sun Java System Directory Server 5 Q1

Sun Java System Administration Server 5 Q1

Direct Upgrade:
Apply patches and re-configure configuration directory

Automatic re-configuration of data in configuration directory

Directory Server and Administration Server Data

Directory Server and Administration Server make use of Directory Server itself for storing configuration data. The data is stored in a specific tree structure within the directory. The Directory Server instance hosting the configuration is referred to as the configuration directory.

The configuration directory can be a dedicated Directory Server instance, which is a recommended security practice, or it can also host user identity data or service configuration data. The configuration directory can reside on the same computer as other Directory Server instances and the Administration Server; however in most deployment architectures, the configuration directory is remote from the other components that use it to store configuration information.

The following table shows the type of data that could be impacted by an upgrade of Directory Server and Administration Server software.

Table 3-2  Directory Server and Administration Server Data Usage

Type of Data

Location

Usage

Directory Server configuration data

Configuration directory

Configuration of Directory Server

Administration Server configuration data

Configuration directory

Configuration of Administration Server

Compatibility Issues

Release 4 Directory Server and Administration Server do not introduce any interface changes. These components are, as a group, backwardly compatible with earlier versions. However, any one of these components is not backwardly compatible with earlier versions of the others; all need to be upgraded as a unit.

Dependencies

Dependencies on other Java ES components can impact the procedure for upgrading and re-configuring Directory Server and Administration Server software. Each of these components has dependencies on Java ES components as follows:


Upgrading Directory Server and Administration Server from Java ES Release 3

This section includes information about upgrading Directory Server and Administration Server from Java ES Release 3 to Java ES Release 4. The section covers the following topics:

Introduction

When upgrading Java ES Release 3 Directory Server and Administration Server, to Release 4, consider the following aspects of the upgrade process:

Directory and Administration Server Upgrade

This section describes how to perform an upgrade of Directory Server and Administration Server from Java ES Release 3 to Java ES Release 4 on the HP-UX. The section covers the following topics:

Pre-Upgrade Tasks

Before you upgrade Directory Server and Administration Server, you should perform the tasks described below.

Verify Current Version Information

You can verify the current version of Directory Server and associated components by restarting the Directory Server daemon using the -v option:

# cd serverroot/bin/slapd/server    

# ./ns-slapd -v

You can see the result of the command as mentioned below:

Sun Java(TM) System Directory Server/5.2_Patch_3

and checking the startup messages in the Directory Server error log:

/opt/sun/mps/serverroot/slapd- <server-instance>/logs/errors

Table 3-3  Directory Server Version Outputs

Java ES Release

Directory Server Version Number

Release 3

Sun Java(TM) System Directory Server/5.2_Patch_3

Release 4

Sun Java(TM) System Directory Server/5.2_Patch_4

Upgrade Directory Server and Administration Server Dependencies

It is generally recommended that all Java ES components on a computer system (and in a computing environment) be upgraded to Java ES Release 4. However, because Directory Server and Administration Server do not require upgrading Release 3 shared components, this task is optional.

Back Up Directory Server Data

The Directory Server and Administration Server upgrade process modifies configuration directory data. Therefore, before you upgrade, it is recommended that you back up your configuration directory data using the Directory Server Console or a command-line utility such as db2bak.

Obtain Required Configuration Information and Passwords

You should know the Directory Server administrator user ID and password for your currently installed version.

In addition, Directory Server, and its associated Administration Server must run as the same user and group. That is, they must run with the same UID and GID.

Upgrading Directory Server and Administration Server

This section discusses considerations that impact the upgrade procedure for Directory Server and Administration Server followed by a description of the procedure itself.

Upgrade Considerations

The upgrade of Directory Server and Administration Server software to Java ES Release 4 takes into account the following considerations:

Table 3-4  Patches1 to Upgrade Directory Server and Administration Server

Component

Patch ID

Directory Server

121393-01

Directory Server locale

121931-01

Administration Server

121515-01

Administration Server locale

121933-01

1Patch revision numbers are the minimum required for upgrade to Java ES Release 4. If newer revisions become available, use the newer ones instead of those shown in the table.


Upgrade Procedure

The procedure documented below applies to Directory Server and Administration Server instances residing locally on the computer where the upgrade is taking place.

  1. Obtain the required patches, based on Table 2-1 for the shared components.
  2. Obtain the required patches, based on Table 3-4 for the Directory and Administration Server.
  3. Patches can be downloaded from:

    http://sunsolve.sun.com.

  4. Login as super user.
  5. Upgrade the Shared Components.
  6. Upgrade the Administration Server.
  7. swinstall -s <absolute-location>/<patch_ID  > <patch_ID>

    1. /opt/sun/sbin/mpsadmserver sync-cds 5.2
    2. You will be prompted for the admin username and password.

    3. /opt/sun/mps/serverroot/startadmin
  8. Upgrade the Directory Server.
    1. swinstall -s <absolute-location>/<patch_ID> <patch_ID>
    2. cd /opt/sun/mps/serverroot/shared/bin; ./sync-product-cds -r /opt/sun/mps/serverroot -v 5.2_Patch_4 -j ds524.jar -g ds524.jar -n "Sun Java(TM) System Directory Server" -b "2005.286.1827" -i "cn=Sun ONE Directory Server, cn=Server Group, cn=< server-instance>.red.iplanet.com, ou=red.iplanet.com, o=NetscapeRoot"
    3. You will be prompted for the admin username and password

Verifying the Upgrade

  1. You can verify successful upgrade of Directory Server and associated components by restarting the Directory Server daemon using the -v option:
  2. # cd <server_root>/bin/slapd/server

    # ./ns-slapd -v

    You can verify the result as mentioned below:

    Sun Java(TM) System Directory Server/5.2_Patch_4

    and then checking the startup messages in the Directory Server error log:

    /opt/sun/mps/serverroot/slapd-< server-instance>/logs/errors

  3. You can verify successful upgrade of Administration Server using the command as mentioned below:
  4. # cd <server_root>/

    # ./startconsole

    1. You have to enter the appropriate user-id and password in the System Server Console Login panel.
    2. Click Administration Instance in System Server Console panel.
    3. You can see the version number as mentioned below:

      version :5.2.4

Post-Upgrade Tasks

There are no post-upgrade tasks beyond the steps described in Upgrade Procedure.

Rolling Back the Upgrade

Rollback Considerations
Rollback Procedure
  1. Login as super user.
  2. Rollback the Directory Server using the following commands:
    1. swremove <patch_ID>
    2. cd /opt/sun/mps/serverroot/shared/bin; ./sync-product-cds -r /opt/sun/mps/serverroot -v 5.2_Patch_3 -j ds523.jar -g ds523.jar -n "Sun Java(TM) System Directory Server" -b "2005.179.2117" -i "cn=Sun ONE Directory Server, cn=Server Group, cn=< server-instance>.red.iplanet.com, ou=red.iplanet.com, o=NetscapeRoot"
    3. You will be prompted for the admin username and password.

  3. Verify the rollback of Directory Server:
  4. # cd <server_root>/bin/slapd/server

    # ./ns-slapd -v

    You can verify the result as mentioned below:

    Sun Java(TM) System Directory Server/5.2_Patch_3

  5. Roll back the Shared Components.
  6. Roll back the Administration Server by using the following commands:
    1. swremove <patch_ID>
    2. /opt/sun/sbin/mpsadmserver sync-cds 5.2
    3. You will be prompted for the admin username and password.

  7. Verify the rollback of Administration Server.
  8. /opt/sun/mps/serverroot/startconsole

    1. You have to enter the appropriate user-id and password in the System Server Console Login panel
    2. Click Administration Instance in System Server Console panel
    3. You can see the version number as mentioned below:

      version :5.2.3


      Note

      When you try to authenticate using the ‘admin_pwd’, if you notice the Directory Server is not running, start the Directory Server using the following command:
      /opt/sun/mps/serverroot/slapd-<server-instance>/start-slapd




Previous      Contents      Index      Next     


Part No: 819-4460-10.   Copyright 2006 Sun Microsystems, Inc. All rights reserved.