创建 WebSphere MQ 多实例队列管理器

Creating the WebSphere MQ multi-instance queue manager

How you create the WebSphere® MQ multi-instance queue manager that you need for your multi-instance WebSphere Message Broker.

Before you start:

Create the shared directories that you require for the multi-instance queue manager; see Creating the shared directories.


The following procedure gives an overview of how you create a multi-instance WebSphere MQ queue manager. See Creating a multi-instance queue manager for more information.
Create a multi-instance WebSphere MQ queue manager called QM1 on client node A. You do this by using the following command:-crtmqm -md /SharedLocation/WMQ/data                   -ld /SharedLocation/WMQ/logs QM1where: md Is the name of the directory used to hold data files for a queue manager. ld Is the name of the directory used to hold log files.

Note that it is important that the name of the queue manager goes at the end of the syntax. See the WebSphere MQ documentation for further information on the crtmqm command.

Add the details of WebSphere MQ queue manager QM1 onto client node B. You do this by using the following command:-addmqinf  -v Name=QM1 -v Directory=WMQ -v Prefix=/var/mqm                      -v DataPath=/SharedLocation/WMQ/data/QM1  where: Name Is the name of the queue manager. Directory Is the name of the queue manager data directory. Prefix Is the directory path under which this queue manager data directory is stored by default. Data Path Is the data path where the queue manager data files are placed. The value of Directory is not appended automatically to this path; you must provide the transformed queue manager name as part of DataPath.

The parameters listed above are all required parameters on Windows and UNIX platforms, with the exception of DataPath, which is optional on UNIX platforms only.

See the WebSphere MQ documentation for further information on the addmqinf command.

Start queue manager QM1 on client node A in multi-instance mode. You do this by using the following command:strmqm -x QM1

See the WebSphere MQ documentation for further information on the strmqm command.

Observe the queue manager running in active mode. You do this by using the following command:dspmq -x

See the WebSphere MQ documentation for further information on the dspmq command.

Start queue manager QM1 on client node B. Observe the queue manager running in standby mode. Ensure that queue manager QM1 works as follows when simulating a failover from node A to node B: Stop queue manager QM1 on client node A. You do this by using the following command:endmqm -s QM1

Observe on client node B, queue manager QM1 running in active mode, and on client node A that queue manger QM1 is now stopped.

Restart queue manager QM1 on client node A. You do this by using the following command:strmqm -x QM1

Observe on client node A, queue manager QM1 running in standby mode.


原文地址:http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/be13670_.htm

参与3

2同行回答

ericxuericxu咨询顾问IBMC
Multi Instance依赖于外部共享存储,这个共享存储需要支持文件锁,GPFS或者NFS我都测试过,理论上都可以用,但是在实际的生产环境下,对一般客户来说,GPFS太高端,NFS太低端,而且为了实现Multi Instance,增加了新的外部依赖项,所以实际实施中并不好推广。到不如使用CCDT,加上MQ Client的R...显示全部
Multi Instance依赖于外部共享存储,这个共享存储需要支持文件锁,GPFS或者NFS我都测试过,理论上都可以用,但是在实际的生产环境下,对一般客户来说,GPFS太高端,NFS太低端,而且为了实现Multi Instance,增加了新的外部依赖项,所以实际实施中并不好推广。
到不如使用CCDT,加上MQ Client的Reconnection机制来实现高可用。收起
金融其它 · 2013-05-20
浏览683
暗黑城堡new暗黑城堡new其它XXX科技有限公司
红皮书上的东东?显示全部
红皮书上的东东?收起
金融其它 · 2013-05-16
浏览706

提问者

相关问题

相关资料

问题状态

  • 发布时间:2011-12-14
  • 关注会员:1 人
  • 问题浏览:4070
  • 最近回答:2013-05-20
  • X社区推广