ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » qmgrs with same name but different versions

Post new topic  Reply to topic
 qmgrs with same name but different versions « View previous topic :: View next topic » 
Author Message
Heba_MQ
PostPosted: Tue May 24, 2022 9:50 am    Post subject: qmgrs with same name but different versions Reply with quote

Apprentice

Joined: 19 Apr 2020
Posts: 39

Dear All

is it possible to create qmgrs with same name on the same machine but with different mq installations

we have qmgr QM1 on aix machine installation1 with MQ version 7.5
the installation path is /usr/mqm and it is default installation

I installed version 9.2 on /opt/IBM/MQ and the installation path becomes /opt/IBM/MQ/usr/mqm and it took installation2

I used /opt/IBM/MQ/usr/mqm/bin/crtmqm QM2 - and it was associated with installation1 although IBM mentioned it should be associated with the installation issued the crtmqm command which is Installation2 ? any idea why ?

Also can I create qmgr with same name QM1 and associate it with Installation2 ?

Thanks
Heba
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Tue May 24, 2022 3:48 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2492
Location: Melbourne, Australia

Quote:
is it possible to create qmgrs with same name on the same machine but with different mq installations

I don't think /var/mqm/mqs.ini will allow duplicate queue manager stanza names, even if the InstallationName was different for each one.

To avoid any possible confusion, queue manager names should be unique across an entire network.
_________________
Glenn
Back to top
View user's profile Send private message
hughson
PostPosted: Wed May 25, 2022 12:29 am    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
Location: Bay of Plenty, New Zealand

It is not possible. Remember that each queue manager has a directory in the MQ data directory under the qmgrs folder. There is only one data directory regardless of how many installations so there cannot be two folders with the same name.

The installation path is different from the data path. When you have multiple installations then there are different installation paths, but there is always only one data path.

In the error you mention with the crtmqm command, could you show us the full error message you saw so we can comment further?

Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
bruce2359
PostPosted: Wed May 25, 2022 3:59 am    Post subject: Re: qmgrs with same name but different versions Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

Heba_MQ wrote:
is it possible to create qmgrs with same name on the same machine but with different mq installations

Do you mean "in the same LPAR" or "in the same o/s instance? Machine is not a precise term.

You can have the same qmgr name in different LPARs, different o/s instances. Let confusion reign.

If memory serves, v5.3 introduced QMID the internally generated unique name of the queue manager - within this unique o/s instance, composed of qmgrname.datatimestamp.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed May 25, 2022 11:32 am    Post subject: Re: qmgrs with same name but different versions Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Heba_MQ wrote:
Dear All

is it possible to create qmgrs with same name on the same machine but with different mq installations

we have qmgr QM1 on aix machine installation1 with MQ version 7.5
the installation path is /usr/mqm and it is default installation

I installed version 9.2 on /opt/IBM/MQ and the installation path becomes /opt/IBM/MQ/usr/mqm and it took installation2

I used /opt/IBM/MQ/usr/mqm/bin/crtmqm QM2 - and it was associated with installation1 although IBM mentioned it should be associated with the installation issued the crtmqm command which is Installation2 ? any idea why ?

Also can I create qmgr with same name QM1 and associate it with Installation2 ?

Thanks
Heba

Before creating the qmgr in 9.2 did you source the environment using setmqenv ??
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
gbaddeley
PostPosted: Wed May 25, 2022 3:14 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2492
Location: Melbourne, Australia

hughson wrote:
It is not possible. Remember that each queue manager has a directory in the MQ data directory under the qmgrs folder.

By default, yes. However each qmgr can have its own setting for Prefix and DataPath in mqs.ini. These allow each qmgr to have separate data, eg. on HA cluster disks. The recovery logs can also be on separate disks, as set in each qm.ini. Note that there is another technique for doing HA config, using the default directories, with symbolic links for each qmgr to the physical directory.

Something that may prevent duplicate qmgr names on the same server is the /var/mqm/sockets directory. This has sub directories for each qmgr name.
_________________
Glenn
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Thu May 26, 2022 5:25 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

Heba_MQ,
What are you trying to accomplish? Maybe there is a better way.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
Andyh
PostPosted: Fri May 27, 2022 3:59 am    Post subject: Reply with quote

Master

Joined: 29 Jul 2010
Posts: 237

gbaddeley wrote:
Quote:
is it possible to create qmgrs with same name on the same machine but with different mq installations

I don't think /var/mqm/mqs.ini will allow duplicate queue manager stanza names, even if the InstallationName was different for each one.

To avoid any possible confusion, queue manager names should be unique across an entire network.


IBM documents the AMQ_MQS_INI_LOCATION as one of "A list of server and client environment variables intended for customer use", but there's minimal information on how this environment variable might be used.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri May 27, 2022 6:43 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

gbaddeley wrote:
Something that may prevent duplicate qmgr names on the same server is the /var/mqm/sockets directory. This has sub directories for each qmgr name.

In the interest of precision and clarity: "server" is imprecise. (And, "server" appears widely in IBM MQ doc.) The OP used the similarly imprecise term "machine".
I suspect the OP is asking if it's possible to have multiple qmgrs with the same name in one o/s instance.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.


Last edited by bruce2359 on Fri May 27, 2022 8:25 am; edited 1 time in total
Back to top
View user's profile Send private message
Heba_MQ
PostPosted: Fri May 27, 2022 7:54 am    Post subject: Reply with quote

Apprentice

Joined: 19 Apr 2020
Posts: 39

Many Thanks for all replies -

The error that I got is that qmgr already exists

the people I am working with wanted to have two version of MQ 7.5 and 9.2 and have two qmgrs with the same name and keep one up at a time and test
(as they did not want to change the setting from the WebSphere using the MQ objects )...

but any idea why when I created the QM2 with the full path of the bin dir of installation2, it was also created with Installation1 ?

Many Thanks friends for your help

Heba
Back to top
View user's profile Send private message
hughson
PostPosted: Sun May 29, 2022 6:57 pm    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
Location: Bay of Plenty, New Zealand

Heba_MQ wrote:
The error that I got is that qmgr already exists

Which is accurate

Heba_MQ wrote:
the people I am working with wanted to have two version of MQ 7.5 and 9.2 and have two qmgrs with the same name and keep one up at a time and test
(as they did not want to change the setting from the WebSphere using the MQ objects )...

Perhaps we can instead help you with the settings they are worried about so that you can use two differently named queue managers. Can you expand on what they needed to change and perhaps we can provide alternative ways of running that would allow easy switching.

Heba_MQ wrote:
but any idea why when I created the QM2 with the full path of the bin dir of installation2, it was also created with Installation1 ?

I assume your currently set MQ environment (setmqenv) was pointing at Installation1.

Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » qmgrs with same name but different versions
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.