Sun Cluster Data Service for SAP Guide for Solaris OS

ProcedureHow 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 scalable data service.

  1. Become superuser on one of the nodes in the cluster that hosts the application server.

  2. Create a scalable resource group for the application server.


    # clresourcegroup create  \
    -p Maximum_primaries=value \
    -p Desired_primaries=value sap-as-sa-appinstanceid-resource-group
    

    Note –

    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.


  3. Register the resource type for the scalable application server.


    # clresourcetype register SUNW.sap_as_v2
    
  4. Add the HAStoragePlus resource to the failover application server resource group.


    # clresourcetype register SUNW.HAStoragePlus 
    # clresource create  \
    -g sap-as-sa-appinstanceid-resource-group \
    -t SUNW.HAStoragePlus \
    -p filesystemmountpoints=mountpoint,... sap-as-storage-resource
    

    The resource is created in the enabled state.

    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.

  5. Create SAP application server resources in this scalable resource group.


    # clresource create -d \
    -g sap-as-sa-appinstanceid-resource-group \
    -t SUNW.sap_as_v2 \
    -p SAPSID=SAPSID  \
    -p As_instance_id=as-instance-id \
    -p As_startup_script=as-startup-script \
    -p As_shutdown_script=as-shutdown-script \
    -p resource_dependencies=sap-as-storage-resource,db-resource sap-as-resource
    

    See Sun Cluster HA for SAP Extension Properties for a list of extension properties.


    Note –

    SAP application requires that the database should be online before it can start. Setting the resource dependency value to the database resource will ensure that it checks for the resource to be online before starting the SAP application server. This dependency check is necessary only if the database is on the same cluster as that of the SAP application server.


  6. Enable the scalable resource group that now includes the SAP application server resource.


    # clresourcegroup online -M sap-as-sa-appinstanceid-resource-group
    
Next Steps

Go to How to Verify Sun Cluster HA for SAP Installation and Configuration and Central Instance.