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

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