Sun Cluster 3.1 Data Service for Siebel

Installing and Configuring Sun Cluster HA for Siebel

This chapter explains how to install and configure Sun Cluster HA for Siebel.

This chapter contains the following procedures.

Sun Cluster HA for Siebel Overview

Use the information in this section to understand how to make the Siebel application highly available.

Sun Cluster HA for Siebel provides Fault Monitoring and automatic failover for the Siebel application. High availability is provided for the Siebel gateway and Siebel server. With a Siebel implementation, any physical node running the Sun Cluster agent cannot be running the Resonate agent as well. Resonate and Sun Cluster can co-exist within the same Siebel enterprise, but not on the same physical server.

For conceptual information on failover services, see the Sun Cluster 3.1 Concepts Guide.

Table 1–1 Protection of Siebel Components

Siebel Component 

Protected by 

Siebel gateway 

Sun Cluster HA for Siebel 

The resource type is SUNW.sblgtwy.

Siebel server 

 

Sun Cluster HA for Siebel 

The resource type is SUNW.sblsrvr.

Installing and Configuring Sun Cluster HA for Siebel

Table 1–2 lists the tasks for installing and configuring Sun Cluster HA for Siebel. Perform these tasks in the order that they are listed.

Table 1–2 Task Map: Installing and Configuring Sun Cluster HA for Siebel

Task 

For Instructions 

Plan the Siebel installation 

Planning the Sun Cluster HA for Siebel Installation and Configuration

Prepare the nodes and disks 

How to Prepare the Nodes

Install and configure Siebel 

How to Install the Siebel Gateway on the Global File System

How to Install the Siebel Gateway on Local Disks of Physical Hosts

How to Install the Siebel Server and Siebel Database on the Global File System

How to Install the Siebel Server and Siebel Database on Local Disks of Physical Hosts

Verify Siebel installation and configuration 

How to Verify the Siebel Installation and Configuration

Install Sun Cluster HA for Siebel packages 

How to Install the Sun Cluster HA for Siebel Packages

Register and configure Sun Cluster HA for Siebel as a failover data service 

How to Register and Configure Sun Cluster HA for Siebel as a Failover Data Service

How to Register and Configure the Siebel Server

Verify Sun Cluster HA for Siebel installation and configuration 

How to Verify the Sun Cluster HA for Siebel Installation and Configuration

Maintain Sun Cluster HA for Siebel 

Maintaining Sun Cluster HA for Siebel

Understand Sun Cluster HA for Siebel Fault Monitor 

Understanding Sun Cluster HA for Siebel Fault Monitor

Planning the Sun Cluster HA for Siebel Installation and Configuration

This section contains the information you need to plan your Sun Cluster HA for Siebel installation and configuration.

Configuration Restrictions


Caution – Caution –

Your data service configuration might not be supported if you do not observe these restrictions.


Use the restrictions in this section to plan the installation and configuration of Sun Cluster HA for Siebel. This section provides a list of software and hardware configuration restrictions that apply to Sun Cluster HA for Siebel.

For restrictions that apply to all data services, see the Sun Cluster 3.1 Release Notes.

Configuration Requirements


Caution – Caution –

Your data service configuration might not be supported if you do not adhere to these requirements.


Use the requirements in this section to plan the installation and configuration of Sun Cluster HA for Siebel. These requirements apply to Sun Cluster HA for Siebel only. You must meet these requirements before you proceed with your Sun Cluster HA for Siebel installation and configuration.

For requirements that apply to all data services, see “Configuration Guidelines for Sun Cluster Data Services” in Sun Cluster 3.1 Data Service Planning and Administration Guide.

Standard Data Service Configurations

Use the standard configuration in this section to plan the installation and configuration of Sun Cluster HA for Siebel. Sun Cluster HA for Siebel supports the standard configuration in this section. Sun Cluster HA for Siebel might support additional configurations. However, you must contact your Sun service provider for information on additional configurations.

Standard Data Service Configurations illustrates a possible configuration using Sun Cluster HA for Siebel. The Siebel server and the Siebel gateway are configured as failover data services.

