Sun Cluster 3.0 12/01 Data Services Installation and Configuration Guide

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 With Central Instance

To register and configure Sun Cluster HA for SAP with a 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 SAP data service.

    For central instance, run the scrgadm command to register the resource type SUNW.sap_ci.


    # scrgadm -a -t SUNW.sap_ci
    
  3. Run the scrgadm command to create SAP application resources in this failover resource group.


    # scrgadm -a -j sap-ci-resource -g sap-ci-resource-group -t SUNW.sap_ci 
    
    -x SAPSID=SAPSID 
    
    -x Ci_startup_script=ci-startup-script 
    
    -x Ci_shutdown_script=ci-shutdown-script
    
  4. Run the scswitch command to enable the resource group that now includes the SAP central instance resource.


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

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

To register and configure Sun Cluster HA for SAP with an 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 SAP data server.

    For application server, run the scrgadm command to register the resource type SUNW.sap_as.


    # scrgadm -a -t SUNW.sap_as
    
  3. Run the scrgadm command to create SAP application server resources in this failover resource group.


    # scrgadm -a -j sap-as-resource -g sap-as-resource-group -t SUNW.sap_as 
    
    -x SAPSID=SAPSID 
    
    -x As_instance_id=as-instance-id 
    
    -x As_startup_script=as-startup-script 
    
    -x As_shutdown_script=as-shutdown-script
    
  4. Run the scswitch command to enable the resource group that now includes the SAP application server resource.


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

How to Verify the Sun Cluster HA for SAP Installation With Central Instance

Perform the following steps to verify both the Sun Cluster HA for SAP installation with a central instance and the Sun Cluster HA for DBMS installation and configuration.

  1. Log in to the node that hosts the resource group that contains the SAP central instance resource.

  2. Become user sapsidadm.

  3. Start the SAP GUI to check that Sun Cluster HA for SAP is functioning correctly.

  4. Use the central instance stopsap script to shut down the SAP central instance.

    The Sun Cluster software should restart the central instance because the Sun Cluster software controls the SAP software.

  5. Run the scswitch command to switch the SAP resource group to another cluster member.


    # scswitch -z -h node2 -g sap-ci-resource-group
    
  6. Verify that the SAP central instance starts on this node.

  7. Repeat Step 1 through Step 6 until you have tested all of the potential nodes on which the SAP central instance can run.

How to Verify the Sun Cluster HA for SAP Installation With Application Server

If you have installed and configured any SAP application servers, perform the following steps to verify the Sun Cluster HA for SAP installation and configuration with application servers.

  1. Log in to the node that currently hosts the resource group that contains the SAP application server resource.

  2. Become user sapsidadm.

  3. Start the SAP GUI to check that Sun Cluster HA for SAP is functioning correctly.

  4. Use the application server stopsap script to shut down the SAP application server.

    The Sun Cluster software should restart the application server because the Sun Cluster software controls the SAP software.

  5. Run the scswitch command to switch the resource group that contains the SAP application server resource to another cluster member.


    # scswitch -z -h node2 -g sap-as-resource-group
    
  6. Verify that the SAP application server starts on this node.

  7. Repeat Step 1 through Step 6 until you have tested all of the potential nodes on which the SAP application server can run.