Sun Cluster Data Service for WebSphere MQ Guide for Solaris OS

ProcedureExample: Enable the WebSphere MQ Software to Run in the Cluster

Perform all steps within this example in the global zone.

  1. Create the Sun Cluster HA for WebSphere MQ queue manager configuration file.

    Either cat the following into /var/tmp/mgr1_config or edit /opt/SUNWscmqs/mgr/util/mgr_config and execute /opt/SUNWscmqs/mgr/util/mgr_register.


    Vigor5# cat > /var/tmp/mgr1_config <<-EOF
    # +++ Required parameters +++
    RS=wmq1-qmgr
    RG=wmq1-rg
    QMGR=qmgr1
    LH=wmq1-lh
    HAS_RS=wmq1-haZFS
    LSR_RS=
    CLEANUP=YES
    SERVICES=NO
    USERID=mqm
    
    # +++ Optional parameters +++
    DB2INSTANCE=
    ORACLE_HOME=
    ORACLE_SID=
    START_CMD=
    STOP_CMD=
    
    # +++ Failover zone parameters +++
    # These parameters are only required when WebSphere MQ should run
    #  within a failover zone managed by the Sun Cluster Data Service
    # for Solaris Containers.
    RS_ZONE=
    PROJECT=default
    TIMEOUT=300
    EOF
    
  2. Register the Sun Cluster HA for WebSphere MQ queue manager resource.


    Vigor5# /opt/SUNWscmqs/mgr/util/mgr_register -f /var/tmp/mgr1_config
    
  3. Enable the Sun Cluster HA for WebSphere MQ queue manager resource.


    Vigor5# clresource enable wmq1-qmgr
    
  4. Create the Sun Cluster HA for WebSphere MQ listener configuration file.

    Either cat the following into /var/tmp/lsr1_config or edit /opt/SUNWscmqs/lsr/util/lsr_config and execute /opt/SUNWscmqs/lsr/util/lsr_register.


    Vigor5# cat > /var/tmp/lsr1_config <<-EOF
    # +++ Required parameters +++
    RS=wmq1-lsr
    RG=wmq1-rg
    QMGR=qmgr1
    PORT=1414
    IPADDR=
    BACKLOG=100
    LH=wmq1-lh
    QMGR_RS=wmq1-qmgr
    USERID=mqm
    
    # +++ Failover zone parameters +++
    # These parameters are only required when WebSphere MQ should run
    #  within a failover zone managed by the Sun Cluster Data Service
    # for Solaris Containers.
    RS_ZONE=
    PROJECT=default
    EOF
    
  5. Register the Sun Cluster HA for WebSphere MQ listener resource.


    Vigor5# /opt/SUNWscmqs/lsr/util/lsr_register -f /var/tmp/lsr1_config
    
  6. Enable the Sun Cluster HA for WebSphere MQ listener resource.


    Vigor5# clresource enable wmq1-lsr