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

Registering and Configuring Sun Cluster HA for SAP Web Application Server

To enable the Sun Cluster HA for SAP Web Application Server data service to make SAP Web Application Server applications highly available, configure the data service as described in the procedures in this section. These procedures perform the following tasks.

The resource groups were created in How to Enable the SAP Web Application Server to Run in a Cluster and in How to Enable the Stand-Alone SAP J2EE Engine to Run in a Cluster.

Before You Begin

Before performing these procedures, ensure that the Sun Cluster HA for SAP Web Application Server data service packages are installed.

The procedures in this section assume that the database resources have been previously created and that these resources are online.

Perform these procedures as superuser on a cluster node.

Setting Sun Cluster HA for SAP Web Application Server Extension Properties

The extension properties for Sun Cluster HA for SAP Web Application Server are described in Appendix A, Sun Cluster HA for SAP Web Application Server Extension Properties.

You can update some extension properties dynamically. You can update other properties, however, only when you create or disable a resource. The Tunable entry indicates when you can update a property.

The instructions for registering and configuring resources explain how to set only extension properties that Sun Cluster HA for SAP Web Application Server requires you to set.

To set an extension property of a resource, include the following option in the scrgadm(1M) command that creates or modifies the resource:


-x property=value 
-x property

Identifies the extension property that you are setting

value

Specifies the value to which you are setting the extension property

You can also use the procedures in Chapter 2, Administering Data Service Resources, in Sun Cluster Data Services Planning and Administration Guide for Solaris OS to configure resources after the resources are created.

ProcedureHow to Register and Configure HAStoragePlus Resources for the SAP Central Services Components

An HAStoragePlus resource is created to ensure the high availability of the global device groups where the components are installed.

Steps
  1. Register the SUNW.HAStoragePlus resource type.


    # scrgadm -a -t SUNW.HAStoragePlus
    
  2. Create an HAStoragePlus resource for the global device group on which the SAP enqueue server and the SAP message server are installed.

    Create this resource in the SAP central services resource group, which is the resource group to which the SAP enqueue server and the SAP message server resources belong.


    # scrgadm -a -j hsp-central-rs -g central-rg -t SUNW.HAStoragePlus \
    -x filesystemmountpoints="mountpoint-list" \
    -x globaldevicepaths=sapenq-device-group
    
    -a

    Specifies that a new configuration is to be added.

    -j hsp-central-rs

    Specifies the name of the resource that you are creating.

    -g central-rg

    Specifies that the resource is to be added to the SAP central services resource group.

    -t SUNW.HAStoragePlus

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

    -x filesystemmountpoints="mountpoint-list"

    Specifies a list of valid mount points for the file system. For more information, see the SUNW.HAStoragePlus(5) man page.

    -x globaldevicepaths=sapenq-device-group

    Specifies the name of the global device group on which the SAP enqueue server software and the SAP message server software are installed.

  3. Enable the HAStoragePlus resource that you created in Step 2.


    # scswitch -ej hsp-central-rs
    
    -ej hsp-central-rs

    Specifies that the HAStoragePlus resource that you created in Step 2 is to be enabled

  4. Create an HAStoragePlus resource for the global device group on which SAP replica server is installed.

    Create this resource in the SAP replica server resource group.


    # scrgadm -a -j hsp-repl-rs -g repl-rg -t SUNW.HAStoragePlus \
    -x filesystemmountpoints="mountpoint-list" \
    -x globaldevicepaths=saprepl-device-group
    
    -a

    Specifies that a new configuration is to be added.

    -j hsp-repl-rs

    Specifies the name of the resource that you are creating.

    -g repl-rg

    Specifies that the resource is to be added to the SAP replica server resource group.

    -t SUNW.HAStoragePlus

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

    -x filesystemmountpoints="mountpoint-list"

    Specifies a list of valid mount points for the file system. For more information, see the SUNW.HAStoragePlus(5) man page.

    -x globaldevicepaths=saprepl-device-group

    Specifies the name of the global device group on which the SAP replica server software is installed.

  5. Enable the HAStoragePlus resource that you created in Step 4.


    # scswitch -ej hsp-repl-rs
    
    -ej hsp-repl-rs

    Specifies that the HAStoragePlus resource that you created in Step 4 is to be enabled

