Sun Cluster Data Service for WebSphere MQ Integrator ガイド (Solaris OS 版)

ProcedureSun Cluster HA for WebSphere MQ Integrator の登録および構成方法

この手順は、Sun Cluster の初回のインストール時にこのデータサービスパッケージをインストールしている場合を想定しています。

Sun Cluster の初回インストールの一部として Sun Cluster HA for WebSphere MQ Integrator パッケージをインストールしていない場合は、scinstall ユーティリティーを使用して Sun Cluster HA for WebSphere MQ Integrator パッケージをインストールする」へ進みます。

Sun Cluster の Broker コンポーネントは、WebSphere MQ と RDBMS に依存します。Sun Cluster Broker コンポーネント、WebSphere MQ コンポーネント、および RDBMS のすべてのリソースは同じリソースグループ内に存在する必要があります。たとえば、例 1 を参照してください。

Sun Cluster UserNameServer コンポーネントは WebSphere MQ にのみ依存します。Sun Cluster UserNameServer コンポーネント、WebSphere MQ コンポーネントおよび RDBMS は、同じリソースグループ内に存在する必要があります。たとえば、例 1 を参照してください。

現在サポートされているのは、DB2 または Oracle 用のローカル RDBMS サポートだけです。この制限事項については、「構成に関する制限事項」、特に「Sun Cluster HA for WebSphere MQ Integrator RDBMS」を参照してください。

手順
  1. Sun Cluster のホストとなるクラスタノードの 1 つで、スーパーユーザーになります。

  2. SUNW.gds というリソースタイプを登録します。


    # scrgadm -a -t SUNW.gds
    
  3. SUNW.HAStoragePlus リソースタイプを登録します。


    # scrgadm -a -t SUNW.HAStoragePlus
    
  4. フェイルオーバーリソースグループを作成します。


    # scrgadm -a -g WebSphere MQ-failover-resource-group
    
  5. Sun Cluster ディスク記憶装置に対応するリソースを作成します。


    # scrgadm -a -j Sun Cluster-has-resource  \
    -g WebSphere MQ-failover-resource-group   \
    -t SUNW.HAStoragePlus  \
    -x FilesystemMountPoints=Sun Cluster- instance-mount-points
    
  6. Sun Cluster ディスク記憶装置リソースが組み込まれたフェイルオーバーリソースグループを有効にします。


    # scswitch -Z -g WebSphere MQ-failover-resource-group
    
  7. 必要な個々の Sun Cluster コンポーネントを作成して登録します。


    注 –

    ここでは、Sun Cluster に Sun Cluster HA for WebSphere MQ と RDBMS のデータサービスがインストールされており、対応するリソースがオンラインになっていなければなりません。この手順が完了していることを確認したうえで、次の手順に進んでください。


    Broker コンポーネント (sib) に対して次の手順を実行し、オプションの UserNameServer コンポーネントで、sib を下記に置き換えて手順を繰り返します。

    siu - UserNameServer


    # cd /opt/SUNWscmqi/sib/util
    

    sib_config ファイルを編集し、そのファイルに次のようなコメントを追加します。次に例を示します。


    #
    # 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>
    #
    # 
    

    Sun Cluster の Broker XXX と 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=

    sib_config の編集後、リソースを登録する必要があります。


    # ./sib_register
    
  8. 各 Sun Cluster リソースを有効にします。

    Sun Cluster コンポーネントごとにこの手順を繰り返します。


    # scstat 
    

    # scswitch -e -j Sun Cluster-resource