Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (478 KB)
Installing and Configuring Sun Cluster HA for WebSphere MQ IntegratorThis chapter explains how to install and configure Sun Cluster HA for WebSphere MQ Integrator. This chapter contains the following sections.
Installing and Configuring Sun Cluster HA for WebSphere MQ IntegratorTable 1 lists the tasks for installing and configuring Sun Cluster HA for WebSphere MQ Integrator. Perform these tasks in the order that they are listed. Table 1 Task Map: Installing and Configuring Sun Cluster HA for WebSphere MQ Integrator
Sun Cluster HA for WebSphere MQ Integrator OverviewSun Cluster works with WebSphere MQ messaging, extending its basic connectivity and transport capabilities to provide a powerful message broker solution. Messages are formed, routed, and transformed according to the rules defined by an easy-to-use graphical user interface (GUI). The Sun Cluster HA for WebSphere MQ Integrator data service provides a mechanism for orderly startup and shutdown, fault monitoring and automatic failover for the Sun Cluster service. The Sun Cluster components are protected by the Sun Cluster HA for WebSphere MQ Integrator data service. Table 2 Protection of Components
Planning the Sun Cluster HA for WebSphere MQ Integrator Installation and ConfigurationThis section contains the information you need to plan your Sun Cluster HA for WebSphere MQ Integrator installation and configuration. Configuration RestrictionsThis section provides a list of software and hardware configuration restrictions that apply to Sun Cluster HA for WebSphere MQ Integrator only. Your data service configuration might not be supported if you do not observe these restrictions. For restrictions that apply to all data services, see the Sun Cluster Release Notes.
Configuration RequirementsUse the requirements in this section to apply to Sun Cluster HA for WebSphere MQ Integrator only. You must meet these requirements before you proceed with your Sun Cluster HA for WebSphere MQ Integrator installation and configuration. Your data service configuration might not be supported if you do not adhere to these requirements. Sun Cluster components and their dependencies – You can configure the Sun Cluster HA for WebSphere MQ Integrator data service to protect a Sun Cluster Broker and UserNameServer. These components and their dependencies are described in Table 3. Table 3 Sun Cluster components and their dependencies (via -> symbol)
The Sun Cluster Broker component and its dependencies must all reside within the same Resource Group. Likewise the Sun Cluster UserNameServer and its dependencies must also all reside with the same Resource Group. However, the Sun Cluster Broker and UserNameServer do not have to reside within the same Resource Group, they can reside in separate Resource Groups. Likewise, multiple instances of the Sun Cluster Broker can reside in separate Resource Groups. However, only one instance of the Sun Cluster UserNameServer is allowed. Example 1 shows two Sun Cluster Brokers (XXX and YYY) and a Sun Cluster UserNameServer within different Resource Groups and shows that all Sun Cluster components (Broker and UserNameServer) use the same Global File System /global/mqsi. Example 1 Multiple Sun Cluster Brokers and UserNameServer .
Note – For detailed information about these Sun Cluster components, refer to IBM's Sun Cluster Introduction and Planning manual. Each Sun Cluster component has a configuration and registration file in /opt/SUNWscmqi/xxx/util, where xxx is a three-character abbreviation for the Sun Cluster component. These files allow you to register the Sun Cluster components with Sun Cluster. Within these files, the appropriate dependencies have been applied. Example 2 Sun Cluster configuration and registration file for Sun Cluster
Installing and Configuring Sun Cluster
|
# cd /cdrom/cdrom0/components/SunCluster_HA_MQI_3.1 |
Start the Web Start program.
# ./installer |
When you are prompted, select the type of installation.
Follow the instructions on the screen to install the Sun Cluster HA for WebSphere MQ Integrator packages on the node.
After the installation is finished, the Web Start program provides an installation summary. This summary enables you to view logs that the Web Start program created during the installation. These logs are located in the /var/sadm/install/logs directory.
Exit the Web Start program.
Remove the Sun Cluster Agents CD-ROM from the CD-ROM drive.
Use this procedure to install the Sun Cluster HA for WebSphere MQ Integrator packages by using the scinstall utility. You need the Sun Java Enterprise System Accessory CD Volume 3 to perform this procedure. This procedure assumes that you did not install the data service packages during your initial Sun Cluster installation.
If you installed the Sun Cluster HA for WebSphere MQ Integrator packages as part of your initial Sun Cluster installation, proceed to Registering and Configuring Sun Cluster HA for WebSphere MQ Integrator.
Otherwise, use this procedure to install the Sun Cluster HA for WebSphere MQ Integrator packages. Perform this procedure on all nodes that can run Sun Cluster HA for WebSphere MQ Integrator data service.
Load the Sun Cluster Agents CD-ROM into the CD-ROM drive.
Run the scinstall utility with no options.
This step starts the scinstall utility in interactive mode.
Choose the menu option, Add Support for New Data Service to This Cluster Node.
The scinstall utility prompts you for additional information.
Provide the path to the Sun Cluster Agents CD-ROM.
The utility refers to the CD as the “data services cd.”
Specify the data service to install.
The scinstall utility lists the data service that you selected and asks you to confirm your choice.
Exit the scinstall utility.
Unload the CD from the drive.
This section contains the procedures you need to configure Sun Cluster HA for WebSphere MQ Integrator.
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 WebSphere MQ Integrator packages as part of your initial Sun Cluster installation, go to How to Install the Sun Cluster HA for WebSphere MQ Integrator Packages using the scinstall Utility.
The Sun Cluster Broker component is dependent on WebSphere MQ and an RDBMS. All resources for the Sun Cluster Broker component, WebSphere MQ components, and the RDBMS must reside within the same Resource Group. For example, refer to Example 1.
The Sun Cluster UserNameServer component is dependent only on WebSphere MQ. All resources for the Sun Cluster UserNameServer component, WebSphere MQ components and the RDBMS must reside within the same Resource Group, For example, refer toExample 1
Currently only local RDBMS support for DB2 or Oracle is supported. Refer to Configuration Restrictions, in particular to Sun Cluster HA for WebSphere MQ Integrator RDBMS for a description of this restriction.
Become superuser on one of the nodes in the cluster that will host Sun Cluster.
Register the SUNW.gds resource type.
# scrgadm -a -t SUNW.gds |
Register the SUNW.HAStoragePlus resource type.
# scrgadm -a -t SUNW.HAStoragePlus |
Create a failover resource group.
# scrgadm -a -g WebSphere MQ-failover-resource-group |
Create a resource for the Sun Cluster Disk Storage.
# scrgadm -a -j Sun Cluster-has-resource \ -g WebSphere MQ-failover-resource-group \ -t SUNW.HAStoragePlus \ -x FilesystemMountPoints=Sun Cluster- instance-mount-points |
Enable the failover resource group that now includes the Sun Cluster Disk Storage resource.
# scswitch -Z -g WebSphere MQ-failover-resource-group |
Create and register each required Sun Cluster component.
This section requires that you have installed the Sun Cluster HA for WebSphere MQ and RDBMS data services and that their resources are online within Sun Cluster. Ensure that you have done this before you continue with this step.
Perform this step for the Broker component (sib), then repeat for the optional UserNameServer component, replacing sib with:
siu - UserNameServer
# cd /opt/SUNWscmqi/sib/util |
Edit the sib_config file and follow the comments within that file. For example:
# # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # This file will be sourced in by sib_register and the parameters # listed below will be used. # # These parameters can be customized in (key=value) form # # RS - name of the resource for the application # RG - name of the resource group containing RS # QMGR - name of the Queue Manager # PORT - name of the Queue Manager port number # LH - name of the LogicalHostname SC resource # HAS_RS - name of the Queue Manager HAStoragePlus SC resource # SC3_IN - name of the Test Message Flow (Inbound) # SC3_OUT - name of the Test Message Flow (Outbound) # MQSI_ID - name of the WebSphere MQI userid # BROKER - name of the WebSphere MQI Broker # RDBMS_ID - name of the WebSphere MQI RDBMS userid # QMGR_RS - name of the Queue Manager SC resource # RDBMS_RS - name of the RDBMS SC resource and listener (if Oracle) # e.g. RDBMS_RS=<ora-rs>,<lsr-rs> # # +++ Optional parameters +++ # # START_CMD - pathname and name of the renamed strmqm program # STOP_CMD - pathname and name of the renamed endmqm program # # # Note 1: Optional parameters # # Null entries for optional parameters are allowed if not used. # # Note 2: Renamed strmqm/endmqm programs # # This is only recommended if WebSphere MQ is deployed onto # Global File Systems for qmgr/log files. You should specify # the full pathname/program, i.e. /opt/mqm/bin/<renamed_strmqm> # # |
The following is an example for Sun Cluster Broker XXX, with WebSphere Integrator MQ Manager qmgr1.
RS=wmq-broker-res RG=wmq-rg QMGR=qmgr1 PORT=1414 LH=wmq-lh-res HAS_RS=wmqi-has-res SC3_IN=SC3_IN SC3_OUT=SC3_OUT MQSI_ID=mqsi1 BROKER=XXX RDBMS_ID=db2 QMGR_RS=wmq-qmgr-res RDBMS_RS=wmq-rdbms-res START_CMD= STOP_CMD= |
After editing sib_config, you must register the resource.
# ./sib_register |
Enable each Sun Cluster resource.
Repeat this step for each Sun Cluster component.
# scstat |
# scswitch -e -j Sun Cluster-resource |
This section contains the procedure you need to verify that you installed and configured your data service correctly.
Become superuser on one of the nodes in the cluster that will host Sun Cluster.
Ensure all the Sun Cluster resources are online with scstat.
# scstat |
For each Sun Cluster resource that is not online, use the scswitch command as follows.
# scswitch -e -j Sun Cluster- resource |
Run the scswitch command to switch the Sun Cluster resource group to another cluster node, such as node2.
# scswitch -z -g Sun Cluster-failover-resource-group -h node2 |
Additional configuration parameters for Sun Cluster HA for WebSphere MQ Integrator were introduced in Sun Cluster 3.1 9/04. If you need to set a value for a parameter, you must upgrade Sun Cluster HA for WebSphere MQ Integrator.
You might deploy a WebSphere MQ queue manager's qmgr files and log files on a global file system. In this situation, rename the strmqm program and the endmqm program to prevent the queue manager from being manually started on another node. If you rename these programs, the Sun Cluster framework manage the startup of WebSphere MQ queue manager. For more information, see Sun Cluster Data Service for WebSphere MQ Guide for Solaris OS.
The following parameters for enabling Sun Cluster to manage the startup of WebSphere MQ queue manager were introduced in Sun Cluster 3.1 9/04. Null values are defined for these parameters.
Specifies the full path name and filename of the renamed strmqm program.
Specifies the full path name and filename of the renamed endmqm program.
If you need to set a value for a parameter , you must remove and reregister the Sun Cluster HA for WebSphere MQ Integrator resource for which you are changing the parameter.
The parameters that are introduced in Sun Cluster 3.1 9/04 apply to the resources for all components, namely:
Broker component
User Name Server component
Perform this task for each WebSphere MQ Integrator resource that you are modifying.
Perform this task only if you are setting or modifying parameters that are introduced in Sun Cluster 3.1 9/04.
Save the resource definitions.
# scrgadm -pvv -j resource > file1 |
Disable the resource.
# scswitch -n -j resource |
Remove the resource.
# scrgadm -r -j resource |
Configure and register the resource.
Go to the directory that contains the configuration file and the registration file for the resource.
# cd /opt/SUNWscmqi/prefixutil |
Edit the configuration file for the resource.
vi prefix_config |
Run the registration file for the resource.
# ./prefix_register |
prefix denotes the component to which the file applies, as follows:
sib denotes the Broker component.
siu denotes the User Name Server component.
Save the resource definitions.
# scrgadm -pvv -j resource > file2 |
Compare the updated definitions to the definitions that you saved before you updated the resource.
Comparing these definitions enables you to determine if any existing extension properties have changed, for example, time-out values.
# diff file1 file2 |
Amend any resource properties that were reset.
# scrgadm -c -j resource -x|y resource |
Bring online the resource.
# scswitch -e -j resource |
This section describes the Sun Cluster HA for WebSphere MQ Integrator fault monitor's probing algorithm or functionality, states the conditions, messages, and recovery actions associated with unsuccessful probing.
For conceptual information on fault monitors, see the Sun Cluster Concepts Guide.
Sun Cluster HA for WebSphere MQ Integrator fault monitor uses the same resource properties as resource type SUNW.gds. Refer to the SUNW.gds(5) man page for a complete list of resource properties used.
Sun Cluster Broker
Sleeps for Thorough_probe_interval.
Test the RDBMS or Queue Manager has been restarted. If the RDBMS has been restarted, then the whole Resource Group will be restarted. If the Queue Manager has been restarted, then the Broker is stopped and waits until the Queue Manager is restarted, after which the Broker is restarted.
If the RDBMS and Queue Manager have not been restarted, then a check against bipservice is made. If bipservice is lost, then the probe will restart the Broker.
If bipservice is available, then the probe checks that the queue names for SC3_IN and SC3_OUT are valid and empty, puts a test message to SC3_IN, and checks that the message flows to SC3_OUT by checking that the CURDEPTH for SC3_OUT is equal to 1. If this test fails, then the probe will restart the Broker.
If the Broker is repeatedly restarted and subsequently exhausts the Retry_count within the Retry_interval, then a failover is initiated for the Resource Group onto another node.
Sun Cluster UserNameServer
Sleeps for Thorough_probe_interval
If bipservice for the UserNameServer is lost, then the probe will restart the UserNameServer.
If the UserNameServer is repeatedly restarted and subsequently exhausts the Retry_count within the Retry_interval then a failover is initiated for the Resource Group onto another node.
Sun Cluster HA for WebSphere MQ Integrator can be used by multiple Sun Cluster instances. However, it is possible to turn on debug for all Sun Cluster instances or for a particular Sun Cluster instance.
Each Sun Cluster component has a DEBUG file under /opt/SUNWscmqi/xxx/etc, where xxx is a three-character abbreviation for the respective Sun Cluster component.
These files allow you to turn on debug for all Sun Cluster instances or for a specific Sun Cluster instance on a particular node with Sun Cluster. If you require debug to be turned on for Sun Cluster HA for WebSphere MQ Integrator across the whole Sun Cluster, you will need to repeat these steps on all nodes within Sun Cluster.
Edit /etc/syslog.conf and change daemon.notice to daemon.debug
# grep daemon /etc/syslog.conf *.err;kern.debug;daemon.notice;mail.crit /var/adm/messages *.alert;kern.err;daemon.err operator # |
Change the daemon.notice to daemon.debug and restart syslogd. The output below, from the command grep daemon /etc/syslog.conf, shows that daemon.debug has been set.
# grep daemon /etc/syslog.conf *.err;kern.debug;daemon.debug;mail.crit /var/adm/messages *.alert;kern.err;daemon.err operator # # pkill -1 syslogd # |
Edit /opt/SUNWscmqi/sib/etc/config
Perform this step for the Broker component (sib), then repeat for the optional UserNameServer (siu) that requires debug output, on each node of Sun Cluster.
Edit /opt/SUNWscmqi/sib/etc/config and change DEBUG= to DEBUG=ALL or DEBUG=resource
# cat /opt/SUNWscmqi/sib/etc/config # # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # Usage: # DEBUG=<RESOURCE_NAME> or ALL # DEBUG=ALL # |
To turn off debug, reverse the steps above.