This section contains the procedures you need to configure Sun Cluster HA for SAP.
Use the extension properties in Sun Cluster HA for SAP Extension Properties for the Central Instance and Sun Cluster HA for SAP Extension Properties for the Application Servers to create your resources. Use the command line scrgadm -x parameter=value to configure extension properties when you create your resource. Use the procedure in Chapter 2, Administering Data Service Resources, in Sun Cluster Data Services Planning and Administration Guide for Solaris OS to configure the extension properties if you have already created your resources. You can update some extension properties dynamically. You can update others, however, only when you create or disable a resource. The Tunable entries indicate when you can update each property. See Appendix A, Standard Properties, in Sun Cluster Data Services Planning and Administration Guide for Solaris OS for details on all Sun Cluster properties.
SAP configuration extension properties are as follows:
SAP system ID or SID.
Default: None
Tunable: When disabled
Two-digit SAP system number.
Default: 00
Tunable: When disabled
String of central instance services.
Default: DVEBMGS
Tunable: When disabled
Starting SAP extension properties are as follows:
The interval in seconds to wait between attempting to connect to the database before starting the central instance.
Default: 30
Tunable: When disabled
Name of the SAP startup script for this instance in your SIDadm home directory.
Default: None
Tunable: When disabled
Stopping SAP extension properties are as follows:
Percentage of stop-timeout variables that are used to stop SAP processes. The SAP shutdown script is used to stop processes before calling Process Monitor Facility (PMF) to terminate and then kill the processes.
Default: 95
Tunable: When disabled
Name of the SAP shutdown script for this instance in your SIDadm home directory.
Default: None
Tunable: When disabled
Probe extension properties are as follows:
The name of the SAP Message Server.
Default: sapms SAPSID
Tunable: When disabled
How to check the SAP Message Server with the SAP lgtst utility. The lgtst utility requires a hostname (IP address) as the location for the SAP Message Server. This hostname can be either a Sun Cluster logical hostname or a local host (loopback) name. If you set this resource property to TRUE, use a logical hostname. Otherwise, use a localhost name.
Default: TRUE
Tunable: Any time
Maximum number of times the SAP Message Server check fails before a total failure is reported and the Resource Group Manager (RGM) starts.
Default: 2
Tunable: When disabled
Timeout value in seconds for the probes.
Default: 120
Tunable: Any time
Number of PMF restarts that are allowed for the fault monitor.
Default: 4
Tunable: Any time
Time interval in minutes for the fault monitor restarts.
Default: 2
Tunable: Any time
Development system extension properties are as follows:
Whether the RGM should shut down the development system before starting up the central instance.
Default: FALSE
Tunable: When disabled
SAP System Name for the development system (if you set Shutdown_dev to TRUE, Sun Cluster HA for SAP requires this property).
Default: None
Tunable: When disabled
Script that is used to shut down the development system. If you set Shutdown_dev to TRUE, Sun Cluster HA for SAP requires this property.
Default: None
Tunable: When disabled
Percentage of startup timeouts Sun Cluster HA for SAP uses to shut down the development system before starting the central instance.
Default: 20
Tunable: When disabled
SAP configuration extension properties are as follows:
SAP system name or SAPSID for the application server.
Default: None
Tunable: When disabled
Two-digit SAP system number for the application server.
Default: None
Tunable: When disabled
String of application server services.
Default: D
Tunable: When disabled
Starting SAP extension properties are as follows:
The interval in seconds to wait between attempting to connect to the database and starting the application server.
Default: 30
Tunable: When disabled
Name of the SAP startup script for the application server.
Default: None
Tunable: When disabled
Stopping SAP extension properties are as follows:
Percentage of stop-timeout variables that are used to stop SAP processes. The SAP shutdown script is used to stop processes before calling Process Monitor Facility (PMF) to terminate and then kill the processes.
Default: 95
Tunable: When disabled
Name of the SAP shutdown script for the application server.
Default: None
Tunable: When disabled
Probe extension properties are as follows:
Timeout value in seconds for the probes.
Default: 60
Tunable: Any time
Number of PMF restarts that the probe allows for the fault monitor.
Default: 4
Tunable: Any time
Time interval in minutes for fault monitor restarts.
Default: 2
Tunable: Any time
Use this procedure to configure Sun Cluster HA for SAP with central instance.
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 |
Add the HAStoragePlus resource to the central instance resource group.
# scrgadm -a -t SUNW.HAStoragePlus # scrgadm -a -j ci-storage-resource \ -g sap-ci-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 central instance storage resource.
# scswitch -e -j ci-storage-resource |
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_instance_id=ci-instance-id \ -x Ci_startup_script=ci-startup-script \ -x Ci_shutdown_script=ci-shutdown-script \ -y resource_dependencies=ci-storage-resource |
See 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 |
If you configure the central instance resource to shut down a development system, you will receive the following console message.
ERROR : SAPSYSTEMNAME not set Please check environment and restart |
This message is displayed when the central instance starts on a node that does not have the development system installed and that is not meant to run the central instance. SAP renders this message, and you can safely ignore it.
Go to How to Register and Configure Sun Cluster HA for SAP as a Failover Data Service or How to Register and Configure Sun Cluster HA for SAP as a Scalable Data Service.
Use this procedure to configure Sun Cluster HA for SAP as a failover data service.
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 |
Add the HAStoragePlus resource to the failover application server resource group.
# scrgadm -a -t SUNW.HAStoragePlus # scrgadm -a -j sap-as-storage-resource -g sap-as-fo-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 their 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 \ -y resource_dependencies=sap-as-storage-resource |
See 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 |
Go to How to Verify Sun Cluster HA for SAP Installation and Configuration and Central Instance.
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.