Sun Cluster 3.0 12/01 Data Services Installation and Configuration Guide

Chapter 11 Installing and Configuring Sun Cluster HA for BroadVision One-To-One Enterprise

This chapter provides instructions on how to plan, set up, and configure Sun Cluster HA for BroadVision One-To-One Enterprise on your cluster nodes.

This chapter includes the following procedures.

Configure Sun Cluster HA for BroadVision One-To-One back-end servers as a failover data service. Configure Sun Cluster HA for BroadVision One-To-One Interaction Managers as a scalable data service. See the Sun Cluster 3.0 12/01 Concepts document and Chapter 1, Planning for Sun Cluster Data Services for general information about data services, resource groups, resources, and other related topics.

Installing and Configuring Sun Cluster HA for BroadVision One-To-One Enterprise

The following table lists the sections that describe the installation and configuration tasks.

Table 11-1 Task Map: Installing and Configuring Sun Cluster HA for BroadVision One-To-One Enterprise

Task 

For Instructions, Go To ... 

Plan the BroadVision One-To-One Enterprise installation 

"Sun Cluster HA for BroadVision One-To-One Enterprise Overview"

"Configuration Guidelines for Sun Cluster HA for BroadVision One-To-One Enterprise"

"Supported Configurations"

"Pre-Installation Considerations"

Install and configure the BroadVision One-To-One Enterprise software, the HTTP servers, and the database 

"How to Install and Configure Sun Cluster HA for DBMS"

"How to Install and Configure Your HTTP Server"

"How to Install and Configure the BroadVision One-To-One Enterprise Software" [ To configure Sun Cluster HA for BroadVision One-To-One back-end servers to use one failover resource group with n logical hostnames, proceed to "Alternative Configuration". Follow the procedures that are listed in "Alternative Configuration" to complete the installation. Otherwise, continue to "How to Configure and Verify the BroadVision One-To-One Enterprise, Database, and HTTP Server Installation".]

"How to Configure and Verify the BroadVision One-To-One Enterprise, Database, and HTTP Server Installation"

Install the Sun Cluster HA for BroadVision One-To-One Enterprise package 

"How to Install Sun Cluster HA for BroadVision One-To-One Enterprise Packages"

Configure Sun Cluster HA for BroadVision One-To-One Enterprise 

"How to Register and Configure Sun Cluster HA for BroadVision One-To-One Enterprise"

"How to Verify the Sun Cluster HA for BroadVision One-To-One Enterprise Installation"

Register and configure Sun Cluster HA for BroadVision One-To-One Enterprise extension properties 

"Sun Cluster HA for BroadVision One-To-One Enterprise Extension Properties"

View Sun Cluster HA for BroadVision One-To-One Enterprise fault monitor information 

"Sun Cluster HA for BroadVision One-To-One Enterprise Fault Monitor"

Understand known issues 

"Known Issues"

Sun Cluster HA for BroadVision One-To-One Enterprise Overview

Sun Cluster HA for BroadVision One-To-One Enterprise provides fault monitoring and automatic failover for the BroadVision One-To-One Enterprise servers. This data service uses fault monitoring and automatic failover to eliminate single points of failure in a BroadVision One-To-One Enterprise site. The following table lists the data services that best protect BroadVision One-To-One Enterprise site components in a Sun Cluster configuration.

Table 11-2 Protection of BroadVision One-To-One Enterprise Site Components

BroadVision One-To-One Enterprise site component 

Protected by 

BroadVision One-To-One Enterprise database 

Sun Cluster HA for Oracle or Sun Cluster HA for Sybase 

BroadVision One-To-One Interaction Managers 

Sun Cluster HA for BroadVision One-To-One Enterprise (scalable configuration) 

BroadVision One-To-One back-end servers 

Sun Cluster HA for BroadVision One-To-One Enterprise (failover configuration) 

HTTP servers 

Sun Cluster HA for iPlanet Web Server or Sun Cluster HA for Apache 

Use the scinstall(1M) command to install Sun Cluster HA for BroadVision One-To-One Enterprise. Sun Cluster HA for BroadVision One-To-One Enterprise requires a functioning cluster with the initial cluster framework already installed. See the Sun Cluster 3.0 12/01 Software Installation Guide for details about initial installation of cluster software. Register Sun Cluster HA for BroadVision One-To-One Enterprise after you successfully install the basic components of the Sun Cluster and BroadVision One-To-One Enterprise software.

Configuration Guidelines for Sun Cluster HA for BroadVision One-To-One Enterprise

When you design a Sun Cluster HA for BroadVision One-To-One Enterprise configuration, consider the following guidelines.

Supported Configurations

See your Enterprise Services representative for the most current information about BroadVision One-To-One Enterprise versions and configurations that are supported.

BroadVision One-To-One Enterprise configurations that are supported include the following.

For all of the supported configurations, set up your highly available database and HTTP server to match "Sun Cluster HA for DBMS and HTTP Server Configuration".

Sun Cluster HA for DBMS and HTTP Server Configuration

Configure Sun Cluster HA for DBMS and HTTP server as follows.

