Sun Cluster 3.1 Data Service for SAP

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 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.


    # scrgadm -a -g sap-as-sa-appinstanceid-resource-group \
    -y Maximum_primaries=value \
    -y Desired_primaries=value
    

    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.



    Note –

    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” in Sun Cluster 3.1 Data Service Planning and Administration Guide for more information about using the SUNW.RGOffload resource type.


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


    # scrgadm -a -t SUNW.sap_as_v2
    
  4. 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 3.1 Data Service Planning and Administration Guide.

  5. Enable the failover application server storage resource.


    # scswitch -e -j sap-as-storage-resource
    
  6. 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.

  7. 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
      

    Note –

    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.


Where to Go From Here

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