Figure 1–1 Standard Siebel Configuration

Illustration: The preceding context describes the graphic.

Configuration Planning Questions

Use the questions in this section to plan the installation and configuration of Sun Cluster HA for Siebel. Insert the answers to these questions into the data service worksheets in the Sun Cluster 3.1 Release Notes.

Preparing the Nodes and Disks

This section contains the procedures you need to prepare the nodes and disks.

How to Prepare the Nodes

Use this procedure to prepare for the installation and configuration of Siebel.

    Become super user on all of the nodes.

    Configure the /etc/nsswitch.conf file so that Sun Cluster HA for Siebel starts and stops correctly if a switchover or a failover occurs.

    On each node that can master the logical host that runs Sun Cluster HA for Siebel, include one of the following entries for group in the /etc/nsswitch.conf file.


    group:
    group: files [NOTFOUND=return] nis
    group: files [NOTFOUND=return] nisplus
    

    Sun Cluster HA for Siebel uses the su — user command to start, stop, and probe the service.

    The network information name service might become unavailable when a cluster node's public network fails. Adding one of the preceding entries for group ensures that the su(1M) command does not refer to the NIS/NIS+ name services if the network information name service is unavailable.

    Prepare the Siebel administrator's home directory.

    On each node, create an entry for the Siebel administrator group in the /etc/group file, and add potential users to the group.


    Tip –

    In the following example, the Siebel administrator group is named siebel.


    Ensure that group IDs are the same on all of the nodes that run Sun Cluster HA for Siebel.


    # siebel:*:521:siebel
    

    You can create group entries in a network name service. If you do so, also add your entries to the local /etc/inet/hosts file to eliminate dependency on the network name service.

    On each node, create an entry for the Siebel administrator.


    Tip –

    In the following example, the Siebel administrator is named siebel.


    The following command updates the /etc/passwd and /etc/shadow files with an entry for the Siebel administrator.


    # useradd -u 121 -g siebel -s /bin/ksh -d /Siebel-home siebel
    

    Ensure that the Siebel user entry is the same on all of the nodes that run Sun Cluster HA for Siebel.

    Ensure that the Siebel administrator's default environment contains settings for accessing the Siebel database. For example, if the Siebel database is on Oracle, the following entries may be included in the .profile file.


    export ORACLE_HOME=/global/oracle/OraHome
    export PATH=$PATH:$ORACLE_HOME/bin
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
    
    export TNS_ADMIN=$ORACLE_HOME/network/admin
    export ORACLE_SID=siebeldb
    

    Create a failover resource group to hold the logical hostname and the Siebel gateway resources.


    # scrgadm -a -g failover-rg [-h nodelist]
    

    Add the logical hostname resource.

    Ensure that logical hostname matches the value of the SIEBEL_GATEWAY environment variable that is set in the siebenv.sh file of the Siebel gateway, and also the Siebel server installations.


    # scrgadm -a -L -g failover-rg -l logical_hostname
    

    Bring the resource group online.


    # scswitch -Z -g failover-rg
    

    Repeat Step 7 through Step 9 for each logical hostname that is required.

Installing and Configuring the Siebel Application

This section contains the procedures you need to install and configure the Siebel application. To install the Siebel application, you must install the Siebel gateway, the Siebel server, and the Siebel database.

To install the Siebel application, you need the following information about your configuration.

To install the Siebel application, see the following sections.

Installing the Siebel Gateway

You can install the Siebel gateway either on the global file system or on local disks of physical hosts. To install the Siebel gateway, see one of the following procedures.

How to Install the Siebel Gateway on the Global File System

Use this procedure to install the Siebel gateway on the global file system. To install the Siebel gateway on local disks of physical hosts, see How to Install the Siebel Gateway on Local Disks of Physical Hosts.

