Upgrading Adaptive Server

To upgrade an Adaptive Server in a high availability configuration, you must temporarily break the companionship between the primary and secondary companion, and disable monitoring of the Adaptive Server Resource Groups. You can shutdown or restart either Adaptive Server independently during the upgrade process without triggering unexpected failovers by the SunCluster subsystem.

NoteYou cannot add, delete, or modify any databases, objects, users, or logins during the upgrade process. Making these changes after the companionship is dropped and before it is reestablished may cause the upgrade to fail or destabilize the cluster by causing inconsistencies between servers.

StepsStop the monitoring service and drop companionship

Halt the monitoring service and stop management for the Adaptive Server resource groups on both nodes in the cluster.

  1. As root, issue these commands to bring the SunCluster resource group associated with Adaptive Server offline, and shut down Adaptive Server:

    scswitch -F -g primary_resourcegroup_name
    scswitch -u -g secondary_resourcegroup_name
    

StepsUpgrading Adaptive Server

  1. On both node, disable high availability:

    sp_configure 'enable HA', 0
    

    Restart Adaptive Server for this change to take effect.

    NoteAlternatively, if the companions are shut down, edit their server configuration files (server_name.cfg), changing the value of enable HA to 0

  2. Follow the instructions in the Installation Guide to upgrade each server.

  3. Reenable high availability on both nodes:

    sp_configure 'enable HA', 2
    

    You must restart Adaptive Server for the change to take effect. See the Configuration Guide for your platform.

  4. Verify:

StepsReestablishing companionship and resuming resource monitoring

Start the resource group (which starts Adaptive Server, if it is not already started) and restore the monitoring service

  1. As root, issue:

    scswitch -z -g ase_resourcegroup_name -h primary_node
    

StepsVerify failover and failback

  1. Failover the primary companion by relocating the associated resource group to secondary node. As root, issue:

    scswitch -z -g ase_resourcegroup_name -h secondary_node
    

    Verify Adaptive Server is properly running on the secondary node by checking for the Adaptive Server operating system process and by logging into Adaptive Server with isql.

  2. Failback Adaptive Server by relocating its associated resource group to primary node. As root, issue:

    scswitch -z -g ase_resourcegroup_name -h primary_node
    

    Verify Adaptive Server is properly running on the primary node by checking for the Adaptive Server operating system process and by logging into Adaptive Server with isql.