Cluster With Multiple Resource Groups for the BroadVision One-To-One Enterprise Software

Configure the BroadVision One-To-One Enterprise root host, back-end, and Interaction Manager processes as follows.

Alternative Configuration: Cluster With One Resource Group for the BroadVision One-To-One Back-End and Root Host Servers

Depending on the flexibility and granularity of administration that you require for each back-end resource, you can configure Sun Cluster HA for BroadVision One-To-One back-end servers to use only one resource group. To set up this alternative configuration, configure the BroadVision One-To-One Enterprise root host, back-end, and Interaction Manager processes as follows.

Pre-Installation Considerations

See "Installing and Configuring the BroadVision One-To-One Enterprise Software, the Database, and the HTTP Server" and specifically, "Supported Configurations", before you install the BroadVision One-To-One Enterprise software. Additionally, consider the following cluster-related tasks.

  1. BroadVision user home directory - Create an identical BroadVision user (bvuser) on all of the cluster nodes. Place the BroadVision user home directory on the cluster file system. Direct all of the BroadVision users on all of the cluster nodes to the same home directory.

  2. BroadVision One-To-One Enterprise software - Install the BroadVision One-To-One Enterprise software on the cluster file system so that all of the cluster nodes can access the same BroadVision One-To-One Enterprise binaries and configuration files.

Installing and Configuring the BroadVision One-To-One Enterprise Software, the Database, and the HTTP Server

Use the procedures in this section to perform the following tasks.


Note -

Before you install the BroadVision One-To-One Enterprise, database, and HTTP server software in the Sun Cluster environment, run the scstat(1M) command to verify that the Sun Cluster software is fully operational.


How to Install and Configure Sun Cluster HA for DBMS

See Chapter 2, Installing and Configuring Sun Cluster HA for Oracle to install Sun Cluster HA for Oracle or Chapter 10, Installing and Configuring Sun Cluster HA for Sybase ASE to install Sun Cluster HA for Sybase ASE.

How to Install and Configure Your HTTP Server

If iPlanet Web Server is your HTTP server, follow the instructions in Chapter 3, Installing and Configuring Sun Cluster HA for iPlanetTM Web Server to configure Sun Cluster HA for iPlanet Web Server. If Apache Web Server is your HTTP server, follow the instructions in Chapter 5, Installing and Configuring Sun Cluster HA for Apache to configure Sun Cluster HA for Apache.

How to Install and Configure the BroadVision One-To-One Enterprise Software

This procedure describes how to install and configure the BroadVision One-To-One Enterprise software and how to enable the BroadVision One-To-One Enterprise software to run in the Sun Cluster environment.

  1. Follow the guidelines that are listed in "Configuration Guidelines for Sun Cluster HA for BroadVision One-To-One Enterprise" and "Pre-Installation Considerations".

  2. Follow the instructions in the BroadVision One-To-One Enterprise Installation and Administration Guide to install the BroadVision One-To-One Enterprise software on the cluster file system.


    Note -

    Install the BroadVision One-To-One Enterprise software only once, on the cluster file system, from any cluster node.


  3. Configure the $BV1TO1_VAR/etc/bv1to1.conf file.

    Table 11-3 summarizes possible configurations in the $BV1TO1_VAR/etc/bv1to1.conf file for the BroadVision One-To-One Enterprise components. See "Supported Configurations" and the instructions in the BroadVision One-To-One Enterprise Installation and Administration Guide for details.

    Table 11-3 Configuring the $BV1TO1_VAR/etc/bv1to1.conf File

    BroadVision One-To-One Enterprise component 

    Where to configure 

    Root host 

    Logical hostname 

    Back-end servers 

    Logical hostname 

    Interaction Managers 

    All of the cluster nodes or all of the cluster private hostnames [ See the Sun Cluster 3.0 12/01 Software Installation Guide for details on cluster interconnect and private hostnames.]


    Note -

    If you configure the Interaction Managers on all of the cluster private hostnames, set up the HTTP servers on the same cluster. Alternatively, if you configure the Interaction Managers on all of the cluster nodes, the HTTP servers can be set up outside of the cluster.



    Note -

    Configure your cluster so that BroadVision One-To-One back-end servers can access the database from any cluster node.


Where to Go From Here

Depending on the flexibility and granularity of administration that you require for each back-end resource, you can set up your failover resource groups in one of the following ways.


Note -

See "Supported Configurations" for more information.


How to Configure and Verify the BroadVision One-To-One Enterprise, Database, and HTTP Server Installation

Perform this procedure to test starting and stopping the back-end processes on all of the nodes on which the back-end host and root host can run in a failover configuration. Additionally, perform this procedure to test the BroadVision One-To-One Enterprise Interaction Managers that you configured in the cluster.

Depending on the flexibility and granularity of administration that you require for each back-end resource, you can set up your failover resource groups in one of the following ways.


Note -

