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.

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


    # scrgadm -a  -t SUNW.saprepl
    
    -a

    Specifies that a new resource type is to be added.

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


    # scrgadm -a -j repl-rs -g repl-rg -t SUNW.saprepl \
    -x Replica_Profile=path-to-repl-profile \
    -x Replica_Server=path-to-repl-server-binary \
    -x SAP_User=repl-user \
    -y Resource_Dependencies=enq-rs,hsp-repl-rs
    
    -a

    Specifies that a new resource is to be added.

    -j repl-rs

    Specifies the name of the resource to be added.

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

    -x Replica_Profile=path-to-repl-profile

    Specifies the full path to the SAP replica server profile.

    -x Replica_Server=path-to-repl-server-binary

    Specifies the full path to the SAP replica server executable.

    -x SAP_User=repl-user

    Specifies the administration user for the SAP replica server.

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

  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.


    # scswitch -ej repl-rs
    
    -ej

    Specifies that the specified resource is to be enabled.

    repl-rs

    Specifies the name of the resource to be enabled.