Example One – Installation and Configuration and Example Two – Administration Commands show how to install, configure, and administer Sun Cluster HA for BroadVision One-To-One Enterprise. The following tables list cluster information and BroadVision One-To-One Enterprise configuration information. This information applies to both of the examples.
Table 1–5 Examples – Cluster Information
Node names |
phys-schost-1, phys-schost-2 |
Logical hostnames |
schost-1, schost-2 |
Resource groups |
root-host-resource-group (for root host resources), back-end-resource-group (for back-end resources), im-resource-group (for Interaction Manager resources) |
Resources |
root-host-resource (the BroadVision root host resource), back-end-resource (the BroadVision back-end resource), im-resource (BroadVision Interaction Manager resource) |
Table 1–6 Examples – BroadVision Configuration Information
BV User |
BVUSER (on all of the cluster nodes) |
BV1TO1_VAR directory |
/global/broadvision/bvuser/bv1to1_var |
Root host |
schost-1 |
Back-end host |
schost-2 |
Interaction Manager 1 |
phys-schost-1 |
Interaction Manager 2 |
phys-schost-2 |
This example illustrates how to install and configure the data service.
(Register the BroadVision resource type.) phys-schost-1:> scrgadm -a -t SUNW.bv (Create failover resource groups for the back-end and root host processes.) phys-schost-1:> scrgadm -a -g root-host-resource-group phys-schost-1:> scrgadm -a -g back-end-resource-group (Create a scalable resource group for the Interaction Manager processes.) phys-schost-1:> scrgadm -a -g im-resource-group -y Maximum_primaries=2 / -y Desired_primaries=2 (Add logical hostnames to the failover resource groups.) phys-schost-1:> scrgadm -a -L -g root-host-resource-group -l schost-1 phys-schost-1:> scrgadm -a -L -g back-end-resource-group -l schost-2 (Create root host, back-end, and Interaction Manager resources.) phys-schost-1:> scrgadm -a -j root-host-resource -g root-host-resource-group / -t SUNW.bv -x BVUSER=bvuser -x BV1TO1_VAR=/global/broadvision/bvuser/bt1to1_var phys-schost-1:> scrgadm -a -j back-end-resource -g back-end-resource-group / -t SUNW.bv -x BVUSER=bvuser -x BV1TO1_VAR=/global/broadvision/bvuser/bt1to1_var phys-schost-1:> scrgadm -a -j im-resource -g im-resource-group -t SUNW.bv / -x BVUSER=bvuser -x BV1TO1_VAR=/global/broadvision/bvuser/bt1to1_var (Bring all of the resource groups online.) phys-schost-1:> scswitch -Z -g root-host-resource-group phys-schost-1:> scswitch -Z -g back-end-resource-group phys-schost-1:> scswitch -Z -g im-resource-group |
This example lists some common administration commands that you might wish to run.
(Check the status of the resource groups.) phys-schost-1:> scstat -g (Note: All of the BroadVision Interaction Manager 1, root host, and back-end processes should run on phys-schost-1. Interaction Manager 2 processes must run on phys-schost-2.) (Test failover. Switch the root-host-resource-group and the back-end-resource-group to another node.) phys-schost-1:> scswitch -z -g root-host-resource-group -h phys-schost-2 phys-schost-1:> scswitch -z -g back-end-resource-group -h phys-schost-2 (Note: All of the BroadVision root host and back-end processes should now run on phys-schost-2.) (Because the Maximum and Desired primaries are set to 2, the Interaction Manager runs on the two cluster nodes. Shut down Interaction Manager 2, which runs on phys-schost-2.) phys-schost-1:> scswitch -z -g im-resource-group -h phys-schost-1 (Shut down all of the resource groups.) phys-schost-1:> scswitch -F -g root-host-resource-group phys-schost-1:> scswitch -F -g back-end-resource-group phys-schost-1:> scswitch -F -g im-resource-group (Remove and disable all of the BroadVision resources and resource groups.) phys-schost-1:> scswitch -n -j root-host-resource phys-schost-1:> scswitch -n -j back-end-resource phys-schost-1:> scswitch -n -j im-resource phys-schost-1:> scswitch -n -j schost-1 phys-schost-1:> scswitch -n -j schost-2 phys-schost-1:> scrgadm -r -j root-host-resource phys-schost-1:> scrgadm -r -j back-end-resource phys-schost-1:> scrgadm -r -j im-resource phys-schost-1:> scrgadm -r -j schost-1 phys-schost-1:> scrgadm -r -j schost-2 phys-schost-1:> scrgadm -r -j root-host-resource-group phys-schost-1:> scrgadm -r -j back-end-resource-group phys-schost-1:> scrgadm -r -j im-resource-group (Remove the resource type.) phys-schost-1:> scrgadm -r -t SUNW.bv |