See "Supported Configurations" for more information.


  1. To contain the BroadVision One-To-One Enterprise root host resource, create a failover resource group that uses the root host logical hostname.


    # scrgadm -a -g root-host-resource-group [-h nodelist]
    -g root-host-resource-group

    Specifies the name of the resource group that uses the root host logical hostname and contains the BroadVision root host resource. The name of the root host resource group can be your choice but must be unique for resource groups within the cluster.

    [-h nodelist]

    Specifies an optional, comma-separated list of physical node names or IDs that identify potential masters. The order here determines the order in which the Resource Group Manager (RGM) considers primary nodes during failover.

  2. Create failover resource groups for the root host and back-end processes.

    Run the scrgadm(1M) command to configure n failover resource groups for back-end processes that are configured on n logical hostnames.


    # scrgadm -a -g back-end-resource-group-1 [-h nodelist]
    # scrgadm -a -g back-end-resource-group-2 [-h nodelist]
    # scrgadm -a -g back-end-resource-group-3 [-h nodelist]
    ...
    # scrgadm -a -g back-end-resource-group-n [-h nodelist]
    -g back-end-resource-group

    Specifies the name of the resource group that contains the back-end logical hostname and resource. The name of the back-end resource group can be your choice but must be unique for resource groups within the cluster.

  3. Verify that you have added all of the logical hostnames that you use to your name service database.

    Additionally, add all of the logical hostnames that you use to the /etc/inet/hosts file on each cluster node. Therefore, if the name service goes down, the nodes can still find the name-to-address mapping on their local hosts file.

  4. Run the scrgadm command to add the logical hostname that each of the resource groups that you have created can use.


    # scrgadm -a -L -g root-host-resource-group -l root-host-logical-hostname-1 [-n netiflist]
    # scrgadm -a -L -g back-end-resource-group-1 -l back-end-logical-hostname-1 [-n netiflist]
    # scrgadm -a -L -g back-end-resource-group-2 -l back-end-logical-hostname-2 [-n netiflist]
    ...
    # scrgadm -a -L -g back-end-resource-group-n -l back-end-logical-hostname-n [-n netiflist]
    -l root-host-logical-hostname

    Specifies the logical hostname (failover IP address) that the root host resource group uses.

    -l back-end-logical-hostname

    Specifies the logical hostname that each back-end resource group uses.

    [-n netiflist]

    Specifies an optional, comma-separated list that identifies the NAFO groups that are on each node. All of the nodes in the resource group's node list must be represented in netiflist. If you do not specify this option, the scrgadm command attempts to discover a net adapter on the subnet that the hostname list identifies for each node that is in the node list. For example, -n nafo0@nodename, nafo0@nodename2.

  5. Create a scalable resource group for the Interaction Managers.


    # scrgadm -a -g im-resource-group -y Maximum_primaries=m -y Desired_primaries=n
    
    -g im-resource-group

    Specifies the name of the scalable resource group that contains the Interaction Managers. This name can be your choice but must be unique for resource groups within the cluster.

    -y Maximum_primaries=m

    Specifies the maximum number of active primary nodes allowed for this resource group. If you do not assign a value to this property, the default is 1.

    -y Desired_primaries=n

    Specifies the desired number of active primary nodes allowed for this resource group. If you do not assign a value to this property, the default is 1.

  6. From one cluster node, run the scswitch(1M) command to move the failover resource groups into the managed state and bring them online.


    # scswitch -Z -g root-host-resource-group
    # scswitch -Z -g back-end-resource-group-1
    # scswitch -Z -g back-end-resource-group-2
    ...
    # scswitch -Z -g back-end-resource-group-n
    

    Note -

    You do not need to bring the scalable resource group online because the scalable resource group does not yet contain resources. You must bring failover resource groups online because the BroadVision One-To-One Enterprise back-end processes cannot start if the logical hostname resource is unavailable.


  7. Check that the database is accessible.

    See your database documentation for details.

  8. Ensure that you have configured the database to enable BroadVision One-To-One back-end servers to access the database from any cluster node.

    See your database documentation for details.

  9. As the BroadVision user, log in to the cluster node that hosts the root host resource group.

  10. Follow the steps in the BroadVision One-To-One Enterprise Installation and Administration Guide to run the following BroadVision commands.

    1. Set the BV_LOCAL_HOST environment variable as root-host-logical-hostname.

    2. Source the bv1to1.conf.sh file or the bv1to1.conf.csh file, depending on the shell that you use.

    3. Run the bvconf bootstrap command on the root host to initialize the BroadVision One-To-One Enterprise installation.


      Note -

      Do not run the bvconf command as superuser.



      % bvconf bootstrap -r root-host-logical-hostname
      
    4. Set the BV_LOCAL_HOST environment variable as back-end-logical-hostname or im-hostname.

    5. Source the bv1to1.conf.sh file or the bv1to1.conf.csh file, depending on the shell that you use.

    6. Ensure that the /etc/opt/BVSNsmgr directory exists and has write and execute permissions.

    7. For each back-end host and Interaction Manager host, run the bvconf execute command to configure and start the BroadVision One-To-One Enterprise processes.


      % bvconf execute -local -var shared -r root-host-logical-hostname
      
  11. Run the BroadVision command bvconf gateway to generate gateway configuration files for the HTTP gateway applications.

    This command generates the files and writes them to the $BV1TO1_VAR/etc/appName.cfg file.


    % bvconf gateway -A appName
    
    -A appName

    Specifies the gateway application name, which is defined in the $BV1TO1_VAR/etc/bv1to1.conf configuration file. See the BroadVision One-To-One Enterprise Installation and Administration Guide for details.

  12. Copy the gateway application configuration file to the /etc/opt/BVSNsmgr directory on each of the cluster nodes that runs HTTP instances.


    Note -

    Ensure that you copy the gateway application configuration file with the extension .cfg.


    See the BroadVision One-To-One Enterprise Installation and Administration Guide for details.

  13. Configure and start the HTTP servers.

    See your HTTP server documentation for details. Additionally, see the BroadVision One-To-One Enterprise Installation and Administration Guide for information on HTTP server configuration.

  14. From a BroadVision client, connect to the BroadVision site, and check the installation.

  15. If the BroadVision One-To-One Enterprise software is functioning correctly, perform the following steps to shut down the Interaction Managers, back-end processes, and root host processes.

    1. Shut down the Interaction Managers.

      1. Set the BV_LOCAL_HOST environment variable as im-hostname.

      2. Source the bv1to1.conf.sh file or the bv1to1.conf.csh file, depending on the shell that you use.

      3. Run the following command.


        # bvconf shutdown -local
        

    2. Shut down the back-end processes.

      1. Set the BV_LOCAL_HOST environment variable as back-end-logical-hostname-n.

      2. Source the bv1to1.conf.sh file or the bv1to1.conf.csh file, depending on the shell that you use.

      3. Run the following command.


        # bvconf shutdown -local
        

    3. Shut down the root host processes.

      1. Set the BV_LOCAL_HOST environment variable as root-host-logical-hostname.

      2. Source the bv1to1.conf.sh file or the bv1to1.conf.csh file, depending on the shell that you use.

      3. Run the following command.


        # bvconf shutdown -local
        

  16. Run the scswitch command to switch the resource groups to another cluster node, such as node2.


    # scswitch -z -g root-host-resource-group -h node2
    # scswitch -z -g back-end-resource-group-1 -h node2
    # scswitch -z -g back-end-resource-group-2 -h node2
    ...
    # scswitch -z -g back-end-resource-group-n -h node2
    
  17. Restart the BroadVision One-To-One Enterprise software on node2.

  18. Connect to the cluster from a BroadVision client, and check that the BroadVision One-To-One Enterprise software functions correctly.

  19. Repeat Step 15 through Step 18 on all of the potential primaries of the BroadVision One-To-One Enterprise resource groups.

