To register and configure Sun Cluster HA for SAP for a scalable application server, perform the following steps.
Become superuser on one of the nodes in the cluster that hosts the application server.
Create a scalable resource group for the application server.
# scrgadm -a -g sap-as-sa-appinstanceid-resource-group \ -y Maximum_primaries=value \ -y Desired_primaries=value |
You will not use the shared address to perform load balancing of the application server. The SAP Message Server will be used to perform load balancing of the application server.
If you are using the SUNW.RGOffload resource type to offload an application server within this scalable application server resource group, then set Desired_primaries=0. See "Freeing Node Resources by Offloading Non-critical Resource Groups" on page 332 for more information about using the SUNW.RGOffload resource type.
Register the resource type for the scalable application server.
# scrgadm -a -t SUNW.sap_as_v2 |
Create SAP application server resources in this scalable resource group.
# scrgadm -a -j sap-as-resource -g sap-as-sa-appinstanceid-resource-group \ -t SUNW.sap_as_v2 \ -x SAPSID=SAPSID \ -x As_instance_id=as-instance-id \ -x As_startup_script=as-startup-script \ -x As_shutdown_script=as-shutdown-script |
See "Configuring Sun Cluster HA for SAP Extension Properties" for a list of extension properties.
Enable the scalable resource group that now includes the SAP application server resource.
If you do not use the SUNW.RGOffload resource type with this application server, use the following command.
# scswitch -Z -g sap-as-sa-appinstanceid-resource-group |
If you use the SUNW.RGOffload resource type with this application server, use the following command.
# scswitch -z -h node1, node2 -g sap-as-sa-appinstanceid-resource-group |
If you use the SUW.RGOffload resource type with this application server, you must specify which node you want to bring the resource online by using the -z option instead of the -j option.