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
Parameters
- QMname
- Specifies the name of the queue manager for which the partitioned situation occurred.
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, entermqclion the command line. To exit the IBM MQ administration mode, enterexiton 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