ProcedureHow to Register and Configure an SAP Enqueue Server Resource

The SAP enqueue server resource and the SAP message server resource must be in the same failover resource group because they fail over together.

The SAP enqueue server resource is configured to depend on its associated HAStoragePlus resource. This dependency ensures that the SAP enqueue server does not attempt to start until its associated HAStoragePlus resource is online.

Steps
  1. Register SUNW.sapenq, the resource type for the SAP enqueue server.


    # scrgadm -a  -t SUNW.sapenq
    
    -a

    Specifies that a new resource type is to be added.

    -t SUNW.sapenq

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

  2. Create an SAP enqueue server resource in the SAP central services resource group.


    # scrgadm -a -j enq-rs -g central-rg -t SUNW.sapenq \
    -x Enqueue_Profile=path-to-enq-profile \
    -x Enqueue_Server=path-to-enq-server-binary \
    -x SAP_User=enq-user \
    -x Enqueue_Instance_Number=enq-instance \
    -y Resource_Dependencies=hsp-central-rs
    
    -a

    Specifies that a new resource is to be added.

    -j enq-rs

    Specifies the name of the resource to be added.

    -g central-rg

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

    -t SUNW.sapenq

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

    -x Enqueue_Profile=path-to-enq-profile

    Specifies the full path to the SAP enqueue server profile.

    -x Enqueue_Server=path-to-enq-server-binary

    Specifies the full path to the SAP enqueue server executable.

    -x SAP_User=enq-user

    Specifies the administration user for the SAP enqueue server.

    -x Enqueue_Instance_Number=enq-instance

    Specifies the two-digit instance number for the SAP enqueue server. This number is the value of SAPSYSTEM in the SAP profile for SAP enqueue server.

    -y Resource_Dependencies=hsp-central-rs

    Specifies that the HAStoragePlus resource for the global device group on which SAP enqueue server is installed must be online in order for the SAP enqueue server to be online.

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

    Refer to SUNW.sapenq Extension Properties.

  4. Ensure that SAP enqueue server is not already running on the cluster.

    If SAP enqueue server is already running on any node of the cluster, you risk the simultaneous running of multiple SAP enqueue server processes.

  5. Enable the SAP enqueue server resource.


    # scswitch -ej enq-rs
    
    -ej

    Specifies that the specified resource is to be enabled.

    enq-rs

    Specifies the name of the resource to be enabled.

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.

ProcedureHow to Register and Configure an SAP Message Server Resource

The SAP enqueue server resource and the SAP message server resource must be in the same failover resource group because they fail over together.

The SAP message server resource is configured to depend on its associated HAStoragePlus resource. This dependency ensures that the SAP message server does not attempt to start until its associated HAStoragePlus resource is online.

Steps
  1. Register SUNW.sapscs, the resource type for the SAP message server.


    # scrgadm -a  -t SUNW.sapscs
    
    -a

    Specifies that a new resource type is to be added.

    -t SUNW.sapscs

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

  2. Create an SAP message server resource in the SAP central services resource group.


    # scrgadm -a -j msg-rs -g central-rg -t SUNW.sapscs \
    -x SAP_SID=scs-system-ID \
    -x SAP_Instance_Number=scs-instance-number \
    -x SAP_Instance_Name=scs-instance-name \
    -x Msg_Server_Port=msg-server-port \
    -x Scs_Startup_Script=scs-server-startup-script \
    -x Scs_Shutdown_Script=scs-server-shutdown-script \
    -y Resource_Dependencies=hsp-central-rs
    
    -a

    Specifies that a new resource is to be added.

    -j msg-rs

    Specifies the name of the resource to be added.

    -g central-rg

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

    -t SUNW.sapscs

    Specifies that the SAP message server resource is an instance of the resource type that is named SUNW.sapscs.

    -x SAP_SID=scs-system-ID

    Specifies the SAP system ID for the SAP message server. This ID is SAPSYSTEMNAME in the SAP profile.

    -x SAP_Instance_Number=scs-instance-number

    Specifies the instance number for the SAP message server. This number is SAPSYSTEM in the SAP profile.

    -x SAP_Instance_Name=scs-instance-name

    Specifies the instance name for the SAP message server. This name is INSTANCE_NAME in the SAP profile.

    -x Msg_Server_Port=msg-server-port

    Specifies the listen port for the SAP message server.

    -x Scs_Startup_Script=scs-server-startup-script

    Specifies the full path to the startup script for the SAP message server instance.

    -x Scs_Shutdown_Script=scs-server-shutdown-script

    Specifies the full path to the shutdown script for the SAP message server instance.

    -y Resource_Dependencies=hsp-central-rs

    Specifies that the HAStoragePlus resource for the global device group on which the SAP message server is installed must be online in order for the SAP message server to be online.

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

    Refer to SUNW.sapscs Extension Properties.

  4. Enable the SAP message server resource.


    # scswitch -ej msg-rs
    
    -ej

    Specifies that the specified resource is to be enabled.

    msg-rs

    Specifies the name of the resource to be enabled.

