Sun Cluster Data Service for Sun Java System Application Server Guide for Solaris OS

ProcedureHow to Register and Configure the Sun Cluster HA for Sun Java System Application Server as a Data Service Mastered on Multiple Nodes

This procedure assumes that you installed the data service package during your initial Sun Cluster HA for Sun Java System Application Server installation. If you did not install the Sun Java System Application Server package as part of your initial installation, go to Installing the Sun Cluster HA for Sun Java System Application Server Packages to install the data service package.

Before you begin to register and configure Sun Cluster HA for Sun Java System Application Server as a service mastered on multiple nodes at the same time, consider the following requirements.

See Multiple Masters Configuration Overview for conceptual information related to this procedure.


Note –

Do not use the Sun Java System Application Server command-line or GUI administrative tools to start or stop the Sun Java System Application Server instances. The Sun Java System Application Server administrative server might not display the correct status of an application server instance that is configured as a service mastered on multiple nodes.


  1. On one of the nodes in the cluster that hosts the application server, become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.

  2. Add a scalable resource group for the Sun Java System Application Server.


    # clresourcegroup create [-n node-zone-list] \
    -p Maximum_primaries=value \
    -p Desired_primaries=value resource-group
    
  3. Register the resource type for the Sun Java System Application Server.


    # clresourcetype register SUNW.s1as
    
  4. Add the Sun Java System Application Server resource instance to the resource group.


    # clresource create -g resource-group -t SUNW.s1as \ 
    -p Confdir_list=install-directory/domains/domain/server \
    -p Monitor_Uri_List=http://localhost[:port][/path] resource
    
    -t SUNW.s1as

    Specifies the type of resource to add.

    -p Confdir_list=install-directory/domains/domain/server

    Specifies a path for your Sun Java System Application Server configuration directory. The Confdir_list extension property is required and must have exactly one entry.

    -p Monitor_Uri_List=localhost[:port][/path]

    Specifies URIs from which Sun Cluster HA for Sun Java System Application Server makes requests. The Monitor_Uri_List extension property is required.

    resource

    Specifies the Sun Java System Application Server application resource name.

    The resource is created in the enabled state.

  5. Bring the scalable resource group online.


    # clresourcegroup online resource-group
    

Example 2–3 Registering and Configuring Sun Cluster HA for Sun Java System Application Server as a Service Mastered on Multiple Nodes

This example shows how to register Sun Cluster HA for Sun Java System Application Server as a service mastered on two nodes at the same time.

Cluster Information

  1. To create a scalable resource group, the following command is run.


    # clresourcegroup create -n phys-schost-1,phys-schost-2 \ 
    -p Maximum_primaries=2 \
    -p Desired_primaries=2 appserv-rg
    
  2. To register the SUNW.s1as resource type, the following command is run.


    # clresourcetype register SUNW.s1as
    
  3. To create a Sun Java System Application Server resource and add it to the resource group, the following command is run.


    # clresource create -g appsrv-rg -t SUNW.s1as \
    -p Confdir_list=/global/appserver/domains/scdomain/server1 \ 
    -p Monitor_Uri_List=http://localhost:8000/servlet/monitor appsrv-rs
    

    The resource is created in the enabled state.

  4. To bring online the application resource group, the following command is run.


    # clresourcegroup online appsrv-rg