JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle GlassFish Server 3.1 Upgrade Guide
search filter icon
search icon

Document Information

Preface

1.  GlassFish Server Upgrade Compatibility Issues

2.  Upgrading an Installation of Application Server or GlassFish Server

Upgrade Overview

Upgrade Paths

Upgrade Terminology

Summary of Upgrade Tools and Procedures

Summary of Tools for Performing an Upgrade

Upgrade Tool

Update Tool and the pkg Utility

Software Update Notifier

Summary of Procedure for Upgrading With Upgrade Tool

Summary of Procedure for Upgrading With Update Tool

Summary of Procedure for Upgrading With the Software Update Notifier

Summary of Procedure for Upgrading With the pkg Utility

Supported Releases for Upgrade to GlassFish Server 3.1

Upgrading From Version 8.x or Older Product Releases

Upgrading GlassFish Server Inside a Closed Network

Performing a Side-By-Side Upgrade With Upgrade Tool

Upgrade Tool Summary

Upgrade Tool Functionality

Migration of Deployed Applications

Upgrade of Clusters

Upgrade Verification

To Upgrade From the Command Line Using Upgrade Tool

To Upgrade Using the Upgrade Tool Wizard

Performing an In-Place Upgrade With the Update Center Tools

Update Center Tool Procedures

To Upgrade Using the Update Tool GUI

To Upgrade Using the Software Update Notifier

To Upgrade From the Command Line Using the pkg Utility

Upgrading Installations That Use NSS Cryptographic Tokens

To Prepare for the Upgrade

To Perform Post-Upgrade Configuration

To Upgrade PKCS#11 Hardware Tokens

Upgrading Clusters and Node Agent Configurations

Overview of Cluster and Node Agent Upgrade Procedures

To Correct the Configuration of a Node After an Upgrade

To Re-Create a Cluster

Correcting Potential Upgrade Problems

Cluster Profile Security Setting

Cluster Profile Upgrade on Windows

asupgrade Fails Without Internet Connection

Index

Upgrading Clusters and Node Agent Configurations

This section explains additional steps you need to perform when upgrading cluster and node agent configurations from Application Server or Enterprise Server to GlassFish Server 3.1.

GlassFish Server 3.1 does not support node agents. As part of the upgrade process, any node agent elements in the older source configuration are transformed into CONFIG node elements in the domain.xml file for the upgraded DAS. If the source node agent configuration is incompatible with your GlassFish Server 3.1 installation, you must correct the node configuration on the upgraded DAS.

In addition, although the source cluster configuration is retained in the domain.xml file for the upgraded DAS, it is still necessary to install GlassFish Server 3.1 on each node host and manually re-create the server instances that are contained in the clusters.

The following topics are addressed here:

Overview of Cluster and Node Agent Upgrade Procedures

The general steps for upgrading a cluster and node agent configuration so it will work in GlassFish Server 3.1 are as follows:

  1. Perform a side-by-side upgrade of the DAS. This procedure is described in Performing a Side-By-Side Upgrade With Upgrade Tool.

  2. Perform new (not upgrade) GlassFish Server 3.1 installations on each node host. GlassFish Server 3.1 installation instructions are provided in the Oracle GlassFish Server 3.1 Installation Guide.

  3. Correct the node configuration on the upgraded DAS, if necessary. This procedure is described in To Correct the Configuration of a Node After an Upgrade.

  4. Re-create the clusters and server instances on each GlassFish Server 3.1 node host. This procedure is described in To Re-Create a Cluster.

To Correct the Configuration of a Node After an Upgrade

As part of the upgrade process, node agent elements in the DAS configuration are transformed into GlassFish Server node elements of type CONFIG. This transformation does not affect the node agent directories for GlassFish Server instances. To create the equivalent directories for GlassFish Server instances after an upgrade, you must re-create the instances as explained in To Re-Create a Cluster.

The name of an upgraded node is the name of the node agent from which the node is transformed.