Where to Go From Here

After you verify the BroadVision One-To-One Enterprise, database, and HTTP server installation, go to "How to Install Sun Cluster HA for BroadVision One-To-One Enterprise Packages".

Installing the Sun Cluster HA for BroadVision One-To-One Enterprise Package

Use the scinstall(1M) utility to install SUNWscbv, the Sun Cluster HA for BroadVision One-To-One Enterprise package, on a cluster. If you installed the SUNWscbv data service package as part of your initial Sun Cluster installation, proceed to "Registering and Configuring Sun Cluster HA for BroadVision One-To-One Enterprise". Otherwise, use the following procedure to install the SUNWscbv package.

How to Install Sun Cluster HA for BroadVision One-To-One Enterprise Packages

You need the Sun Cluster 3.0 Agents 12/01 CD-ROM to complete this procedure. Perform this procedure on all of the cluster nodes that run Sun Cluster HA for BroadVision One-To-One Enterprise.

  1. Load the Sun Cluster 3.0 Agents 12/01 CD-ROM into the CD-ROM drive.

  2. Run the scinstall utility with no options.

    This step starts the scinstall utility in interactive mode.

  3. Choose the menu option, Add Support for New Data Service to This Cluster Node.

    The scinstall utility prompts you for additional information.

  4. Provide the path to the Sun Cluster 3.0 Agents 12/01 CD-ROM.

    The utility refers to the CD as the "data services cd."

  5. Specify the data service to install.

    The scinstall utility lists the data service that you selected and asks you to confirm your choice.

  6. Exit the scinstall utility.

  7. Unload the CD from the drive.

Where to Go From Here

When you finish the Sun Cluster HA for BroadVision One-To-One Enterprise package installation, go to "How to Register and Configure Sun Cluster HA for BroadVision One-To-One Enterprise".

Registering and Configuring Sun Cluster HA for BroadVision One-To-One Enterprise

Use the procedures in this section to perform the following tasks.

How to Register and Configure Sun Cluster HA for BroadVision One-To-One Enterprise

To register and configure Sun Cluster HA for BroadVision One-To-One Enterprise, perform the following steps.


Note -

