Configuring the HP Tru64 subsystem for Sybase Failover  Modifying the ASE_HA.cap profile

Chapter 9: Configuring Adaptive Server for Failover on HP Tru64 TruCluster Server 5.x

Modifying the ASE_HA.sh script

The ASE_HA.sh script is used to start, stop, and monitor an 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 running in the cluster. The modifications you make to the script depend on whether the script is for the primary or secondary companion. You must install the ASE_HA.sh script in /var/cluster/caa/script/ASE_server_name.scr.

To modify the script for your environment:

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

  2. As “root,” copy ASE_HA.sh to a file named /var/cluster/caa/script/server_name.scr. where server_name is the Adaptive Server to be monitored.

  3. Edit the server_name.scr 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 setup.

    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.

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

  6. Register your server_name.cap file. The syntax is:

    caa_register PRIM_SERVER
    
    caa_register SEC_SERVER
    
  7. Start the server_name.cap file. The syntax is:

    caa_start PRIM_SERVER
    
    caa_start SEC_SERVER
    




Copyright © 2005. Sybase Inc. All rights reserved. Modifying the ASE_HA.cap profile

View this book as PDF