This section describes the commands executed by the syscadm script to create and configure the Adaptive Server resource group.
If necessary, these steps can be done manually, for example to configure, reconfigure, or troubleshoot the Adaptive Server resource group. Make sure you have properly modified the files SY.ase and ase_login_file as explained in Steps 1 and 2 in “Configuring Adaptive Server resource group”.
You must be logged on as root to run these Sun Cluster 3.0 commands.
Register the SY.ase resource type.
scrgadm -a -t SY.ase -f full-path-of-SY.ase-file
For example:
scrgadm -a -t SY.ase -f /sybase/ASE-12_5/SC-3_0/etc/SY.ase
Create the Adaptive Server resource group. Specify the primary and secondary nodes for the resource group property Nodelist:
scrgadm -a -g resource_group -y Nodelist=primary-node,secondary-node
For example:
scrgadm -a -g rg_MONEY -y Nodelist=node1,node2
Register the SUNW.HAStorage resource type.
scrgadm -a -t SUNW.HAStorage
Create and add the SUNW.HAStorage resource to the Adaptive Server resource group. Specify the file system and device paths on the shared disk that must be relocated to the secondary node in case of failover:
scrgadm -a -j hastorage_resource_name -t SUNW.HAStorage -g resource_group -x ServicePaths=shared-disk-storage-path
For example:
scrgadm -a -j has_MONEY -g rg_MONEY -t SUNW.HAStorage -x ServicePaths=/global/node1_share
Create and add the SUNW.LogicalHostname resource to the Adaptive Server resource group. Specify a logical hostname or floating IP address that can be relocated to the secondary node in case of failover.
scrgadm -a -L -j loghost_resource_name -g resource_group -l logicalhostname
For example:
scrgadm -a -L -j lh_MONEY -g rg_MONEY -l loghost
Create and add the SY.ase resource to the Adaptive Server resource group. Specify any standard resource property values and extension property values for the Adaptive Server resource.
You must specify these three extension property values; otherwise, the command fails: Sybase_home, Dataserver_name, and Dataserver_login_file.
You may let other extension properties use default values. Configure the following standard resource properties which are used by the HA agent fault monitor: Cheap_probe_interval, Thorough_probe_interval, Retry_count, and Retry_interval.
The following command creates the Adaptive Server resource and adds it to the resource group:
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 ase_MONEY -g rg_MONEY \ -t SY.ase \ -x Sybase_home=/sybase \ -x Environment_file=/sybase/SYBASE.sh \ -x Dataserver_name=MONEY \ -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_MONEY
For more information about the standard resource properties, see the Sun Cluster 3.0 documentation. Table 11-1 describes the extension properties for the Adaptive Server resource.
Establish resource dependency between the SY.ase resource and the SUNW.HAStorage resource. This means the SY.ase resource is online only after the SUNW.HAStorage resource is online, and the SY.ase resource is offline before the SUNW.HAStorage resource is offline:
scrgadm -c -j ase_resource_name -y Resource_dependencies=hastorage_resource_name
For example:
scrgadm -c -j ase_MONEY -y Resource_dependencies=has_MONEY
All resources in a resource group implicitly depend on the SUNW.LogocalHostname resource if one is added to the resource group.
Run scswitch to complete the following tasks:
Move the resource group to managed state.
Enable all resources and their monitors.
Bring the resource group online on the primary node.
scswitch -Z -g resource_group_name
For example:
scswitch -Z -g rg_MONEY
See “Using SUNW.HAStoragePlus” to create and add the SUNW.HAStoragePlus resource to the Adaptive Server resource group.