Create a resource group that contains an SY.ase resource and a SUNW.HAStorage resource for the secondary companion server.
scrgadm -a -g resource_group -y Nodelist=secondary-node
For example:
scrgadm -a -g ase_rg2 -y Nodelist=node2
Add SUNW.HAStorage to the resource group:
scrgadm -a -j hastorage_name -g resource_group -t SUNW.HAStorage -x ServicePaths=shared-disk-storage-path
For example:
scrgadm -a -j PERSONEL1_storage -g ase_rg2 -t SUNW.HAStorage -x ServicePaths=/global/node2_share
Add SUNW.LogicalHostname to the resource group:
scrgadm -a -L -j loghost_resource -g resource_group -L loghostname
For example:
scrgadm -a -L -j PERSONEL1_lhost -g ase_rg2 -l loghost-node2
Add the SY.ase resource:
scrgadm -a -j ase_resource_name -g resource_group \ -t SY.ase \ -x Sybase_home=sybase_home_value \ -x Environment_file=environment_file_path \ -x Dataserver_name=dataserver_name_value \ -x Dataserver_login_file=login_file_path \ -x RUN_server_file=run_server_file_path
For example:
scrgadm -a -j PERSONEL1 -g ase_rg2 \ -t SY.ase \ -x Sybase_home=/sybase \ -x Environment_file=/sybase/SYBASE.sh \ -x Dataserver_name=PERSONEL1 \ -x Dataserver_login_file=/sybase/ASE-12_5/SC-3_0/etc/ase_login_file \ -x RUN_server_file=/sybase/ASE-12_5/install/RUN_PERSONEL1
Establish resource dependency between SY.ase and SUNW.HAStorage so the SY.ase resource always depends on SUNW.HAStorage resource:
scrgadm -c -j ase-resource-name -y Resource_dependencies=hastorage-name
For example:
scrgadm -c -j PERSONEL1 -y Resource_dependencies=PERSONEL1_storage
Run SCSwitch command to complete the following tasks:
Enable all resources and their monitor.
Move the resource group into a managed state.
Bring the resource group online on the default primary node:
SCSwitch -Z -g resource_group_name
For example:
SCSwitch -Z -g ase_rg2
Use isql to connect to both MONEY1 and PERSONEL1 and test whether both servers are online.