To install the Siebel gateway on the global file system, install the Siebel software only once from any node of the cluster.

  1. Install the Siebel gateway by following the instructions in the Siebel installation documentation and the latest release notes.

    Do not use the Autostart feature. When prompted, configure Autostart=NO.

  2. Verify that the siebenv.sh file is under gateway_root, and is owned by the user who will launch the Siebel gateway.

  3. Change the SIEBEL_GATEWAY to the logical hostname that is selected for the Siebel gateway in siebenv.sh and siebenv.csh files under gateway_root.

  4. Stop and restart the Siebel gateway to ensure that the gateway is using the logical hostname.

How to Install the Siebel Gateway on Local Disks of Physical Hosts

Use this procedure to install the Siebel gateway on local disks of physical hosts. To install the Siebel gateway on the global file system, see How to Install the Siebel Gateway on the Global File System.


Note –

To install the Siebel gateway on local disks of physical hosts, the directory gateway_root/sys must be highly available (it must be installed on a global file system).


  1. Install the Siebel gateway on any one node of the cluster by following the instructions in the Siebel installation documentation and the latest release notes.

    Do not use the Autostart feature. When prompted, configure Autostart=NO.

  2. Verify that the siebenv.sh file is under gateway_root, and is owned by the user who will launch the Siebel gateway.

  3. Change the SIEBEL_GATEWAY to the logical hostname that is selected for the gateway in siebenv.sh and siebenv.csh files under gateway_root.

  4. Stop and restart the Siebel gateway to ensure that the gateway is using the logical hostname.

  5. Move gateway_root/sys to /global/siebel/sys and create a link to the global file system from the local file system.


    # mv gateway_root/sys /global/siebel/sys
    # ln -s /global/siebel/sys gateway_root/sys
    
  6. Replicate the installation on all remaining nodes of the cluster.


    # rdist -c gateway_root hostname:gateway_root
    
  7. Verify that the ownerships and permissions of the files and directories in the Siebel gateway installation are identical on all nodes of the cluster.

  8. For each node on the cluster, change the ownership of the link to the appropriate Siebel user.


    # chown -h siebel:siebel gateway_root/sys
    
  9. As Siebel user, verify that the gateway is properly installed and configured. Ensure the command below returns a version string.


    # srvredit -q -g SIEBEL_GATEWAY -e none -z -c '$Gateway.VersionString'
    

Installing the Siebel Server and Siebel Database

You can install the Siebel server either on the global file system or on local disks of physical hosts. To install the Siebel server and configure the Siebel server and Siebel database , see one of the following procedures

How to Install the Siebel Server and Siebel Database on the Global File System

Use this procedure to install the Siebel server and configure the Siebel server and Siebel database on the global file system. To install the Siebel server on local disks of physical hosts, see How to Install the Siebel Server and Siebel Database on Local Disks of Physical Hosts.

To install the Siebel server on the global file system, install the software only once from any node of the cluster.

  1. Install the Siebel server by following the instructions in the Siebel installation documentation and the latest release notes.

    Do not use the Autostart feature. When prompted, configure Autostart=No.

    When prompted to enter the gateway hostname, enter the logical hostname for the Siebel gateway.

  2. Verify that the siebenv.sh file is under server_root and is owned by the user who will launch the Siebel server.

  3. Ensure that a database such as HA Oracle is configured for Siebel and that the database is online.

  4. Use the Siebel documentation to configure and populate the Siebel database.

    When creating the ODBC data source (using dbsrvr_config.ksh script), ensure that the name is siebsrvr_siebel_enterprise.

  5. Create a database user (for example, dbuser/dbpassword) with permission to connect to the Siebel database for use by the Sun Cluster HA for Siebel Fault Monitor.

  6. Log in as the user who will launch the Siebel server and manually start the Siebel server.

  7. Run srvrmgr and change the HOST parameter to the logical hostname for the Siebel server.


    # srvrmgr:hasiebel> change param Host=logical-hostname for server hasiebel
    

    Note –

    This change will take effect when the Siebel server is started under Sun Cluster control.


How to Install the Siebel Server and Siebel Database on Local Disks of Physical Hosts

Use this procedure to install the Siebel server and configure the Siebel server and Siebel database on local disks of physical hosts. To install the Siebel server on the global file system, see How to Install the Siebel Server and Siebel Database on the Global File System.