ProcedureHow to Register and Configure an SAP Web Application Server Component

An HAStoragePlus resource is created to ensure the high availability of the global device groups where the components are installed.

The resource for the SAP web application server component is configured to depend on its associated HAStoragePlus resource. The resource for the SAP web application server component also depends on the database resource, as well as the SAP message server resource. These dependencies ensure that the resource for the SAP web application server component does not attempt to start until its associated HAStoragePlus resource, the database, and the SAP message server resource are all online.


Note –

The SAP web application server component can be configured to run under PMF or not to run under PMF. See the extension property Webas_Use_Pmf in SUNW.sapwebas Extension Properties. If the component is configured to run under PMF control, and if the network is not available, PMF stops the resource in such a way that no data is lost. However, if the component is configured not to run under PMF, and if the network is not available, the resource and the resource group for the SAP web application server component are in the stop_failed state and user intervention is required. Because no SAP utility is available to stop all SAP processes, in order to prevent possible data corruption, the data service does not automatically restart the processes.


Steps
  1. Create an HAStoragePlus resource for the global device group on which SAP web application server component is installed.

    Create this resource in the SAP web application server resource group.


    # scrgadm -a -j hsp-webas-rs -g webas-rg -t SUNW.HAStoragePlus \
    -x filesystemmountpoints="mountpoint-list" \
    -x globaldevicepaths=sapwebas-device-group
    
    -a

    Specifies that a new configuration is to be added.

    -j hsp-webas-rs

    Specifies the name of the resource that you are creating.

    -g webas-rg

    Specifies that the resource is to be added to the SAP web application server resource group. This resource group can be failover or scalable.

    -t SUNW.HAStoragePlus

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

    -x filesystemmountpoints="mountpoint-list"

    Specifies a list of valid mount points for the file system. For more information, see the SUNW.HAStoragePlus(5) man page.

    -x globaldevicepaths=sapwebas-device-group

    Specifies the name of the global device group on which the SAP web application server component software is installed.

  2. Enable the HAStoragePlus resource that you created in Step 1.


    # scswitch -ej hsp-webas-rs
    
    -ej hsp-webas-rs

    Specifies that the HAStoragePlus resource that you created in Step 1 is to be enabled

  3. Register SUNW.sapwebas, the resource type for the SAP web application server component.


    # scrgadm -a  -t SUNW.sapwebas
    
    -a

    Specifies that a new resource type is to be added.

    -t SUNW.sapwebas

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

  4. Create a resource for the SAP web application server component.

    The SAP web application server component can be configured either as a failover resource or as a scalable resource by adding the resource to a resource group that was created as a failover or a scalable resource group.


    # scrgadm -a -j webas-rs -g webas-rg -t SUNW.sapwebas \
    -x SAP_SID=webas-system-ID \
    -x SAP_Instance_Number=webas-instance-number \
    -x SAP_Instance_Name=webas-instance-name \
    -x Webas_Probe_J2ee=True \
    -y Resource_Dependencies=hsp-webas-rs,db-webas-rs,msg-rs
    
    -a

    Specifies that a new resource is to be added.

    -j webas-rs

    Specifies the name of the resource to be added.

    -g webas-rg

    Specifies the resource group to which the resource is to be added. The SAP web application server resource group can be configured as a failover or a scalable resource group.

    -t SUNW.sapwebas

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

    -x SAP_SID=webas-system-ID

    Specifies the SAP system ID for the SAP web application server component. This ID is SAPSYSTEMNAME in the SAP profile.

    -x SAP_Instance_Number=webas-instance-number

    Specifies the two-digit SAP system number for the SAP web application server component instance. This number is SAPSYSTEM in the SAP profile.

    -x SAP_Instance_Name=webas-instance-name

    Specifies the instance name for the SAP web application server component. This name is INSTANCE_NAME in the SAP profile.

    -x Webas_Probe_J2ee=True

    Specifies that the SAP J2EE engine is to be probed. This property must be set to True when the SAP J2EE engine is included.

    -y Resource_Dependencies=hsp-webas-rs,db-webas-rs,msg-rs

    Specifies that the following resources must be online before the resource for the SAP web application server component can be online:

    • HAStoragePlus resource for the global device group on which the SAP web application server component is installed.

    • Database resource. The database resource is created by the relevant data service.

    • SAP message server resource.

  5. Verify that the default values for the SAP web application server component extension properties are acceptable.

    Refer to SUNW.sapwebas Extension Properties.

  6. Enable the SAP web application server component resource.


    # scswitch -ej webas-rs
    
    -ej

    Specifies that the specified resource is to be enabled.

    webas-rs

    Specifies the name of the resource to be enabled.

