Ibmmqhaanddr: Project Name: IBM MQ Installation and Configuration MQ v8 or v7.5 HA and DR Document
Ibmmqhaanddr: Project Name: IBM MQ Installation and Configuration MQ v8 or v7.5 HA and DR Document
Ibmmqhaanddr: Project Name: IBM MQ Installation and Configuration MQ v8 or v7.5 HA and DR Document
Perficient
Revision Log
Release No. Date Revision Description Name
1 5/04/2016 Initial Documentation C. Misuraca
Perficient
TABLE OF CONTENTS
REVISION LOG ............................................................................................................... 2
Figure 1 – MQ HA with DR. ....................................................................................... 5
MQ INSTALLATION - LINUX ...................................................................................... 6
PREREQUISITES ................................................................................................................ 6
INSTALLATION MULTI-INSTANCE MQ ................................................................. 6
REQIUREMENTS FOR THIS SECTION: ................................................................................. 6
INSTALLATION OF MQ ..................................................................................................... 6
CONFIGURE MQ MULTI-INSTANCE .................................................................................. 7
Create primary Queue Manager. ................................................................................ 7
Add standby Queue Manager...................................................................................... 7
Add a second standby Queue Manager. ..................................................................... 8
VERIFY FAILOVER ............................................................................................................ 8
VERFIY DR ...................................................................................................................... 9
Perficient
Purpose
The purpose of this document is to provide a cookbook level instructions on installing
IBM MQ v8 or V7.5 in a multi-instance configuration with a second Standby as the DR
site. The big win on this approach is that linear logging is not required but is an option.
This document is a supplement to any official document that IBM has provided on the
topic of IBM MQ Multi-instance installation and configuration. Official documents on
this subject from IBM can be obtained on the Info Center for the specific version of MQ.
For the Multi-instance topology, the mqm user and groups needs to be added to each
server that MQ will run on. The Multi-instance each environment will consist of 2
machines. The 2 machines will have a common NFS v4 mount point. Th NFS v4
filesystem will also be common to the DR site.
Perficient
Figure 1 – MQ HA with DR.
Perficient
MQ Installation - Linux
Prerequisites
All pre-reqs listed in the IBM MQ Info Center must be met.
Installation Multi-instance MQ
Installation of MQ
1. Run as ROOT
2. Untar the IBM MQ install media.
3. Run the license script: ./mqlicense.sh –accept
4. Install RPMs: rpm -ivh MQSeries*.rpm
5. check /tmp/mqconfig.######.log for errors or warnings.
6. Run the config varication check to ensure all settings are as they should be: su mqm -c
"/opt/mqm/bin/mqconfig"
i. This script will call out each setting as it currently is, what it expects and
whether it the current setting is acceptable. Fix things accordingly.
7. /opt/mqm/bin/setmqinst -i -p /opt/app/mqm
Perficient
Configure MQ Multi-instance
Perficient
Add a second standby Queue Manager.
On Machine DR
9. As mqm
10. cd /opt/mqm/bin
11. RUN: addmqinf -s QueueManager -v Name=<QMGRNAME> -v
Directory=<QMGRNAME> -v Prefix=/var/mqm -v
DataPath=/mnt/mqm/<QMGRNAME>/data/<QMGRNAME>
12. Start the queue manager instances on On Machine A, then On Machine B , with the
-x parameter.
EXAMPLE:
strmqm -x <QMGRNAME>
13. The On Machine A will be the primary QMgr. On Machine B will be the standby
QMgr
14. Test By, create some persistant queue and put messages on them.
Verify failover
15. Fail over primary QMgr to standby QMgr.
a. cd /opt/mqm/bin
b. RUN: ./endmqm –s <QMGRNAME> - on Primary
c. RUN: echo “dis ql(*) CURDEPTH” | runmqsc <QMGRNAME>
NOTE: you will see all the queue and there current depth from Step 14.
Perficient
17. Shutdown primary and standby Qmgrs.
a. cd /opt/mqm/bin
b. RUN: ./endmqm –i <QMGRNAME> - on Primary
c. RUN: echo “dis ql(*) CURDEPTH” | runmqsc <QMGRNAME>
NOTE: you will see all the queue and there current depth from Step 14.
Verfiy DR
18. Shutdown primary and standby Qmgrs.
a. cd /opt/mqm/bin
b. RUN: ./endmqm –i <QMGRNAME> - on Primary
19. Start DR Qmgrs.
a. Logon to DR
b. su to mqm
c. cd /opt/mqm/bin
d. RUN: ./strmqm <QMGRNAME>
e. RUN: echo “dis ql(*) CURDEPTH” | runmqsc <QMGRNAME>
NOTE: you will see all the queue and there current depth from Step 14.
Perficient