IBM MQ - Clustering queue managers

by
Jeremy Canfield |
Updated: August 04 2022
| IBM MQ articles
Let's say you have 2 queue managers, where the queue manager on server1.example.com should be the active queue manager and the queue manager on server2.example.com should be the standby queue manager. In this scenario, you will want to use the strmqm (start queue manager) command with the -x (cluster) flag on the server that you want the active queue manager to be running on.
[mqm@server1 ~] strmqm -x MANAGER01
Then start the queue manager on server2.example.com.
[mqm@server2 ~] strmqm -x MANAGER01
In this scenario, the queue manager on server1.example.com should have a status of running.
[mqm@server1 ~] dspmq
QMNAME(MANAGER01) STATUS(Running)
And the queue manager on server2.example.com should have a status of running as standby.
[mqm@server2 ~] dspmq
QMNAME(MANAGER01) STATUS(Running as standby)
And the queue manager log should contain the following event.
AMQ8060I: IBM MQ queue manager 'MQHUBWA1' started as a standby instance.
Did you find this article helpful?
If so, consider buying me a coffee over at