ProcedureHow to Register and Configure a Stand-Alone SAP J2EE Engine Resource

Steps
  1. Become superuser on one of the nodes in the cluster that is to host the SAP J2EE engine.

  2. Register SUNW.gds, the resource type for the SAP J2EE engine.


    # scrgadm -a -t SUNW.gds
    
    -a

    Specifies that a new resource type is to be added.

    -t SUNW.gds

    Specifies the name of the resource type to be added. This name is predefined for the SAP J2EE engine.

  3. Create an HAStoragePlus resource for the SAP J2EE engine disk storage.


    # scrgadm -a -j hsp-j2ee-rs -g j2ee-rg -t SUNW.HAStoragePlus  \
    -x filesystemmountpoints="mountpoint-list"
    
    -a

    Specifies that a new configuration is to be added.

    -j hsp-j2ee-rs

    Specifies the name of the resource that you are creating.

    -g j2ee-rg

    Specifies that the resource is to be added to the SAP J2EE engine resource group.

    -t SUNW.HAStoragePlus

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

    -x filesystemmountpoints="mountpoint-list"

    Specifies a list of valid mount points for the file system. For more information, see the SUNW.HAStoragePlus(5) man page.

  4. Configure the Sun Cluster SAP J2EE engine resource.

    The configuration file for the SAP J2EE engine is /opt/SUNWscswa/util/ha_sap_j2ee_config.


    #
    # Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
    # Use is subject to license terms.
    # 
    # This file will be sourced in by ha_sap_j2ee_register and the
    # parameters listed below will be used.
    #
    # These parameters can be customized in (key=value) form
    #
    #              RS - Name of the resource for the application
    #              RG - Name of the resource group containing RS
    #       JAVA_HOME - Name of the Java home directory
    #          SAPSID - The SAP System Name
    #   J2EE_INSTANCE - Name of the SAP J2EE Engine instance
    #              LH - Name of the LogicalHostname SC resource
    #    DEPENDENT_RS - Resources on which SAP J2EE SC resource depends
    # 	      for example, HAStoragePlus, SCS, ENQ, and DB SC resources
    #	 SCALABLE - Scalable or not. TRUE/FALSE
    #	
    #
    # Optional parameters
    #
    # SAP_START - Optional, name of a startsap script within
    #	 SAPSIDadm home directory that will be used
    #	 instead of the default startsap.
    #
    #	 SAP_STOP  - Optional, name of a stopsap script within
    #	 SAPSIDadm home directory that will be used
    #	 instead of the default stopsap.
    #
    #	 SAP_LOGDIR - Optional, where to put the logfiles from
    #	 startsap and stopsap. Default is the SAPSIDadm home
    # directory.
    #	 SAPSIDadm must be owner and have write permissions
    #
    #	 RESOURCE_PROJECT_NAME - Optional, name of a SRM project.
    #
    # The following examples illustrate sample parameters
    # for SAP J2EE Engine Instance
    #
    #	 RS=RES-SAP-J2EE
    #	 RG=RG-SAP-J2EE
    #	 JAVA_HOME=/usr/java
    #	 SAPSID=TST
    #	 J2EE_INSTANCE=JC00
    #	 LH=j2eelh           For Scalable, LH= 
    #	 DEPENDENT_RS=RES-SAP-J2EE-HAS,RES-SAP-SCS,RES-SAP-ENQ,RES-SAP-DB
    #
    #	 SAP_START=
    #	 SAP_STOP=
    #	 SAP_LOGDIR=
    #	 RESOURCE_PROJECT_NAME=
    #	 SCALABLE=FALSE      For Scalable, SCALABLE=TRUE
    #
    #
    RS=
    RG=
    JAVA_HOME=
    SAPSID=
    J2EE_INSTANCE=
    LH=
    DEPENDENT_RS=
    SAP_START=
    SAP_STOP=
    SAP_LOGDIR=
    RESOURCE_PROJECT_NAME=
    SCALABLE=

    The SAP J2EE engine can be configured as a failover resource or as a scalable resource. You can edit the ha_sap_j2ee_config file as follows.

    • If the resource is scalable, set SCALABLE=TRUE and set LH to null (LH= ).

    • If the resource is failover, set SCALABLE=FALSE and set LH=logical-host resource.

    • Set the resource dependencies.

      Set DEPENDENT_RS=db-rs,enq-rs,msg-rs.

      Before the SAP J2EE engine resource can be online, the following resources must be online:

      • Database resource. The database resource is created by the relevant data service.

      • SAP enqueue server resource.

      • SAP message server resource.

    • If SAP_LOGDIR is specified, the file must have ownership and write permissions set for the sapsidadm user.

  5. Register the Sun Cluster SAP J2EE engine resource.


    # cd /opt/SUNWscswa/util 
    # ./ha_sap_j2ee_register
    
  6. Enable the Sun Cluster SAP J2EE engine resource.


    # scswitch -ej j2ee-rs 
    
    -ej

    Specifies that the specified resource is to be enabled.

    j2ee-rs

    Specifies the name of the resource to be enabled.

