Sun Cluster 3.1 Data Service for Sun ONE Web Server Guide

Example – Registering Failover Sun Cluster HA for Sun ONE Web Server

The following example shows how to register a failover Sun ONE service on a two-node cluster.


Cluster Information
Node names: phys-schost-1, phys-schost-2
Logical hostname: schost-1
Resource group: resource-group-1 (for all resources) 
Resources: schost-1 (logical hostname), SunONE-insecure-1 (insecure SunONE 
    application resource), SunONE-secure-1 (secure SunONE application 
    resource)
 
(Add the resource group to contain all resources.)
# scrgadm -a -g resource-group-1
 
(Add the logical hostname resource to the resource group.)
# scrgadm -a -L -g resource-group-1 -l schost-1 
 
(Register the SunONE resource type.)
# scrgadm -a -t SUNW.iws
 
(Add an insecure SunONE application resource instance.)
# scrgadm -a -j SunONE-insecure-1 -g resource-group-1 -t SUNW.iws \
-x Confdir_list=/opt/SunONE/conf -y Scalable=False \
-y Network_resources_used=schost-1 -y Port_list=80/tcp\ 

(Add a secure SunONE application resource instance.)
# scrgadm -a -j SunONE-secure-1 -g resource-group-1 -t SUNW.iws \ 
-x Confdir_List=/opt/SunONE/https-SunONE-secure-1 -y Scalable=False \
-y Network_resources_used=schost-1 -y Port_list=443/tcp \ 

(Bring the failover resource group online.)
# scswitch -Z -g resource-group-1