Sun Cluster Data Service for SAP DB Guide for Solaris OS

How to Register and Configure an SAP xserver Resource

  1. Become superuser on a cluster node.

  2. Register the SUNW.sap_xserver resource type.


    # scrgadm -a -t SUNW.sap_xserver
    
  3. Create a scalable resource group for the SAP xserver resource.

    Configure SAP xserver so that SAP xserver starts on all nodes to which the SAP DB resource can fail over. To implement this configuration, ensure that the node list of the SAP xserver resource group contains all nodes that are in the node list of the SAP DB resource group. This resource group is created when the procedure How to Enable SAP DB to Run in a Cluster is performed.


    # scrgadm -a -g xserver-rg \
    -y Maximum_primaries=nodes-in-sapdb-rg \
    -y Desired_primaries=nodes-in-sapdb-rg \
    -h nodelist
    
    -a

    Specifies that a new configuration is to be added.

    -g xserver-rg

    Specifies that the resource group that you are creating is named xserver-rg.

    -y Maximum_primaries=nodes-in-sapdb-rg

    Specifies the maximum number of nodes on which the SAP xserver resource can start. This number is equal to the number of nodes that are in the node list of the SAP DB resource group. You must specify the same number as the value of the Desired_primaries property.

    -y Desired_primaries=nodes-in-sapdb-rg

    Specifies the desired number of nodes on which the SAP xserver resource can start. This number is equal to the number of nodes that are in the node list of the SAP DB resource group. You must specify the same number as the value of the Maximum_primaries property.

    -h nodelist

    Specifies a comma-separated list of nodes where the resource group can be brought online. Ensure that this node list contains all nodes that are in the node list of the SAP DB resource group.

  4. Create an SAP xserver resource in the resource group that you created in Step 3.


    # scrgadm -a -j xserver-resource -g xserver-rg -t SUNW.sap_xserver 
    
    -a

    Specifies that a new configuration is to be added

    -j xserver-resource

    Specifies that the resource that you are creating is named xserver-resource

    -g xserver-rg

    Specifies that the resource is to be added to the resource group that you created in Step 3

    -t SUNW.sap_xserver

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

  5. Enable the resource group that you created in Step 3.


    # scswitch -Z -g xserver-rg
    
    -Z

    Moves a resource group to the MANAGED state and brings the resource group online

    -g xserver-rg

    Specifies that the resource group that you created in Step 3 is to be moved to the MANAGED state and brought online

  6. Modify the SAP DB resource group to depend on the resource group that you created in Step 3.


    # scrgadm -c -g sapdb-rg -y rg_dependencies=xserver-rg
    
    -c

    Specifies that an existing configuration is to be modified

    -g sapdb-rg

    Specifies that the SAP DB resource group is to be modified

    -y rg_dependencies=xserver-rg

    Specifies that the SAP DB resource group is to depend on the resource group that you created in Step 3


Example 1–7 Configuring a SUNW.sap_xserver Resource

This example shows the sequence of commands that are required to configure an SAP xserver resource. The commands are run on only one cluster node.

  1. The following command creates a scalable resource group to contain an SAP xserver resource for a four-node cluster. The resource group is named xsrvrrg. The xsrvrrg resource group can be brought online on all cluster nodes.


    # scrgadm -a -g xsrvrrg \
    -y Maximum_primaries=4 \
    -y Desired_primaries=4 
    
  2. The following command creates an SAP xserver resource that is named xsrvrrs in the xsrvrrg resource group. The SAP xserver resource is an instance of the SUNW.sap_xserver resource type. The registration of this resource type is not shown in this example.


    # scrgadm -a -j xsrvrrs  -g xsrvrrg -t SUNW.sap_xserver 
    
  3. The following command moves the xsrvrrg resource group to the MANAGED state and brings the resource group online.


    # scswitch -Z -g 
    
  4. The following command modifies the sapdbrg resource group to depend on the xsrvrrg resource group. The creation of the sapdbrg resource group is shown in Example 1–5.


    # scrgadm -c -g sapdbrg -y rg_dependencies=xsrvrrg