The host that the node represents is obtained from the configuration of the original node agent or, if not specified, is not set. If the configuration of the original node agent did not specify the name of the node host, you must update the node to specify the host that the node represents.

Default values are applied to the remainder of the node's configuration data.

The default values of the following items in a node's configuration data might not meet your requirements for the upgraded installation of GlassFish Server:

If you are using secure shell (SSH) for centralized administration, you must also change the type of the node to SSH to enable the node for remote communication.

For more information about GlassFish Server nodes, see Chapter 3, Administering GlassFish Server Nodes, in Oracle GlassFish Server 3.1-3.1.1 High Availability Administration Guide.

Before You Begin

Ensure that the following prerequisites are met:

  1. Ensure that the DAS is running.

    Remote subcommands require a running server.

  2. Update the node's configuration data to specify the correct directories and, if necessary, change the type of the node.

    Note - Only the options that are required to complete this task are provided in this step. For information about all the options for changing the node's configuration data, see the update-node-ssh(1) help page or the update-node-config(1) help page.


    asadmin> node-update-subcommand [--installdir install-dir] [--nodedir node-dir] 
    [--nodehost node-host] node-name
    node-update-subcommand

    The subcommand to run to update the node.

    • If you are leaving the type of the node as CONFIG, run the update-node-config subcommand on the node.

    • If you are changing the type of the node to SSH, run the update-node-ssh subcommand on the node.

    install-dir

    The full path to the parent of the base installation directory of the GlassFish Server software on the host, for example, /export/glassfish3.

    node-dir

    The path to the directory that will contain GlassFish Server instances that are to reside on the node. If a relative path is specified, the path is relative to the as-install directory.

    node-host

    The name of the host that the node is to represent after the node is updated.

    node-name

    The name of the node to update. This name is the name of the node agent from which the node was transformed.

Example 2-2 Correcting the Configuration of a Node After an Upgrade

This example updates the path to the directory that will contain instances that are to reside on the node xk01 to /export/home/gf/nodes. Because this node is transformed from a node agent, the type of the node is CONFIG. Therefore, type of the node is not changed.

asadmin> update-node-config --nodedir /export/home/gf/nodes xk01
Command update-node-config executed successfully.

Next Steps

Re-create the cluster configuration from the older source installation in the new GlassFish Server 3.1 installation in as explained in To Re-Create a Cluster.

See Also

To Re-Create a Cluster

This procedure explains how to re-create a clustered GlassFish Server or Enterprise Server configuration for GlassFish Server 3.1.

Before You Begin

Before proceeding with these instructions, ensure that you have completed the following procedures:

  1. Start the upgraded DAS.
    asadmin> start-domain domain-name

    If the upgrade succeeded, the migrated cluster configuration exists and the get-health subcommand lists the status of the clustered instances as not running.

  2. Confirm that the cluster configuration exists and contains all its instances.
    asadmin> get-health cluster-name

    For example, for the sample cluster1 used in this procedure:

    asadmin> get-health cluster1
    instance1 not started
    instance2 not started
    Command get-health executed successfully.
  3. Re-create the clustered server instances on each instance host.

    The specific commands to use depend on your configuration.

    Note that the node name matches that used for the node agent in the 2.x installation. If you get an error stating that some attributes do not match the values in the DAS configuration, follow the instructions in To Correct the Configuration of a Node After an Upgrade.

  4. After creating the instances, manually copy the instance-dir/imq directory for each instance from the older source installation to the target GlassFish Server 3.1 installation.
  5. If necessary, start the cluster.

    For example:

    asadmin> start-cluster cluster1

    This step may or may not be necessary, depending on the procedure you used to create the server instances for the cluster.

Example 2-3 Creating Two Local Instances

The following example shows how to create two local instances in a cluster.

host1$ asadmin --host dashost create-local-instance --node na1 --cluster cluster1 instance1
host2$ asadmin --host dashost create-local-instance --node na2 --cluster cluster1 instance2
dashost

The name of the DAS host.

na1

The name of the node host.

cluster1

The name of the cluster.

instance1, instance2

The names of the instances.