Use the procedures in this section to perform the following tasks.
Register and configure Sun Cluster HA for SAP central instance.
Register and configure Sun Cluster HA for SAP with a failover application server.
Register and configure Sun Cluster HA for SAP with a scalable application server.
To register and configure Sun Cluster HA for SAP central instance, perform the following steps.
Become superuser on one of the nodes in the cluster that hosts the central instance.
Register the resource type for the central instance.
# scrgadm -a -t SUNW.sap_ci | SUNW.sap_ci_v2 |
Create SAP central instance resources in this failover resource group.
# scrgadm -a -j sap-ci-resource -g sap-ci-resource-group \ -t SUNW.sap_ci | SUNW.sap_ci_v2 \ -x SAPSID=SAPSID \ -x Ci_startup_script=ci-startup-script \ -x Ci_shutdown_script=ci-shutdown-script |
See "Configuring Sun Cluster HA for SAP Extension Properties" for a list of extension properties.
Enable the failover resource group that now includes the SAP central instance resource.
# scswitch -Z -g sap-ci-resource-group |
Go to "How to Register and Configure Sun Cluster HA for SAP for Failover Application Server" or "How to Register and Configure Sun Cluster HA for SAP for Scalable Application Server".
To register and configure Sun Cluster HA for SAP for a failover application server, perform the following steps.
Become superuser on one of the nodes in the cluster that hosts the application server.
Register the resource type for the failover application server.
# scrgadm -a -t SUNW.sap_as | SUNW.sap_as_v2 |
Create SAP application server resources in this failover resource group.
# scrgadm -a -j sap-as-resource -g sap-as-fo-resource-group \ -t SUNW.sap_as | 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 failover resource group that now includes the SAP application server resource.
# scswitch -Z -g sap-as-fo-resource-group |
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.