makehaprimary (make HA appliance primary)

Specifies that an appliance is the 'winner' when resolving a partitioned situation in the high availability group.

Purpose

You use the makehaprimary command to specify which appliance in an HA group is considered to have the most up-to-date view of a queue manager after a partitioned situation has occurred. The queue manager is started on the preferred appliance, if one is specified, with the 'winning' queue manager data set.

Note: When you run the makehaprimary command the data on the other appliance is discarded. See Resolving a partitioned problem in a high availability configuration.

Syntax

Read syntax diagramSkip visual syntax diagrammakehaprimaryQMname

Parameters

QMname
Specifies the name of the queue manager for which the partitioned situation occurred.
The command is run only on the appliance to be identified as the winner.

Usage Notes

  • This command must be run from the IBM® MQ administration mode. If the system is in the IBM MQ administration mode the prompt includes mqa(mqcli)#. To enter the IBM MQ administration mode, enter mqcli on the command line. To exit the IBM MQ administration mode, enter exit on the command line.

Examples

  • The following example shows the command being run for queue manager QM1.

    The following command is run from the appliance considered to be the winner:

    makehaprimary QM1