Registering More Than One Resource

The ha_sap_j2ee_conf configuration file and the ha_sap_j2ee_register registration script can register only one resource at a time. If you want to register more resources of this type, either for different instances on the same SAP system (with the same SAPSID) or for different SAP systems (with different SAPSIDs), perform either of the following tasks.

When registering multiple resources, ensure that all the parameters in the configuration file are set correctly for the resource. In particular, the setting of the SCALABLE parameter and the LH parameter depend on whether the resource is failover or scalable.

Examples of Configuring the SAP Web Application Server

The following examples show how the SAP Web Application Server can be configured to be highly available in Sun Cluster. The examples assume that the resource groups have been created, the resource groups are online, and the resource types have been registered.


Example 3 Configuring the SAP Central Services Components

In this example the SAP central services resource group is called centralrg, and the SAP replica server resource group is called replrg.

  1. To create an HAStoragePlus resource called hspcentralrs for the global device group enqdg in the resource group centralrg, the following command is run. The group centraldg is the global device group on which the SAP enqueue server is installed, and centralrg is the resource group to which the SAP enqueue server resource and the SAP message server resource belong.


    # scrgadm -a -j hspcentralrs  -g centralrg -t SUNW.HAStoragePlus \
    -x filesystemmountpoints="/global/sapdata" \
    -x globaldevicepaths=centraldg
    
  2. To enable the hspcentralrs resource, the following command is run.


    # scswitch -ej hspcentralrs
    
  3. To create an HAStoragePlus resource called hspreplrs for the global device group repldg in the resource group replrg, the following command is run. The group repldg is the global device group on which SAP replica server is installed, and replrg is the resource group to which the SAP replica server resource belongs.


    # scrgadm -a -j hspreplrs  -g replrg -t SUNW.HAStoragePlus \
    -x filesystemmountpoints="/global/sapdata" \
    -x globaldevicepaths=repldg
    
  4. To enable the hspreplrs resource, the following command is run.


    # scswitch -ej hspreplrs
    
  5. To create an SAP enqueue server resource called enqrs in the resource group centralrg, the following command is run. This resource is dependent on the hspcentralrs resource.


    # scrgadm -a -j enqrs  -g centralrg  -t SUNW.sapenq \
    -x Enqueue_Profile=/usr/sap/SC3/SYS/profile/SC3_ASCS07_central-lh \
    -x Enqueue_Server=/sapmnt/SC3/exe/enserver \
    -x SAP_User=sc3adm \
    -x Enqueue_Instance_Number=07 \
    -y Resource_Dependencies=hspcentralrs
    
  6. To enable the enqrs resource, the following command is run.


    # scswitch -ej enqrs
    
  7. To create an SAP replica server resource called replrs in the resource group replrg, the following command is run. This resource is dependent on the hspreplrs resource and the enqrs resource.


    # scrgadm -a -j replrs  -g replrg  -t SUNW.saprepl \
    -x Replica_Profile=/usr/sap/SC3/SYS/profile/SC3_REP07 \
    -x Replica_Server=/sapmnt/SC3/exe/enrepserver \
    -x SAP_User=sc3adm \
    -y Resource_Dependencies=hspreplrs,enqrs
    
  8. To create an SAP message server resource called msgrs in the resource group centralrg, the following command is run. This resource is dependent on the hspcentralrs resource. The SAP message server resource is an instance of the resource type that is named SUNW.sapscs.


    # scrgadm -a -j msgrs  -g centralrg  -t SUNW.sapscs \
    -x SAP_SID=SC3 \
    -x SAP_Instance_Number=07 \
    -x SAP_Instance_Name=ASCS07 \
    -x Msg_Server_Port=3607 \
    -x Scs_Startup_Script=/usr/sap/SC3/SYS/exe/run/my_startsap \
    -x Scs_Shutdown_Script=/usr/sap/SC3/SYS/exe/run/my_stopsap \
    -y Resource_Dependencies=hspcentralrs
    
  9. To enable the replrs resource and the msgrs resource, the following command is run.


    # scswitch -ej replrs,msgrs
    


