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 Failover Data Service

Perform the following steps to complete a Sun Cluster HA for Sun Java System Application Server failover configuration. You can also use this procedure to configure a domains administrative server to be a failover resource.

Note that in How to Configure and Activate Network Resources for a Failover Configuration you created the failover resource group, added a logical hostname to the resource group, and brought the resource group online.

  1. On a cluster member, become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.

  2. Register the resource type for the data service.


    # clresourcetype register SUNW.s1as
    
  3. Add the Sun Java System Application Server resource instance to the failover resource group that you created for your network resources.


    # clresource create -g resource-group \
    -t SUNW.s1as \
    -p Network_resources_used=network-resources \
    -p Port_list=port/tcp,port/tcp \
    -p Confdir_list=install-directory/domains/domain/server \
    -p Monitor_Uri_List=http://logical-hostname[:port][/path] resource
    
    -g resource-group

    Specifies the resource group.

    -t SUNW.s1as

    Specifies the type of resource to add.

    -p Network_resources_used=network-resources

    Specifies a comma-separated list of network resources in resource-group.

    -p Port_list=port-number/protocol

    Specifies a comma-separated list of the port number and the protocol to be used, for example, 80/tcp. If the Monitor_Uri_List is set, the Port_list setting is optional.

    -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=logical-hostname[:port][/path]

    Specifies a comma-separated list of URIs from which Sun Cluster HA for Sun Java System Application Server makes requests. The Monitor_Uri_List extension property is required if the Port_list property is not set.

    resource

    Specifies the Sun Java System Application Server application resource name.

    The resource is created in the enabled state.

  4. Verify that the resource group and application server resource is online.


    # clresourcegroup status
    # ps -ef
    

Example 2–1 Registering and Configuring Sun Cluster HA for Sun Java System Application Server as a Failover Data Service

Cluster Information

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


    # clresourcegroup create -n phys-schost-1,phys-schost-2 appsrv-rg
    
  2. To add a logical hostname resource to the resource group, the following command is run.


    # clreslogicalhostname create -g appsrv-rg -h schost-1 schost-1
    
  3. To register the SUNW.s1as resource type, the following command is run.


    # clresourcetype register SUNW.s1as
    
  4. 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 Network_resources_used=schost-1 \
    -p Port_list=80/tcp,3700/tcp \
    -p Confdir_list=/global/appsrv/domains/scdomain/server1 \
    -p Monitor_Uri_List=http://schost-1:80/servlet/monitor appsrv-rs
    
  5. To bring the application resource group online, the following command is run.


    # clresourcegroup online appsrv-rg
    


Example 2–2 Registering and Configuring the admin-server as a Failover Data Service

This example shows how the admin-server can be configured as part of the failover resource group created in the previous example.

Cluster Information

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 Network_resources_used=schost-1 \
-p Port_list=4848/tcp \
-p Confdir_list=/global/appsrv/domains/scdomain/admin-server \
-p Monitor_Uri_List=http://schost-1:484 admin-rs