To install the Siebel server on the local disks of the physical hosts, install the software on any one node of the cluster.

  1. Install the Siebel server by following the instructions in the Siebel installation documentation and the latest release notes.

    Do not use the Autostart feature. When prompted, configure Autostart=No.

    When prompted to enter the gateway hostname, enter the logical hostname for the Siebel gateway.

  2. Verify that the siebenv.sh file is under server_root and is owned by the user who will launch the Siebel server.

  3. Ensure that a database such as HA Oracle is configured for Siebel and that the database is online.

  4. Use the Siebel documentation to configure and populate the Siebel database.

    When creating the ODBC data source (using dbsrvr_config.ksh script), ensure that the name is siebsrvr_siebel_enterprise.

  5. Create a database user (for example, dbuser/dbpassword) with permission to connect to the Siebel database for use by the Sun Cluster HA for Siebel Fault Monitor.

  6. Log in as the user who will launch the Siebel server and manually start the Siebel server.

  7. Run srvrmgr and change the HOST parameter to the logical hostname for the Siebel server.


    srvrmgr:hasiebel> change param Host=logical-hostname for server hasiebel
    

    Note –

    This change will take effect when the Siebel server is started under Sun Cluster control.


  8. Replicate the installation on all of the remaining nodes of the cluster.


    # rdist -c server_root hostname:server_root
    
  9. Verify that the ownerships and permissions of files and directories in the Siebel gateway installation are identical on all nodes of the cluster.

Verifying the Siebel Installation and Configuration

This section contains the procedure you need to verify the Siebel installation and configuration.

How to Verify the Siebel Installation and Configuration

Use this procedure to verify the Siebel gateway, Siebel server, and Siebel database installation and configuration. This procedure does not verify that your application is highly available because you have not installed your data service yet.

  1. Verify that the logical hostname is online on the node on which the resource(s) will be brought online.

  2. Manually start the Siebel gateway as the user who will launch the Siebel gateway.

  3. Manually start the Siebel server as the user who will launch the Siebel server.

  4. Use odbcsql to verify connectivity to the Siebel database.


    # odbcsql /s siebsrvr_siebel_enterprise /u dbuser /p dbpassword
    
  5. Run list servers sub-command under srvrmgr.

    The HOST_NAME parameter for the Siebel server will show the physical hostname. After the Siebel server is configured to be highly available, the HOST_NAME should show the logical hostname for the Siebel server.

  6. Test various Siebel user sessions, such as sales and call center using a Siebel dedicated client and supported thin client (browser).

  7. Manually stop the Siebel server as the user who started the Siebel server.

  8. Manually stop the Siebel gateway as the user who started the Siebel gateway.

Installing the Sun Cluster HA for Siebel Packages

This section contains the procedure you need to install the Sun Cluster HA for Siebel packages.

How to Install the Sun Cluster HA for Siebel Packages

Use this procedure to install the Sun Cluster HA for Siebel packages. You need the Sun Cluster Agents CD-ROM to perform this procedure. This procedure assumes that you did not install the data service packages during your initial Sun Cluster installation.

  1. Load the Sun Cluster Agents 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 Agents CD-ROM.

    The utility refers to the CD-ROM 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-ROM from the drive.

Registering and Configuring the Sun Cluster HA for Siebel

This section contains the procedures you need to configure Sun Cluster HA for Siebel.

Sun Cluster HA for Siebel Extension Properties

Use the extension properties in Table 1–3 and Table 1–4 to create your resources. Use the command scrgadm -x parameter-value to configure extension properties when you create your resource. Use the procedure in “Administering Data Service Resources” in Sun Cluster 3.1 Data Service Planning and Administration Guide to configure the extension properties if you have already created your resources. You can update some extension properties dynamically. You can update others, however, only when you create or disable a resource. The Tunable entries indicate when you can update each property. See Appendix A for details on all Sun Cluster properties.

How to Register and Configure Sun Cluster HA for Siebel as a Failover Data Service