Example 4 Configuring the SAP Web Application Server Component

In this example the resource group for the SAP web application server component is called webasrg.

  1. To create an HAStoragePlus resource called hspwebasrs for the global device group webasdg in the resource group webasrg, the following command is run. The group webasdg is the device group on which the SAP web application server component is installed, and webasrg is the resource group to which the SAP web application server resource belongs.


    # scrgadm -a -j hspwebasrs  -g webasrg -t SUNW.HAStoragePlus \ 
    -x filesystemmountpoints="/global/sapdata" \ 
    -x globaldevicepaths=webasdg
    
  2. To enable the haspwebasrs resource, the following command is run.


    # scswitch -ej hspwebasrs
    
  3. To create a resource called webasrs for the SAP web application server component, the following command is run. This resource is created in the failover resource group webasrg. This resource is dependent on the hspwebasrs resource. The webasrs resource is also dependent on the database resource dbwebasrs, which has already been created by the relevant data service. In addition, this resource is dependent on the SAP message server resource, which is called msgrs in the previous example.


    # scrgadm -a -j webasrs -g webasrg -t SUNW.sapwebas \ 
    -x SAP_SID=SC3 \
    -x SAP_Instance_Number=08 \
    -x SAP_Instance_Name=D08 \
    -y Resource_Dependencies=hspwebasrs,dbwebasrs,msgrs
    
  4. To enable the webasrs resource, the following command is run.


    # scswitch -ej webasrs