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

ProcedureHow to Enable the Stand-Alone SAP J2EE Engine to Run in a Cluster

  1. Create a resource group for the SAP J2EE engine.

    The SAP J2EE engine resource group can be configured as a failover or scalable resource group to contain the resource for the SAP J2EE engine. If the SAP J2EE engine is configured as a failover resource, the logical hostname for this resource is also contained in this resource group.

    • To create a failover resource group, run the following command.


      # clresourcegroup create j2ee-rg
      
    • To create a scalable resource group, run the following command.


      # clresourcegroup create \
      -p Maximum_primaries=value -p Desired_primaries=value j2ee-rg
      
    -p Maximum_primaries=value

    Specifies the maximum number of primary nodes for the scalable resource group.

    -p Desired_primaries=value

    Specifies the desired number of primary nodes for the scalable resource group.

    j2ee-rg

    Specifies the name of the resource group to be added. This name can be your choice but must be unique for the resource groups within the cluster. Use this name when configuring the SAP J2EE engine resource.

  2. If the resource group that you created in Step 1 is configured as a failover resource group, add a logical hostname resource to the resource group.

    If the resource group that you created in Step 1 is configured as a scalable resource group, skip this step.


    # clreslogicalhostname create -g j2ee-rg j2ee-logical-hostname
    
    -g j2ee-rg

    Specifies the logical hostname resource to be added to the resource group that you created in Step 1.

    j2ee-logical-hostname

    Specifies the logical hostname of the SAP J2EE engine resource. Use this name when configuring the SAP J2EE engine resource.


    Note –

    If you require a fully qualified hostname, you must specify the fully qualified name with the -h option and you cannot use the fully qualified form in the resource name.


  3. Bring online the SAP J2EE engine resource group.


    # clresourcegroup online -M j2ee-rg
    
    -M

    Specifies that the resource group is to be brought into the managed state.

    j2ee-rg

    Specifies the name of the resource group that needs to be brought online.