Use this procedure to configure Sun Cluster HA for SAP as a scalable data service.
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 |
Sun Cluster HA for SAP as a scalable data service does not use shared addresses because the SAP logon group performs the 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 Noncritical Resource Groups in Sun Cluster Data Services Planning and Administration Guide for Solaris OS 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 |
Add the HAStoragePlus resource to the failover application server resource group.
# scrgadm -a -t SUNW.HAStoragePlus # scrgadm -a -j sap-as-storage-resource -g \ -g sap-as-sa-appinstanceid-resource-group \ -t SUNW.HAStoragePlus \ -x filesystemmountpoints=mountpoint, ... \ |
For more details on how to set up an HAStoragePlus resource, see Enabling Highly Available Local File Systems in Sun Cluster Data Services Planning and Administration Guide for Solaris OS.
Enable the failover application server storage resource.
# scswitch -e -j sap-as-storage-resource |
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 \ -y resource_dependencies=sap-as-storage-resource |
See 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 RGOffload resource type with this application server, use the following command.
# scswitch -Z -g sap-as-sa-appinstanceid-resource-group |
If you use the 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 SUNW.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.
Go to How to Verify Sun Cluster HA for SAP Installation and Configuration and Central Instance.