Before you start Sun Cluster HA for BroadVision One-To-One Enterprise, check that your database is accessible.


  1. Shut down all of the BroadVision One-To-One Enterprise servers, including the root host, back-end, and Interaction Manager servers.


    Note -

    Perform this step after you test the BroadVision One-To-One Enterprise installation.


  2. Run the ps(1) command to check that all of the BroadVision One-To-One Enterprise processes and the orbix daemon (orbixd) are stopped on all of the cluster nodes.

  3. Become superuser on one cluster node.

  4. Run the scrgadm command to register the resource type for Sun Cluster HA for BroadVision One-To-One Enterprise.


    # scrgadm -a -t SUNW.bv
    
    -a

    Adds the resource type for the data service.

    -t SUNW.bv

    Specifies the resource type name that is predefined for your data service.

  5. Run the scrgadm command to create the root host, back-end, and Interaction Manager resources.

    1. Create root host and back-end resources in the failover resource groups that you created in Step 2 of "How to Configure and Verify the BroadVision One-To-One Enterprise, Database, and HTTP Server Installation".


      Note -

      The bvuser and BV1TO1_VAR should be the same for all of the resources.



      # scrgadm -a -j root-host-resource -g root-host-resource-group -t SUNW.bv -x BVUSER=bvuser
       -x BV1TO1_VAR=path-to-bv1to1_var-directory
      # scrgadm -a -j back-end-resource-1 -g back-end-resource-group-1 -t SUNW.bv -x BVUSER=bvuser
       -x BV1TO1_VAR=path-to-bv1to1_var-directory
      # scrgadm -a -j back-end-resource-2 -g back-end-resource-group-2 -t SUNW.bv -x BVUSER=bvuser
       -x BV1TO1_VAR=path-to-bv1to1_var-directory
      ...
      # scrgadm -a -j back-end-resource-n -g back-end-resource-group-n -t SUNW.bv -x BVUSER=bvuser
       -x BV1TO1_VAR=path-to-bv1to1_var-directory
      
      -j root-host-resource

      Specifies the name of the root host resource.

      -x BVUSER=bvuser

      Specifies your BroadVision username.

      -x BV1TO1_VAR=path-to-bv1to1_var-directory

      Specifies the path to the $BV1TO1_VAR directory.

      -j back-end-resource-n

      Specifies the name of the back-end resource.

    2. Create the Interaction Manager resource in the scalable resource group.


      Note -

      The bvuser and BV1TO1_VAR should be the same for all of the resources.



      # scrgadm -a -j im-resource -g im-resource-group -t SUNW.bv -x BVUSER=bvuser /
      -x BV1TO1_VAR=path-to-bv1to1_var-directory
      
      -j im-resource

      Specifies the name of the Interaction Manager resource.

  6. Run the scswitch command to enable and bring online the resource groups that now include the BroadVision One-To-One Enterprise resources.


    # scswitch -Z -g root-host-resource-group
    # scswitch -Z -g back-end-resource-group-1
    # scswitch -Z -g back-end-resource-group-2
    ...
    # scswitch -Z -g back-end-resource-group-n
    # scswitch -Z -g im-resource-group
    

How to Verify the Sun Cluster HA for BroadVision One-To-One Enterprise Installation

Perform the following steps to verify the Sun Cluster HA for BroadVision One-To-One Enterprise installation.

  1. From a web browser, log in to an application that you have configured with the BroadVision One-To-One Enterprise software.

  2. Log in to the node that hosts the root host resource group.

  3. Become the BroadVision user.

  4. Shut down the root host processes.

    1. Set the BV_LOCAL_HOST environment variable as root-host-logical-hostname.

    2. Source the bv1to1.conf.sh file or the bv1to1.conf.csh file, depending on the shell that you use.

    3. Run the following BroadVision command.


      # bvconf shutdown -local
      

    Note -

    The Sun Cluster HA for BroadVision One-To-One Enterprise fault monitors will restart the root host.


  5. Ensure that your web browser connection to BroadVision One-To-One Enterprise is still active.

  6. Run the scswitch command to switch the root host resource group to another cluster node, such as node2.


    # scswitch -z -g root-host-resource-group -h node2
    
  7. Ensure that your web browser connection to BroadVision One-To-One Enterprise is still active.

  8. Repeat Step 2 through Step 7 for each back-end resource group.

Where to Go From Here

You have completed your Sun Cluster HA for BroadVision One-To-One Enterprise installation and configuration. See the following sections for supplemental information.

Examples - Installing, Configuring, and Administering Sun Cluster HA for BroadVision One-To-One Enterprise

"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 configuration information. This information applies to both of the examples.

Table 11-4 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 11-5 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

Example One - Installation and Configuration

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

Example Two - Administration Commands

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

Alternative Configuration

Depending on the flexibility and granularity of administration that you require for each back-end resource, you can set up only one failover resource group to use n logical hostnames and to contain all of the back-end and root host resources.


Note -

See "Alternative Configuration: Cluster With One Resource Group for the BroadVision One-To-One Back-End and Root Host Servers" for an illustration of this alternative configuration.


To set up this alternative configuration, perform the following procedures.

Alternative Configuration: How to Configure and Verify the BroadVision One-To-One Enterprise, Database, and HTTP Server Installation

