Adding an existing queue manager to a high availability group by using the command line

You can add an existing queue manager to a high availability (HA) group by using the sethagrp command on the command line.

Before you begin

Before you can add an existing queue manager to a group, the queue manager must be stopped.

Procedure

  1. Enter the IBM® MQ administration mode by entering the following command:

    mqcli

  2. Enter the following command to stop the queue manager:
    endmqm QMname
    
  3. Enter the following command to add an existing queue manager to the HA group:
    sethagrp -i QMname
    
    Where QMname is the name of the existing queue manager. You must check that a queue manager with that name does not already exist on the other appliance. The queue manager is added to the group and is started.
  4. Optional: Exit the IBM MQ administration mode by entering the following command:

    exit

Example

The following example shows the existing queue manager QM1 being added to the HA group:
sethagrp -i QM1