Sun Cluster Data Service for SAP Web Application Server Guide for Solaris OS

ProcedureHow to Register and Configure an SAP Replica Server Resource

The SAP replica server resource must be in a different failover resource group from the SAP enqueue server resource, because the SAP replica server resource must not fail over with the SAP enqueue server resource.

The SAP replica server resource is configured to depend on its associated HAStoragePlus resource being online. The SAP replica server resource also depends on the SAP enqueue server resource. These dependencies ensure that the SAP replica server does not attempt to start until both its associated HAStoragePlus resource and the SAP enqueue server are online.

  1. Register SUNW.saprepl, the resource type for the SAP replica server.


    # clresourcetype register SUNW.saprepl
    
    register

    Specifies that a new resource type is to be registered.

    SUNW.saprepl

    Specifies the name of the resource type to be added. This name is predefined for the SAP replica server.

  2. Create an SAP replica server resource in the SAP replica server resource group.


    # clresource create -d -g repl-rg -t SUNW.saprepl \
    -p replica_profile=path-to-repl-profile \
    -p replica_server=path-to-repl-server-binary \
    -p sap_user=repl-user \
    -p resource_dependencies=enq-rs,hsp-repl-rs repl-rs
    
    -g repl-rg

    Specifies the resource group to which the resource is to be added. The SAP replica server resource group is configured as a failover resource group.

    -t SUNW.saprepl

    Specifies that the resource is an instance of the SUNW.saprepl resource type.

    -p replica_profile=path-to-repl-profile

    Specifies the full path to the SAP replica server profile.

    -p replica_server=path-to-repl-server-binary

    Specifies the full path to the SAP replica server executable.

    -p sap_user=repl-user

    Specifies the administration user for the SAP replica server.

    -p resource_dependencies=enq-rs,hsp-repl-rs

    Specifies that the following resources must be online before the SAP replica server resource can be online:

    • SAP enqueue server resource

    • HAStoragePlus resource for the global device group on which the SAP replica server is installed

    repl-rs

    Specifies the name of the resource to be added.

    The resource is created in the enabled state.

  3. Verify that the default values for the SAP replica server extension properties are acceptable.

    Refer to SUNW.saprepl Extension Properties.

  4. Enable the SAP replica server resource.


    # clresource enable repl-rs
    
    enable

    Specifies that the specified resource is to be enabled.

    repl-rs

    Specifies the name of the resource to be enabled.