Perform this procedure to test starting and stopping the back-end processes on all of the nodes on which the back-end host and root host can run in a failover configuration. Additionally, perform this procedure to test the BroadVision One-To-One Enterprise Interaction Managers that you configured in the cluster.

  1. Create a failover resource group to contain the BroadVision One-To-One Enterprise back-end and root host resources.


    # scrgadm -a -g failover-resource-group [-h nodelist]
    -g failover-resource-group

    Specifies the name of the resource group that contains the back-end and root host logical hostnames and resources. The name of the failover resource group can be your choice but must be unique for resource groups within the cluster.

    [-h nodelist]

    Specifies an optional, comma-separated list of physical node names or IDs that identify potential masters. The order here determines the order in which the Resource Group Manager (RGM) considers primary nodes during failover.

  2. Verify that you have added all of the logical hostnames that you use to your name service database.

    Additionally, add all of the logical hostnames that you use to the /etc/inet/hosts file on each cluster node. Therefore, if the name service goes down, the nodes can still find the name-to-address mapping on their local hosts file.

  3. Run the scrgadm(1M) command to add the logical hostnames that the failover resource group will use.


    # scrgadm -a -L -g failover-resource-group -l root-host-logical-hostname-1 [-n netiflist]
    # scrgadm -a -L -g failover-resource-group -l back-end-logical-hostname-1 [-n netiflist]
    # scrgadm -a -L -g failover-resource-group -l back-end-logical-hostname-2 [-n netiflist]
    ...
    # scrgadm -a -L -g failover-resource-group -l back-end-logical-hostname-n [-n netiflist]
    -l root-host-logical-hostname

    Specifies the logical hostname that the root host resource uses.

    -l back-end-logical-hostname-n

    Specifies the logical hostname that each back-end resource uses.

    [-n netiflist]

    Specifies an optional, comma-separated list that identifies the NAFO groups that are on each node. The netiflist must represent all of the nodes in the resource group's nodelist. If you do not specify this option, the scrgadm command attempts to discover a network adapter on the subnet that the hostname list identifies for each nodelist node.

  4. Create a scalable resource group for the Interaction Managers.


    # scrgadm -a -g im-resource-group -y Maximum_primaries=n -y Desired_primaries=n
    
    -g im-resource-group

    Specifies the name of the scalable resource group that contains the Interaction Managers. This name can be your choice but must be unique for resource groups within the cluster.

    -y Maximum_primaries=m

    Specifies the maximum number of active primary nodes allowed for this resource group. If you do not assign a value to this property, the default is 1.

    -y Desired_primaries=n

    Specifies the desired number of active primary nodes allowed for this resource group. If you do not assign a value to this property, the default is 1.

  5. From one cluster node, run the scswitch(1M) command to move the failover resource group into the managed state and bring it online.


    # scswitch -Z -g failover-resource-group
    

    Note -

    You do not need to bring the scalable resource group online because the scalable resource group does not yet contain resources. You must bring the failover resource group online because the BroadVision One-To-One Enterprise back-end processes cannot start if the logical hostname resource is unavailable.


  6. Check that the database is accessible.

    See your database documentation for details.

  7. Ensure that you have configured the database to enable BroadVision One-To-One back-end servers to access the database from any cluster node.

    See your database documentation for details.

  8. As the BroadVision user, log in to the cluster node that hosts the failover resource group.

  9. Follow the steps in the BroadVision One-To-One Enterprise Installation and Administration Guide to run the following BroadVision commands.

    1. Set the BV_LOCAL_HOST environment variable as root-host-logical-hostname.

    2. Source the bv1to1.conf.sh file or the bv1to1.conf.csh file, depending on the shell that you use.

    3. Run the bvconf bootstrap command on the root host to initialize the BroadVision One-To-One Enterprise installation.


      Note -

      Do not run the bvconf command as superuser.



      % bvconf bootstrap -r root-host-logical-hostname
      
    4. Set the BV_LOCAL_HOST environment variable as back-end-logical-hostname or im-hostname.

    5. Source the bv1to1.conf.sh file or the bv1to1.conf.csh file, depending on the shell that you use.

    6. For each back-end host and Interaction Manager host, run the bvconf execute command to configure and start the BroadVision One-To-One Enterprise installation.


      % bvconf execute -local -var shared -r root-host-logical-hostname
      
  10. Run the BroadVision command bvconf gateway to generate gateway configuration files for the HTTP gateway applications.

    This command generates the files and writes them to the $BV1TO1_VAR/etc/appName.cfg file.


    % bvconf gateway -A appName
    
    -A appName

    Specifies the gateway application name, which is defined in the $BV1TO1_VAR/etc/bv1to1.conf configuration file. See the BroadVision One-To-One Enterprise Installation and Administration Guide for details.

  11. Copy the gateway application configuration file to the /etc/opt/BVSNsmgr directory on each of the cluster nodes that runs HTTP instances.


    Note -

    Ensure that you copy the gateway application configuration file with the extension .cfg.


    See the BroadVision One-To-One Enterprise Installation and Administration Guide for details.

  12. Configure and start the HTTP servers.

    See your HTTP server documentation for details. Additionally, see the BroadVision One-To-One Enterprise Installation and Administration Guide for information on HTTP server configuration.

  13. From a BroadVision client, connect to the BroadVision site, and check the installation.

  14. If the BroadVision One-To-One Enterprise software is functioning correctly, perform the following steps to shut down the Interaction Managers, back-end processes, and root host processes.

    1. Shut down the Interaction Managers.

      1. Set the BV_LOCAL_HOST environment variable as im-hostname.

      2. Source the bv1to1.conf.sh file or the bv1to1.conf.csh file, depending on the shell that you use.

      3. Run the following command.


        # bvconf shutdown -local
        

    2. Shut down the back-end processes.

      1. Set the BV_LOCAL_HOST environment variable as back-end-logical-hostname-n.

      2. Source the bv1to1.conf.sh file or the bv1to1.conf.csh file, depending on the shell that you use.

      3. Run the following command.


        # bvconf shutdown -local
        

    3. Shut down the root host processes.

      1. Set the BV_LOCAL_HOST environment variable as root-host-logical-hostname.

      2. Source the bv1to1.conf.sh file or the bv1to1.conf.csh file, depending on the shell that you use.

      3. Run the following command.


        # bvconf shutdown -local
        

  15. Run the scswitch command to switch the failover resource group to another cluster node, such as node2.


    # scswitch -z -g failover-resource-group -h node2
    
  16. Restart the BroadVision One-To-One Enterprise software.

  17. Connect to the cluster from a BroadVision client, and check that the BroadVision One-To-One Enterprise software functions correctly.

  18. Repeat Step 15 through Step 18 on all of the potential primaries of the BroadVision One-To-One Enterprise resource groups.

