Sun Cluster 3.0 5/02 Supplement

Registering and Configuring Sun Cluster HA for SAP

Use the procedures in this section to perform the following tasks.

How to Register and Configure Sun Cluster HA for SAP Central Instance

To register and configure Sun Cluster HA for SAP central instance, perform the following steps.

  1. Become superuser on one of the nodes in the cluster that hosts the central instance.

  2. Register the resource type for the central instance.


    # scrgadm -a -t SUNW.sap_ci | SUNW.sap_ci_v2
    

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

  4. Enable the failover resource group that now includes the SAP central instance resource.


    # scswitch -Z -g sap-ci-resource-group
    

Where to Go From Here

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

How to Register and Configure Sun Cluster HA for SAP for Failover Application Server

To register and configure Sun Cluster HA for SAP for a failover application server, perform the following steps.

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

  2. Register the resource type for the failover application server.


    # scrgadm -a -t SUNW.sap_as | SUNW.sap_as_v2
    

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

  4. Enable the failover resource group that now includes the SAP application server resource.


    # scswitch -Z -g sap-as-fo-resource-group
    

Where to Go From Here

Go to "How to Verify the Installation and Configuration of Sun Cluster HA for SAP, Central Instance, and DBMS".

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 scalable application server, perform the following steps.

  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
    


    only -

    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.



    only -

    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.


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


    # scrgadm -a -t SUNW.sap_as_v2
    

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

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


    only -

    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.


Where to Go From Here

Go to "How to Verify the Installation and Configuration of Sun Cluster HA for SAP, Central Instance, and DBMS".