[UNIX][Linux]

Creating an HA cluster queue manager on UNIX and Linux

The first step towards using a queue manager in a high availability cluster is to create the queue manager on one of the nodes.

About this task

To create a queue manager for use in an HA cluster, you must first select one of the nodes in the cluster on which to create the queue manager, and then complete the following steps on this node.

Procedure

  1. Mount the queue manager's file systems on the node.
  2. Create the queue manager by using the crtmqm command.
    For example:

    crtmqm -md /MQHA/qmgrname/data -ld /MQHA/qmgrname/log qmgrname

  3. Start the queue manager manually by using the strmqm command.
  4. Complete any initial configuration of the queue manager, such as creating queues and channels, and setting the queue manager to start a listener automatically when the queue manager starts.
  5. Stop the queue manager by using the endmqm command.
  6. Use the dspmqinf command to display the addmqinf command:

    dspmqinf -o command qmgrname

    where qmgrname is the name of the queue manager.

    For more information about using the addmqinf command, see Adding queue manager configuration to other HA cluster nodes on UNIX and Linux.
    The addmqinf command is displayed in a similar way to the following example:
    
    addmqinf -sQueueManager -vName=qmgrname -vDirectory=qmgrname \
    -vPrefix=/var/mqm -vDataPath=/MQHA/qmgrname/data/qmgrname
    
  7. Make a careful note of the displayed command.
  8. Unmount the queue manager's file systems.

What to do next

You are now ready to complete the steps described in Adding queue manager configuration to other HA cluster nodes on UNIX and Linux.