Alternative Configuration: How to Install Sun Cluster HA for BroadVision One-To-One Enterprise Packages

You need the Sun Cluster 3.0 Agents 12/01 CD-ROM to complete this procedure. Perform this procedure on all of the cluster nodes that run Sun Cluster HA for BroadVision One-To-One Enterprise.

  1. Load the Sun Cluster 3.0 Agents 12/01 CD-ROM into the CD-ROM drive.

  2. Run the scinstall utility with no options.

    This step starts the scinstall utility in interactive mode.

  3. Choose the menu option, Add Support for New Data Service to This Cluster Node.

    The scinstall utility prompts you for additional information.

  4. Provide the path to the Sun Cluster 3.0 Agents 12/01 CD-ROM.

    The utility refers to the CD as the "data services cd."

  5. Specify the data service to install.

    The scinstall utility lists the data service that you selected and asks you to confirm your choice.

  6. Exit the scinstall utility.

  7. Unload the CD from the drive.

Alternative Configuration: How to Register and Configure Sun Cluster HA for BroadVision One-To-One Enterprise

To register and configure Sun Cluster HA for BroadVision One-To-One Enterprise, perform the following steps.


Note -

Before you start Sun Cluster HA for BroadVision One-To-One Enterprise, check that your database is accessible.


  1. Shut down all of the BroadVision One-To-One Enterprise servers, including the root host, back-end, and Interaction Manager servers.


    Note -

    Perform this step after you test the BroadVision One-To-One Enterprise installation.


  2. Run the ps(1) command to check that all of the BroadVision One-To-One Enterprise processes and the orbix daemon (orbixd) are stopped on all of the cluster nodes.

  3. Become superuser on one cluster node.

  4. Run the scrgadm command to register the resource type for Sun Cluster HA for BroadVision One-To-One Enterprise.


    # scrgadm -a -t SUNW.bv
    
    -a

    Adds the resource type for the data service.

    -t SUNW.bv

    Specifies the resource-type name that is predefined for your data service.

  5. Run the scrgadm command to create the root host, back-end, and Interaction Manager resources.

    1. Set the Network_resources_used property for each resource to point to the proper logical hostname.

      If you created two or more back-end resources in one resource group, and you do not set the Network_resources_used property, the validate method will fail.


      # scrgadm -a -j root-host-resource -g failover-resource-group -t SUNW.bv 
      -y Network_resources_used=root-host-logical-hostname -x BVUSER=bvuser
      -x BV1TO1_VAR=path-to-bv1to1_var-directory
      # scrgadm -a -j back-end-resource-1 -g failover-resource-group -t SUNW.bv 
      -y Network_resources_used=back-end-logical-hostname-1 -x BVUSER=bvuser
       -x BV1TO1_VAR=path-to-bv1to1_var-directory
      ...
      # scrgadm -a -j back-end-resource-n -g failover-resource-group -t SUNW.bv 
      -y Network_resources_used=back-end-logical-hostname-n -x BVUSER=bvuser
      -x BV1TO1_VAR=path-to-bv1to1_var-directory
      
      -j root-host-resource

      Specifies the name of the root host resource.

      -x BVUSER=bvuser

      Specifies your BroadVision username.

      -x BV1TO1_VAR=path-to-bv1to1_var-directory

      Specifies the path to the $BV1TO1_VAR directory.

      -j back-end-resource-n

      Specifies the name of the back-end resource.


      Note -

      You should have created all of the logical hostnames that were defined in the Network_resource_used property in the failover resource group (see Step 3 of the procedure, "Alternative Configuration: How to Configure and Verify the BroadVision One-To-One Enterprise, Database, and HTTP Server Installation").


    2. Create the Interaction Manager resource in the scalable resource group that you created in Step 4 of the procedure, "Alternative Configuration: How to Configure and Verify the BroadVision One-To-One Enterprise, Database, and HTTP Server Installation".


      # scrgadm -a -j im-resource -g im-resource-group -t SUNW.bv 
      
      -x BVUSER=bvuser -x BV1TO1_VAR=path-to-bv1to1_var-directory
      
      -j im-resource

      Specifies the name of the Interaction Manager resource.

  6. Run the scswitch command to enable the resource group that now includes the BroadVision One-To-One back-end and root host resources.


    # scswitch -Z -g failover-resource-group
    # scswitch -Z -g im-resource-group
    

