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

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


  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.

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

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