Sun Cluster 3.1 Data Service for Sun ONE Web Server

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

The following example shows how to register a scalable Sun Cluster HA for Sun ONE Web Server.


Cluster Information
Node names: phys-schost-1, phys-schost-2
Shared address: schost-1
Resource groups: sa-resource-group-1 (for shared addresses),
    iws-resource-group-1 (for scalable Sun ONE application resources)
Resources: schost-1 (shared address), SunONE-insecure-1 (insecure SunONE
    application resource), SunONE-secure-1 (secure Sun ONE application
    resource)
 
(Add a failover resource group to contain shared addresses.)
# scrgadm -a -g sa-resource-group-1
 
(Add the shared address resource to the failover resource group.)
# scrgadm -a -S -g sa-resource-group-1 -l schost-1
 
(Add a scalable resource group.)
# scrgadm -a -g iws-resource-group-1 -y Maximum_primaries=2 \
-y Desired_primaries=2 -y RG_dependencies=sa-resource-group-1
 
(Register the Sun ONE resource type.)
# scrgadm -a -t SUNW.iws
 
(Add an insecure Sun ONE instance with default load balancing.)
# scrgadm -a -j Sun ONE-insecure-1 -g iws-resource-group-1 -t SUNW.iws \
-x Confdir_List=/opt/SunONE/https-SunONE-insecure-1 \
-y Scalable=True -y Network_resources_used=schost-1 -y Port_list=80/tcp
 
(Add a secure SunONE instance with sticky IP load balancing.)
# scrgadm -a -j SunONE-secure-1 -g iws-resource-group-1 -t SUNW.iws \
-x Confdir_List=/opt/SunONE/https-SunONE-secure-1 \
-y Scalable=True -y Network_resources_used=schost-1 \
-y Port_list=443/tcp -y Load_balancing_policy=LB_STICKY \
-y Load_balancing_weights=40@1,60@2
 
(Bring the failover resource group online.)
# scswitch -Z -g sa-resource-group-1
 
(Bring the scalable resource group online.)
# scswitch -Z -g iws-resource-group-1