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

Examples of Registering and Configuring the Failover DAS Component in the Sun Cluster HA for Sun Java System Application Server

These examples assume that the DAS resource group has already been created, the failover IP address has been added to the resource group, and the resource group has been brought online.


Example 1–1 Creating a Simple DAS Resource

In this example, the default values for the extension properties are used.


# clresourcetype register SUNW.jsas

# clresource create -g das-rg \
-t SUNW.jsas \
-p Network_resources_used=IP1 \
-p Adminuser=admin \
-p Domain_name=domain1 \
-p Passwordfile=/global/disk1/passwordfile das-rs

In this example, the following values are set.



Example 1–2 Creating a DAS Resource by Specifying the Installation Directory and the Domain Directory

In this example, the Application Server is not installed in the default location and the domain directory is not the default.


# clresourcetype register SUNW.jsas

# clresource create -g das-rg \
-t SUNW.jsas \
-p Network_resources_used=IP1 \
-p Adminuser=admin \
-p Domain_name=domain1 \
-p Passwordfile=/global/disk1/passwordfile \
-p Confdir_list=/global/disk1/SUNWappserver \
-p Domaindir=/global/disk1/my-domain das-rs

In this example, the following values are set.



Example 1–3 Creating a DAS Resource and Specifying a List of URIs to be Monitored

In this example, the extension property Monitor_Uri_List specifies the URI that is serviced by applications on the Application Server. The fault monitor probe monitors this URI to test the functionality of the Application Server.


# clresourcetype register SUNW.jsas

# clresource create -g das-rg \
-t SUNW.jsas \
-p Network_resources_used=IP1 \
-p Adminuser=admin \
-p Domain_name=domain1 \
-p Passwordfile=/global/disk1/passwordfile \
-p Confdir_list=/global/disk1/SUNWappserver \
-p Domaindir=/global/disk1/my-domain \
-p Monitor_Uri_List=http://IP1:4848/web-service das-rs

In this example, the following values are set.