An Introduction To Websphere MQ Multi-Instance Queue Managers
An Introduction To Websphere MQ Multi-Instance Queue Managers
Agenda
Overview WebSphere MQ changes UNIX systems Windows systems Explorer updates Traditional HA
WebSphere Support Technical Exchange 2 of 54
Agenda
Overview WebSphere MQ changes UNIX systems Windows systems Explorer updates Traditional HA
WebSphere Support Technical Exchange 3 of 54
Overview
Basic failover support Not intended to replace HA coordinators Data retained on network storage Queue manager can be started on different machines
Active instance Standby instance
4 of 54
QM1 IPA
networked storage
5 of 54
WMQ Client
WMQ Client
QM1 IPA
networked storage
IPA
6 of 54
QM1
Owns the queue manager data IPA networked storage
7 of 54
QM1
Owns the queue manager data IPA networked storage
8 of 54
Considerations
Not intended to manage resources beyond MQ System IP address not assumed as part of failover Support for networked storage over modern
network file system protocols NFS V4 Windows CIFS (Common Internet File System) Must ensure that any caching is turned OFF to ensure data integrity
WebSphere Support Technical Exchange 10 of 54
Agenda
Overview WebSphere MQ changes UNIX systems Windows systems Explorer updates Traditional HA
WebSphere Support Technical Exchange 11 of 54
New Commands
Network storage validation command
amqmfsck (UNIX only)
12 of 54
Updated Commands
crtmqm
md message data ld transaction log data sax create the queue manager, start the queue manager, set the queue manager to autostart, start it with the x flag (Windows)
strmqm
x starting of multi instance queue manager f rebuild queue manager objects
WebSphere Support Technical Exchange 13 of 54
14 of 54
15 of 54
Updates to runmqsc
DISPLAY QMSTATUS ALL
16 of 54
Agenda
Overview WebSphere MQ changes UNIX systems Windows systems Explorer updates Traditional HA
WebSphere Support Technical Exchange 17 of 54
UNIX walkthrough
Ensure that matching user and group ids for mqm
exist on both systems
18 of 54
UNIX walkthrough(continued)
Create the queue manager on machine A
crtmqm md /shared/qmdata ld /shared/qmlog QM1
19 of 54
UNIX walkthrough(continued)
Start the active instance of the queue manager on
machine A
strmqm x QM1 WebSphere MQ queue manager QM1 started.
On machine B:
dspmq x o standby o status QMNAME(QM1) STANDBY(Permitted) STATUS(Running as standby) INSTANCE(machineA) MODE(Active) INSTANCE(machineB) MODE(Standby)
MQSC
Queue manager status enhanced to show whether
standby instances are permitted
DISPLAY QMSTATUS ALL 1 : DISPLAY QMSTATUS ALL AMQ8705: Display Queue Manager Status Details. QMNAME(QM1) CONNS(27) CHINIT(RUNNING) STATUS(RUNNING) CMDSERV(RUNNING) STANDBY(PERMIT)
22 of 54
Agenda
Overview WebSphere MQ changes UNIX systems Windows systems Explorer updates Traditional HA
WebSphere Support Technical Exchange 23 of 54
24 of 54
Queue Manager log path cannot be the same as the data path Read/Write access must be granted for :
SYSTEM ID mqm Group Administrators Group
25 of 54
Configuration Data
Queue manager configuration data can either be in the
Windows registry or in INI files
26 of 54
27 of 54
Windows Walkthrough
Configure a pair of Windows servers as domain
controllers
28 of 54
The network share must be within the domain Modify both the share and file permissions Create the queue manager using the appropriate
flags, specifying the data and log path. Use UNC format for network locations
29 of 54
30 of 54
Agenda
Overview WebSphere MQ changes UNIX systems Windows systems Explorer updates Traditional HA
WebSphere Support Technical Exchange 31 of 54
MQ Explorer
32 of 54
33 of 54
34 of 54
35 of 54
same channel name used for each instance auto-reconnect enabled (can be reset) further instances can be added using the Manage Instances dialog
36 of 54
37 of 54
Manage Instances
38 of 54
39 of 54
40 of 54
W indows/Linux start dialog slightly different New control command flags -x, -s, -r
41 of 54
Agenda
Overview WebSphere MQ changes UNIX systems Windows systems Explorer updates Traditional HA
WebSphere Support Technical Exchange 42 of 54
43 of 54
MC91 SupportPac
Scripts for IBM PowerHA for AIX, Veritas Cluster
Server and HP Serviceguard
The scripts are easily adaptable for other HA cluster products
46 of 54
47 of 54
Filesystem organisation
Files located on the shared disk
/MQHA/QM1/log/QM1/amqhlctl.lfh /active/S0000000.LOG /MQHA/QM1/data/QM1/qm.ini /qmstatus.ini /qmanager /queues/... /...
New addmqinf command New rmvmqinf command to remove queue manager from a node, dltmqm to delete the queue manager Use the MC91 hamqm_start Use the MC91 hamqm_stop Part of MC91 hamqm_start Use the MC91 hamqm_applmon, or a script more tailored to your needs
49 of 54
Summary
Overview WebSphere MQ changes UNIX systems Windows systems Explorer updates Traditional HA
WebSphere Support Technical Exchange 51 of 54
Useful Links
MC91
http://www.ibm.com/support/docview.wss?uid=swg24011869
52 of 54
Discover the latest trends in WebSphere Technology and implementation, participate in technically-focused briefings, webcasts and podcasts at: http://www.ibm.com/developerworks/websphere/community/ Learn about other upcoming webcasts, conferences and events: http://www.ibm.com/software/websphere/events_1.html Join the Global WebSphere User Group Community: http://www.websphere.org Access key product show-me demos and tutorials by visiting IBM Education Assistant: http://www.ibm.com/software/info/education/assistant View a webcast replay with step-by-step instructions for using the Service Request (SR) tool for submitting problems electronically: http://www.ibm.com/software/websphere/support/d2w.html Sign up to receive weekly technical My Notifications emails: http://www.ibm.com/software/support/einfo.html
53 of 54
54 of 54