Use this procedure to configure Sun Cluster HA for Siebel as a failover data service. This procedure assumes that you installed the data service packages during your initial Sun Cluster installation. If you did not install the Sun Cluster HA for Siebel packages as part of your initial Sun Cluster installation, see How to Install the Sun Cluster HA for Siebel Packages to install the data service packages. Otherwise, use this procedure to configure the Sun Cluster HA for Siebel.

  1. Become superuser on one of the nodes in the cluster that hosts the application server.

  2. Add the resource type for the Siebel gateway.


    # scrgadm -a -t SUNW.sblgtwy
    
  3. Create a failover resource group to hold the logical hostname and the Siebel gateway resources.


    Note –

    If you have already created a resource group, added the logical hostname resource, and brought the resource group online when you completed the How to Prepare the Nodes procedure, you may skip to Step 6.



    # scrgadm -a -g gateway-rg [-h nodelist]
    
  4. Add the logical hostname resource.

    Ensure that logical hostname matches the value of the SIEBEL_GATEWAY environment variable that is set in the siebenv.sh file of the Siebel gateway, and also the Siebel server installations.


    # scrgadm -a -L -g gateway-rg -l logical_hostname
    
  5. Bring the resource group online.


    # scswitch -Z -g gateway-rg
    
  6. Verify that siebenv.sh file exists under gateway_root.

    The owner of this file launches the Siebel gateway server when the Siebel gateway resource is brought online.

  7. Create the Siebel gateway resource.


    # scrgadm -a -j sblgtwy-rs -g gateway-rg \
    -t SUNW.sblgtwy  \
    -x Confdir_list=gateway_root
    
  8. Enable the Siebel gateway resource.


    # scswitch -e -j sblgtwy-rs
    
  9. Verify that the Siebel resource group and the Siebel gateway resource are online by using scstat —g and ps —ef.

How to Register and Configure the Siebel Server

  1. Add the resource type for the Siebel server.


    # scrgadm -a -t SUNW.sblsrvr
    
  2. Create the failover resource group to hold the logical hostname and the Siebel server resources.


    Note –

    If you have already created a resource group, added the logical hostname resource, and brought the resource group online when you completed the How to Prepare the Nodes procedure, you may skip to Step 5.



    # scrgadm -a -g siebel-rg [-h nodelist]
    
  3. Add the logical hostname resource.

    This logical hostname should match the value of the HOST_NAME parameter for the Siebel server.


    # scrgadm -a -L -g siebel-rg -l logical-hostname
    
  4. Bring the resource group online.

    The following command brings the resource group online on the preferred node.


    # scswitch -Z -g siebel-rg
    
  5. Verify that the siebenv.sh file is located under server_root.

  6. Create a file called scsblconfig under server_root , owned by the owner of siebenv.sh.

    If the Siebel server is installed locally, create the file scsblconfig under server_root on all nodes.

    For security reasons, make this file readable only by the owner.


    # cd server_root
    # touch scsblconfig
    # chown siebel:siebel scsblconfig
    # chmod 400 scsblconfig
    
  7. Select a database user (for example, dbuser/dbuserpassword) with permission to connect to the database for use by the Sun Cluster HA for Siebel Fault Monitor.

  8. Select another Siebel user (for example, sadmin/sadminpassword) with permission to run the compgrps command in srvrmgr.

  9. Add the following entries into the sbsblconfig file.


    export DBUSR=dbuser
    export DBPWD=dbuserpassword
    export SADMUSR=sadmin
    export SADMPWD=sadminpassword
    
  10. Create the Siebel server resource.


    # scrgadm -a -j sblsrvr-rs -g siebel-rg \
    -t SUNW.sblsrvr \
    -x Confdir_list=server_root \
    -x siebel_enterprise=siebel enterprise name \
    -x siebel_server=siebel server name
    

    Caution – Caution –

    If you enter incorrect values for siebel_enterprise or siebel_server, you may not see any errors during validation. However, resource startup will fail. If siebel_enterprise is incorrect, validate method will not be able to verify database connectivity, which will result in a warning only.


  11. Enable the Siebel server resource.


    # scswitch -e -j sblsrvr-rs
    
  12. Verify that the resource group and the Siebel server resource are online, by using scstat –g and ps –ef commands.

