Sun Cluster 2.2 Software Installation Guide

Configuring Sun Cluster HA for SAP (SAP With Oracle)

This section describes how to register and configure Sun Cluster HA for SAP.

How to Configure Sun Cluster HA for SAP (SAP With Oracle)
  1. If Sun Cluster HA for SAP has not yet been installed, install it now by running scinstall(1M) on all nodes and adding the Sun Cluster HA for SAP data service.

    See "Installation Procedures", for details. If the cluster is already running, you must stop it before installing the data service.

  2. Unregister the Oracle data service and then re-register the data services in the order shown below.

    If you configure separate logical hosts for the SAP central instance and database instance, you must unregister the Oracle data service and then re-register the data services in the order shown below. Data services are started in the reverse order to which they were registered, so registering the data services in the following order guarantees that they will be started in the correct sequence during cluster start-up:


    # haoracle stop SC2
    # hareg -n oracle
    # hareg -u oracle
    # hareg -s -r sap -h CIlogicalhost
    # hareg -s -r nfs -h CIlogicalhost
    # hareg -s -r oracle -h DBlogicalhost
    # haoracle start SC2
    # hareg -y nfs,oracle
    


    Note -

    The registration order is not enforced by the data services or by Sun Cluster, and therefore is lost upon subsequent cluster reconfigurations. You must re-establish the order each time you unregister and re-register the data services.


  3. Verify that all nodes are running in the cluster.

  4. Create a new Sun Cluster HA for SAP instance using the hadsconfig(1M) command.

    The hadsconfig(1M) command is used to create, edit, and delete instances of the Sun Cluster HA for SAP data service. The configuration parameters are described in "Configuration Parameters for Sun Cluster HA for SAP (SAP With Oracle)".

    Run this command on only one node, while all nodes are running in the cluster:


    # hadsconfig
    

  5. If Sun Cluster HA for SAP is dependent upon other data services within the same logical host, set dependencies on those data services.

    See "Setting Data Service Dependencies for SAP With Oracle". If you do set dependencies, start all services on which SAP depends before proceeding.

  6. Stop the central instance before starting SAP under the control of Sun Cluster HA for SAP.


    # su - <sapsid>adm
    $ stopsap r3
    


    Caution - Caution -

    The SAP central instance must be stopped before Sun Cluster HA for SAP is turned on.


  7. Turn on the Sun Cluster HA for SAP instance.


    # hareg -y sap
    

  8. Test switchover of Sun Cluster HA for SAP.

    For example:


    # scadmin switch clustername phys-hahost2 CIloghost
    

  9. (Optional) If you have application servers or a test/development system, customize and test the hasap_start_all_instances and hasap_stop_all_instances scripts.

    See "Configuration Options for Application Servers and Test/Development Systems", for details. Test switchover of Sun Cluster HA for SAP and verify start and stop of application servers. Verify that the test/development system stops when the central instance logical host is switched to the test/development system physical host.


    # scadmin switch clustername phys-hahost1 CIloghost