Install the FailSafe scripts

As super user (su), run the following to install the Adaptive Server components in the corresponding FailSafe directories and create the following scripts in the /var/cluster/ha/resource_type/SYBASE_DB directory. First run the following to become the Sybase super user:

su - sybase

Then run:

su root –c $SYBASE/$SYBASE_ASE/install/inst_ha_script

Scripts

Description

start

Starts Adaptive Server and issues a resume if the state mandates and if so configured – see SWITCHES below

stop

Stops Adaptive Server and issues a prepare_failback if so configured – see SWITCHES below

monitor

Using isql, ensures that Adaptive Server is up and running

restart

Similar to start

probe

Attempts to access the resource definitions from the FailSafe database. Returns either success or failure

exclusive

Determines whether Adaptive Server is running or not

resourceAttributes

Besides retrieving and setting global environment variables for the scripts, the area where common functions live.

cmgr-create-resource-SYBASE_DB

Sample script to create the SYBASE_DB resource group

create_resource_type

Defines the SYBASE_DB resource type in the FailSafe database

SWITCHES

FailSafe and Adaptive Server switches used to alter the behavior of the scripts (that is automatic failback versus manual, logging information, and so on). Any changes to this file need to be sent to the other node(s) through rcp or rsync.

README

Detailed DBA and system administrator notes.

The software is installed locally on both the primary and secondary nodes.