Sun Java System Application Server Enterprise Edition 8.2 Release Notes

Upgrading the High Availability Database

ProcedurePre-upgrade Tasks/Data Migration

Before You Begin

Users should keep the HADB history files, management agent configuration files, log files and repository, and all the data devices outside the installation path. If not, this should be done prior to the upgrade. To move the management repository and configuration files:

  1. Stop all the old management agents and keep the HADB nodes running.

  2. On each host, move the repository directory to the new location.

  3. On each host, copy the dbconfig directory to the new location.

  4. On each host, update the mgt.cfg file, and set the correct path for dbconfig and repository directory.

  5. Start the management agents using the updated mgt.cfg file.

ProcedureUpgrade Procedure

To upgrade from HADB version 4.4.x to version 4.4.3, perform the following steps:

  1. Perform the pre-upgrade tasks mentioned above as necessary.

  2. Install HADB version 4.4.3 on all HADB hosts (on another path than that of version 4.4.x, for instance on /opt/SUNWhadb/4.4.3).

  3. Install the HADB 4.4.3 version on the hadbm client hosts, if they are different than that of the HADB hosts.

  4. Stop all management agents running on all HADB hosts.

  5. Start the management agent processes using the new version's software, but with the old configuration files. In the remaining steps, please use the hadbm command found in the new version's bin directory.

  6. Register the package in the management domain (default package name becomes V4.4, so another package name may be required to avoid conflicts with existing packages having the same name):


    hadbm registerpackage --packagepath=/opt/SUNWhadb/4.4.3 V4.4.3
  7. Run the hadbm listpackages command and check that the new package is registered in the domain.

  8. Restart the database with the new hadbm version 4.4.3. If it is necessary to move the devices and history files, run online upgrade combined with setting new paths for devices and history files in one single operation:


    hadbm set packagename=V4.4.3,devicepath=new_devpath,
    historypath=new_histpath
    

    Otherwise, if the devices and history files are already outside of the installation directory, run the following command, which only does a rolling restart of the nodes:


    hadbm set packagename=V4.4.3 database name
    
  9. Check that the database status is “running” (using the hadbm status command) and that it functions normally, serving the client transactions.

  10. If everything is working, the old installation can be removed later. Before unregistering the old package, remove all references to the old package from the ma repository. Otherwise, hadbm unregisterpackage will fail with “package in use.” A dummy reconfiguration operation, for instance, hadbm set connectiontrace=same as previous value will remove all references to the old package. Now, unregister the old package:


    hadbm unregisterpackage [--hosts=host-list] old pacakge name
    
  11. Remove the old installation from the file system.

ProcedureTesting the Upgrade

On Solaris, to test that the upgrade was successful, check that the upgrade was performed properly:

  1. Ensure that the running processes use the new binaries. Check the following in all HADB nodes:


    new path/bin/ma -v
    new path/bin/hadbm -v
  2. Check whether the database is running. The following command should show that all the HADB nodes are in a “running” state.


    new path/bin/hadbm status -n
  3. Ensure that the products using HADB have changed their pointers to point to the new HADB path.

  4. The products using the HADB can run their upgrade tests to verify the HADB upgrade is also working.

    After an online upgrade, if the new version does not work properly, go back to using the previous HADB version. However, if there has been a change to the management agent repository, the HADB itself can be downgraded, but the new management agent must be kept running.

Special Deployment and Upgrade Information

This section lists additional information about HADB deployment and upgrading.

Deployment

Online Upgrade from 4.4.1 to 4.4.2

It is not possible to upgrade from 4.2 or 4.3 to 4.4 online. However, 4.4 supports online upgrade for the future versions. To upgrade from 4.4.1 to 4.4.2, perform the following steps:

  1. Install 4.4.2 on all HADB hosts (On another path than that of 4.4.1 – for instance /opt/SUNWhadb/4.4.2-6).

  2. Install the new version on the hadbm client hosts.

  3. Stop all management agents running on the HADB hosts.

  4. Start the management agent processes using the new version's software, but with the old configuration files. In the remaining steps, please use the hadbm command found in the new version's bin directory.

  5. Register the package in the management domain (default package name here becomes V4.4, so another package name may be required to avoid conflicts with existing packages having the same name):


    hadbm registerpackage --packagepath=/opt/SUNWhadb/4.4.2-6 V4.4.2
  6. Restart the database with the new version (the following command does a rolling restart of the nodes):


    hadbm set packagename=V4.4.2 database_name
    
  7. Check that the database status is “running” (using the command hadbm status) and that it functions normally, serving the client transactions.

  8. If everything works, the old installation can be removed later.

    Before unregistering the old package, remove all references to the old package from the ma repository. Otherwise, hadbm unregisterpackage will fail with “package in use.” A dummy reconfiguration operation, for instance, hadbm set connectiontrace=<same_as_previous_value> will remove all references to the old package. Now, unregister the old package:


    hadbm unregisterpackage [--hosts=<host_list>] <old_package_name>
    

    Remove the old installation from the file system, as described in the HADB installation instructions.