Verifying the Sun Cluster HA for Siebel Installation and Configuration

This section contains the procedure you need to verify that you installed and configured your data service correctly.

How to Verify the Sun Cluster HA for Siebel Installation and Configuration

Use this procedure to verify that you installed and configured Sun Cluster HA for Siebel correctly.

  1. Bring the Siebel database, Siebel gateway, and Siebel server resources online on the cluster.

  2. Log on to the node on which the Siebel server is online.

  3. Confirm that the Fault Monitor functionality is working correctly.

  4. Start srvrmgr and run the subcommand list compgrps.

  5. Verify that the required Siebel components are enabled.

  6. Connect to Siebel using a supported thin-client (browser) and run a session.

  7. As user root, switch the Siebel server resource group to another node.


    # scswitch -z -g siebel-rg -h node2
    
  8. Repeat Step 4, Step 5, and Step 6 for each potential node on which the Siebel server resource can run.

  9. As root user, switch the Siebel gateway resource group to another node.


    # scswitch -z -g gateway-rg -h node2
    

Maintaining Sun Cluster HA for Siebel

This section contains guidelines for maintaining Sun Cluster HA for Siebel.


Caution – Caution –

If the Siebel server is started manually without disabling the resource or bringing the resource group to an unmanaged state, the Siebel resource start method might “reset” the service on the node where the resource is attempting to be started under Sun Cluster control. This may lead to unexpected results.


Understanding Sun Cluster HA for Siebel Fault Monitor

Use the information in this section to understand Sun Cluster HA for Siebel Fault Monitors.

This section provides the following information.

Sun Cluster HA for Siebel supplies two Fault Monitors, the Gateway Fault Monitor and the Server Fault Monitor. Each of these Fault Monitors is described in the following sections.

Extension Properties

Sun Cluster HA for Siebel Fault Monitor uses the following extension properties. You might be able to tune these extension properties. See Sun Cluster HA for Siebel Extension Properties to review or set extension properties.

Table 1–3 Sun Cluster HA for Siebel (SUNW.sblgtwy) Extension Properties

Name/Data Type 

Description 

Confdir_list(stringarray) 

The Siebel gateway root directory location 

Default: None

Tunable: At creation

Table 1–4 Sun Cluster HA for Siebel SUNW.sblsrvr Extension Properties

Name/Data Type 

Description 

Confdir_list(stringarray) 

The Siebel server root directory location 

Default: None

Tunable: At creation

siebel_enterprise (string) 

The Siebel Enterprise name 

Default: None

Tunable: At creation

siebel_serves (string) 

The Siebel server name 

Default: None

Tunable: At creation

Probing Algorithm and Functionality

Siebel Gateway Fault Monitor

The Siebel Gateway Fault Monitor monitors the Siebel gateway process. If the Siebel gateway process dies, the Fault Monitor restarts it, or fails it over to another node.

Siebel Server Fault Monitor

The Siebel Server Fault Monitor does the following every thorough_probe_interval seconds.

Monitors the Siebel database

If the Siebel database fails, the status of the Siebel server is marked as DEGRADED. When the Siebel database restarts again, the Siebel server resource probe tries to verify that the Siebel server is functioning. When this test fails, the Siebel server is restarted or failed over to another node.

The Fault Monitor also starts the Siebel server when the Siebel database that was not available when the START method ran then becomes available.

Monitors Siebel gateway

If the Siebel gateway fails, the status of the Siebel server is marked as DEGRADED. When the Siebel gateway restarts again, the Siebel server resource probe tries to verify that the Siebel server is functioning. When this test fails, the Siebel server is restarted or failed over to another node.

The Fault Monitor also starts the Siebel server when the Siebel gateway that was not available when the START method ran then becomes available.

Monitors the Siebel server and all its enabled components

If the Siebel server fails, it is restarted or failed over. If any of the Siebel components fail, a partial (10%) failure is reported to the framework. Currently, component failures may be detected only in English language installations of Siebel.