The following is the sysc_input_file used to create and configure the Adaptive Server resource group rg_MONEY and its resources as shown in Figure 12-1:
########################################################################### ##NOTE: ## ## 1. This file will be executed by ksh to set environment of syscadm ## ## You will be responsible for executing anything in this file ## ## So, make sure THERE ARE NO DANGEROUS COMMANDS IN THIS FILE ## ## ## ## 2. No spaces around = in the <Variable_name>=<value> pairs ## ## ## ## 3. Comments should start with #, like ksh comments ## ## ## ## 4. Names ending with 1 correspond to primary, and 2 to secondary ## ########################################################################### ########################################################### ## Section1: Must specify right hand side values ## ########################################################### # Sybase home directory SYBASE=”/sybase” # Valid HA Setups are "ACTIVE_PASSIVE" or "ASYMMETRIC" or "SYMMETRIC" HA_SETUP=”ACTIVE_PASSIVE” # Comma separated list of nodes, Ex: "node1,node2" Nodelist=”node1,node2” # ASE Dataserver name and Dataserver login file Dataserver_name1=”MONEY” Dataserver_login_file1=”/sybase/ASE-12_5/SC-3_0/etc/ase_login_file” Dataserver_name2= Dataserver_login_file2= ############################################################################ ## Section2: Must specify right hand side values, if required ## ############################################################################ # if using Logical Hostname or Virtual/Floating IP address LOGHOST_NAME_OR_FLOATING_IP1=”loghost” LOGHOST_NAME_OR_FLOATING_IP2= # if using HAStorage resource ServicePaths1=”/global/node1_share” ServicePaths2= # if using HAStoragePlus resource GlobalDevicePaths1= FilesystemMountPoints1= GlobalDevicePaths2= FilesystemMountPoints2= ############################################################################ ## Section3: May specify right hand side values to override defaults ## ############################################################################ # bin of the cluster commands CLUSTER_BIN="/usr/cluster/bin" # ASE Resource Type and corresponding registration file RT_NAME="SY.ase" RT_FILE="$SYBASE/ASE-12_5/SC-3_0/etc/$RT_NAME" # Resource Group names RG_NAME1=”rg_$Dtatserver_name1” RG_NAME2="rg_$Dataserver_name2" # ASE Resource names and space separated extended properties ASE_RNAME1="ase_$Dataserver_name1" ASE_RNAME2="ase_$Dataserver_name2" OTHER_PROPERTIES1="RUN_server_file=/sybase/ASE-12_5/install/RUN_MONEY” OTHER_PROPERTIES2="RUN_server_file= Callback_log= Monitor_log=" # Logical Host Resource names LOGHOST_RNAME1="lh_$Dataserver_name1" LOGHOST_RNAME2="lh_$Dataserver_name2" # HA Storage Resource names HASTORAGE_RNAME1="has_$Dataserver_name1" HASTORAGE_RNAME2="has_$Dataserver_name2" # HA Storage Plus Resource names HASTORAGE_PLUS_RNAME1="hasp_$Dataserver_name1" HASTORAGE_PLUS_RNAME2="hasp_$Dataserver_name2"