Alternative Configuration: How to Verify the Sun Cluster HA for BroadVision One-To-One Enterprise Installation

Perform the following steps to verify the Sun Cluster HA for BroadVision One-To-One Enterprise installation.

  1. From a web browser, log in to an application that you have configured with the BroadVision One-To-One Enterprise software.

  2. Log in to the node that hosts the failover resource group.

  3. Become the BroadVision user.

  4. Shut down the root host processes.

    1. Set the BV_LOCAL_HOST environment variable as root-host-logical-hostname.

    2. Source the bv1to1.conf.sh file or the bv1to1.conf.csh file, depending on the shell that you use.

    3. Run the following BroadVision command.


      # bvconf shutdown -local
      

    Note -

    The Sun Cluster HA for BroadVision One-To-One Enterprise fault monitors will restart the root host.


  5. Ensure that your web browser connection to BroadVision One-To-One Enterprise is still active.

  6. Run the scswitch command to switch the failover resource group to another cluster node, such as node2.


    # scswitch -z -g failover-resource-group -h node2
    
  7. Ensure that your web browser connection to BroadVision One-To-One Enterprise is still active.

Sun Cluster HA for BroadVision One-To-One Enterprise Extension Properties

This section describes how to configure Sun Cluster HA for BroadVision One-To-One Enterprise extension properties. Typically, you use the command-line scrgadm -x parameter=value to configure the extension properties when you create the BroadVision One-To-One Enterprise resources.


Note -

See the r_properties(5) and the rg_properties(5) man pages for details on all of the Sun Cluster extension properties.


Table 11-6 describes the Sun Cluster HA for BroadVision One-To-One Enterprise extension properties that you can set for all of the BroadVision One-To-One Enterprise resources. You can update some extension properties dynamically. You can update others, however, only when you create the BroadVision One-To-One Enterprise resources. The Tunable entries in the following table indicate when you can update each property.

Table 11-6 Sun Cluster HA for BroadVision One-To-One Enterprise Extension Properties

Property Category 

Property Name 

Description 

BroadVision One-To-One Enterprise configuration 

 

 

BVUSER

The BroadVision user UNIX ID. Replace bvuser with your preferred username.

 

Default: None

Tunable: At creation

BV1TO1_VAR

The environment variable that is set as bvuser.

 

Default: None

Tunable: At creation

Probe 

 

Monitor_retry_interval

The time (in minutes) over which the Resource Group Manager (RGM) counts fault monitor failures. The number of times that the fault monitor fails can exceed the value that the extension property Monitor_retry_count specifies. If the number of failures exceeds the value of Monitor_retry_count within the time period that Monitor_retry_interval specifies, the Process Monitor Facility (PMF) does not restart the fault monitor.

 

Default: 2

Tunable: Any time

Monitor_retry_count

The number of PMF restarts that the Sun Cluster software allows for the fault monitor. 

 

Default: 4

Tunable: Any time

Probe_timeout

The time-out value in seconds for the probes. 

 

Default: 180

Tunable: Any time

Daemons 

START_ORB_SERVERS

Type Boolean. By default, the data service starts the orbix daemon and all of the BroadVision daemons in the resource. The orbix daemon starts the orbix servers whenever needed. If you want the data service to start the orbix servers, set this property to TRUE.

 

Default: FALSE

Tunable: Any time

Sun Cluster HA for BroadVision One-To-One Enterprise Fault Monitor

The Sun Cluster HA for BroadVision One-To-One Enterprise fault monitor checks BroadVision One-To-One back-end and Interaction Manager process health. BroadVision One-To-One Enterprise process health impacts BroadVision One-To-One Enterprise resources' failure history, which in turn drives the fault monitor's actions. For each BroadVision One-To-One Enterprise resource, fault monitor actions include no action, restart, or failover.

Interaction Manager Fault Monitoring

For Interaction Manager resources, failover happens only when both of the following conditions are met.

After failover, the fault monitor will not restart the resource on any cluster node if both of the following conditions occur.

Sun Cluster HA for BroadVision One-To-One Enterprise Fault Probes

The fault monitors for each BroadVision One-To-One Enterprise resource (root host, back-end host, and Interaction Manager host) monitor the following processes.

Known Issues

The following issues and behaviors can occur with Sun Cluster HA for BroadVision One-To-One Enterprise.