Ribs
Ribs

Reputation: 53

How to change default datapath in MQv8

I have two installation of MQ:
a. MQ v7.0.1.14 at E:\Program Files (x86)\IBM\WebSphere MQ
b. MQ v8.0.0.5 at C:\Program Files (x86)\IBM\WebSphereMQ_v8005

The datapath and logpath of version 8 is pointing at E:\Program Files (x86)\IBM\WebSphere MQ\Qmgrs and [...]\log.

Is there a way to change the datapath and logpath to some other directory? I don't see mqs.ini and qm.ini under C:\Program Files (x86)\IBM\WebSphereMQ_v8005.

Upvotes: 1

Views: 3006

Answers (1)

Morag Hughson
Morag Hughson

Reputation: 7525

When you have multiple installations of MQ, there is only one root location for the queue manager data. This location was set when you installed the first of your two installations and is where the mqs.ini file lives. The second install has no choice but to use the already present data path from the first installation.

You can change the data path for each queue manager at build time using the -ld and the -md options of the crtmqm command. The -ld option sets the log path and the -md option sets the data path. You can see the effect of these commands reflected in the mqs.ini file.

Keep in mind there is one global location for the mqs.ini file that serves all installations on a host even if you change the data path on a per-queue-manager basis.

Also be aware that the data path you configure is associated with the queue manager and not the installation. So if you migrate a queue manager from v7.0.1.x to v8.0.0.x it does not relocate the QMgr's data files to a different directory.

One last piece of advice is that it is possible to migrate a QMgr to a new location while it is down by moving the files and updating the mqs.ini file appropriately. The trick on Windows is to ensure that the MQ service account retains ownership of the files and is authorized down the entire path from the root of the drive. (Typically the BypassTraverseChecking AD permission is granted to the MQ service account and group to assure path permissions are not needed at every level.) You do not see mqs.ini and qm.ini under C:\Program Files (x86)\IBM\WebSphereMQ_v8005 because they are in the data path.

Upvotes: 4

Related Questions