Configuring the IBM AIX subsystem for Sybase Failover  Configuring resource groups in HACMP

Chapter 8: Configuring Adaptive Server for Failover on IBM AIX HACMP

Modifying the ASE_HA.sh script

The ASE_HA.sh script is used to start, stop, and monitor Adaptive Server in a high availability environment. Adaptive Server includes this script in the $SYBASE/$SYBASE_ASE/install directory. Make a copy of this script and modify it for your environment for both Adaptive Servers in the cluster. The modifications you make to the script depend on whether the script is for the primary or secondary companion. Each node must have a copy of this script at the same location (for example, both nodes have a copy of the script in /usr/u/sybase), and both copies must have read, write, and execute permissions for “root”. The easiest way to do this is to first modify both scripts on the same node, copy both the scripts to the other node, then set the appropriate permissions for the scripts on both nodes.

To modify the script for your environment:

  1. Change to the $SYBASE/$SYBASE_ASE/install directory.

  2. As “root”, copy ASE_HA.sh to the HACMP event handler script directory, usually /usr/sbin/cluster/events, and enter the following, where servername is the Adaptive Server to be monitored.:

    RUNHA_<servername>.sh
    
  3. You must edit the RUNHA_<servername>.sh script for your environment. The original ASE_HA.sh script contains the variables listed below. Edit the lines that include “__FILL_IN__” (and any other lines that require editing) with the values for your site:

  4. Edit the script for the primary companion.

  5. Edit the script for the secondary companion. These values differ depending on whether you are using an asymmetric or a symmetric configuration.

    If this is an asymmetric setup, the values for PRIM_SERVER should be the same as SEC_SERVER (the name of the secondary companion). PRIM_HOST should be the same as SEC_HOST, and PRIM_SYBASE should be the same as SEC_SYBASE.

    If this is a symmetric setup, the values for the PRIM_SERVER, PRIM_HOST, PRIM_SYBASE, SEC_SERVER, SEC_HOST, and SEC_SYBASE in the secondary companion script are the opposite of what is set in the primary companion script.





Copyright © 2005. Sybase Inc. All rights reserved. Configuring resource groups in HACMP

View this book as PDF