Before you install and configure the Sun Java System Application Server for a failover data service, set up the network resources that the server uses after installation and configuration. To configure and activate the network resources, use the following command-line procedure. If you are configuring the Sun Java System Application Server for a service that is mastered on multiple nodes at the same time, go to How to Install and Configure the Sun Java System Application Server.
The names of the cluster nodes that can master the data service.
The hostnames that are used for configuring the network resource that clients use to access the Sun Java System Application Server. Normally, you set up this hostname when you install the cluster. See the Sun Cluster Concepts Guide for Solaris OS for details on network resources.
Perform this procedure on any cluster member.
Become superuser on a cluster member.
Verify that all of the network addresses that you use have been added to your name service database.
You should have performed this verification during the Sun Cluster installation. See the planning chapter in the Sun Cluster Software Installation Guide for Solaris OS.
To avoid name service look-up failures, ensure that all of the logical hostnames are present in the /etc/inet/hosts file on all of the cluster nodes. Configure name service mapping in the /etc/nsswitch.conf file on the servers to check the local files before trying to access NIS, NIS+, or DNS.
Create a failover resource group to contain the network and application resources.
# scrgadm -a -g resource-group [-h nodelist]
Specifies the name of the resource group. This name can be your choice.
Specifies an optional comma-separated list of physical node names that identify potential masters. The order here determines the order in which the nodes are considered primary during failover.
Use the -h option to specify the order of the node list. If all of the nodes in the cluster are potential masters, you do not need to use the -h option.
Add network resources to the resource group.
Use the following command to add a logical hostname to a resource group.
# scrgadm -a -L -g resource-group -l hostname, …[-n netiflist]
Specifies that a network resource is being added.
Specifies the name of the resource group.
Specifies a comma-separated list of network resources.
Specifies an optional, comma-separated list that identifies the IP Networking Multipathing groups that are on each node.
Each element in netiflist must be in the form of netif@node. netif can be given as an IP Networking Multipathing group name, such as sc_ipmp0. The node can be identified by the node name or node ID, such as sc_ipmp0@1 or sc_ipmp@phys-schost-1. Sun Cluster does not currently support the use of the adapter name for netif.
# scswitch -Z -g resource-group
Moves the resource group to the MANAGED state, and brings the resource group online
Specifies the name of the resource group