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.

Steps
  1. Become superuser on a cluster member.

  2. Register the resource type for the DAS component.


    # scrgadm -a -t SUNW.jsas
    
    -a

    Adds the resource type for the DAS component

    -t SUNW.jsas

    Specifies the predefined resource type name

  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.


    # scrgadm -a -j DAS-resource -g DAS-resource-group \ 
    -t SUNW.jsas \
    -y Network_resources_used=logical-hostname \ 
    -x Adminuser=DAS-admin-username \ 
    -x Domain_name=domain-name \ 
    -x Passwordfile=password-file \ 
    -x Confdir_list=install-directory \ 
    -x Domaindir=domain-directory \ 
    -x Monitor_Uri_List=http://logical-hostname[:port][/path]
    
    -a

    Adds a resource.

    -j DAS-resource

    Specifies the DAS resource name.

    -g DAS-resource-group

    Specifies the resource group for the DAS component.

    -t SUNW.jsas

    Specifies the resource type for the DAS component.

    -y Network_resources_used=logical-hostname

    Specifies the failover IP address that is used by DAS.

    -x Adminuser=DAS-admin-username

    Specifies DAS administrative user name.

    -x Domain_name=domain-name

    Specifies the domain name.

    -x Passwordfile=password-file

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

    -x 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.

    -x 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.

    -x Monitor_Uri_List=logical-hostname[:port][/path]

    (Optional) 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. The Port_list property is one of the standard properties for a resource, which specifies a list of port numbers on which a server is listening. See Resource Properties in Sun Cluster Data Services Planning and Administration Guide for Solaris OS for a full description of the Port_list property.

  4. Register the resource type for the Node Agent component.


    # scrgadm -a -t SUNW.jsas-na
    
    -a

    Adds the resource type for the NA component

    -t SUNW.jsas-na

    Specifies the predefined resource type name

  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.


    # scrgadm -a -j NA-resource -g NA-resource-group \
    -t SUNW.jsas-na \
    -y Resource_Dependencies=DAS-resource \
    -x Adminuser=DAS-admin-username \
    -x Confdir_list=install-directory \
    -x Adminhost=DAS-hostname \
    -x Adminport=DAS-port \
    -x Agentdir=NA-directory \
    -x Passwordfile=password-file
    
    -a

    Adds a resource.

    -j NA-resource

    Specifies the Node Agent resource name.

    -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.

    -y Resource_Dependencies=DAS-resource

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

    -x Adminuser=DAS-admin-username

    Specifies DAS administrative user name.

    -x 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.

    -x Adminhost=DAS-hostname

    Specifies the host name of the Domain Administration Server.

    -x Adminport=DAS-port

    Specifies the port where DAS listens.

    -x Agentdir=NA-directory

    Specifies the full path to the Node Agents directory.

    -x Passwordfile=password-file

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