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

ProcedureHow to Register and Configure Sun Cluster HA for Sun Java System Application Server as a Failover DAS Component and a Failover NA Component

Note that in How to Configure and Activate Network Resources you previously created the failover resource groups for the DAS component and for the NA component, added failover IP addresses and logical hosts to the resource groups, and brought the resource groups online.

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

  2. Register the SUNW.jsas resource type for the DAS component.


    # clresourcetype register SUNW.jsas
    
  3. Add the DAS resource instance to the failover resource group that you created for your network resources.

    See SUNW.jsas Extension Properties for a detailed description of the extension properties for this resource type.


    # clresource create DAS-resource-group \ 
    -t SUNW.jsas \
    -p Network_resources_used=logical-hostname \ 
    -p Adminuser=DAS-admin-username \ 
    -p Domain_name=domain-name \ 
    -p Passwordfile=password-file \ 
    -p Confdir_list=install-directory \ 
    -p Domaindir=domain-directory DAS-resource
    
    DAS-resource-group

    Specifies the resource group for the DAS component.

    -t SUNW.jsas

    Specifies the resource type for the DAS component.

    -p Network_resources_used=logical-hostname

    Specifies the failover IP address that is used by DAS.

    -p Adminuser=DAS-admin-username

    Specifies DAS administrative user name.

    -p Domain_name=domain-name

    Specifies the domain name.

    -p Passwordfile=password-file

    Specifies the full path to the file containing the DAS administrative password and master password.

    -p Confdir_list=install-directory

    Specifies the complete path to the Sun Java System Application Server installation directory. The default value for this extension property is /opt/SUNWappserver, which is the standard installation directory.

    -p Domaindir=domain-directory

    Specifies the full path to the domain directory. This extension property is optional if the domain directory is the default directory that was specified at the installation of the Sun Java System Application Server.

    DAS-resource

    Specifies the DAS resource name.

    The resource is created in the enabled state.

  4. Register the SUNW.jsas-na resource type for the Node Agent component.


    # clresourcetype register SUNW.jsas-na
    
  5. Add the Node Agent resource instance to the failover resource group that you created for your network resources.

    SeeSUNW.jsas-na Extension Properties for a detailed description of the extension properties for this resource type.


    # clresource create -g NA-resource-group \
    -t SUNW.jsas-na \
    -p Resource_Dependencies=DAS-resource \
    -p Adminuser=DAS-admin-username \
    -p Confdir_list=install-directory \
    -p Adminhost=DAS-hostname \
    -p Adminport=DAS-port \
    -p Agentdir=NA-directory \
    -p Passwordfile=password-file NA-resource
    
    -g NA-resource-group

    Specifies the resource group for the Node Agent component.

    -t SUNW.jsas-na

    Specifies the resource type for the Node Agent component.

    -p Resource_Dependencies=DAS-resource

    Specifies that the DAS resource must be online before the Node Agent resource can start.

    -p Adminuser=DAS-admin-username

    Specifies DAS administrative user name.

    -p Confdir_list=install-directory

    Specifies the complete path to the Sun Java System Application Server installation directory. The default value for this extension property is /opt/SUNWappserver, which is the standard installation directory.

    -p Adminhost=DAS-hostname

    Specifies the host name of the DAS.

    -p Adminport=DAS-port

    Specifies the port where DAS listens.

    -p Agentdir=NA-directory

    Specifies the full path to the Node Agents directory.

    -p Passwordfile=password-file

    Specifies the full path to the file containing the DAS administrative password and master password.

    NA-resource

    Specifies the Node Agent resource name.

    The resource is created in the enabled state.