Author |
Message
|
mqsme |
Posted: Thu Oct 23, 2014 9:06 am Post subject: Where does MQ Subscription locate in Linux? |
|
|
 Acolyte
Joined: 16 Sep 2013 Posts: 51
|
hi,
I have 2 brokers. One broker's subcriptions suddenly all gone with unknown reason and the other broker still have subscriptions.
Do you know where does the subscription information sit in Linux? I can view the subscriptions entries via MQ explorer on the 2nd broker where data not lost, but not sure where to check in Linux server.
Thanks very much. |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu Oct 23, 2014 9:14 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Perhaps the 'runmqsc' command
might point you in the right direction _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Oct 23, 2014 9:25 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
won't help you list subscriptions.
There's no clear answer to the question as asked, because there's no clear answer which pub/sub engine is being used.
There are at least three choices - fuji, brokerv6 and mqv7 |
|
Back to top |
|
 |
mqsme |
Posted: Thu Oct 23, 2014 10:54 am Post subject: |
|
|
 Acolyte
Joined: 16 Sep 2013 Posts: 51
|
mqv7 + brokerv7
in MQ explorer of 2nd MQM, i can view 30 subscriptions under MQM>Subscriptions.
Howver on 1st broker, i can only find single subscription SYSTEM.BROKER.INTER.BROKER.COMMUNICATION with topic SYSTEM.BROKER.ADMIN.STREAM, but all other subcriptios are gone |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu Oct 23, 2014 12:13 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
mqjeff wrote: |
won't help you list subscriptions.
There's no clear answer to the question as asked, because there's no clear answer which pub/sub engine is being used.
There are at least three choices - fuji, brokerv6 and mqv7 |
What I was hinting at is that subscriptions are MQ Objects and that def, dis etc can be used to create, display etc them _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
mqsme |
Posted: Thu Oct 23, 2014 12:37 pm Post subject: |
|
|
 Acolyte
Joined: 16 Sep 2013 Posts: 51
|
sorry what piece of information tells the location?
From broker2
1 : dis sub(SYSTEM.DEFAULT.SUB) all
AMQ8096: WebSphere MQ subscription inquired.
SUBID(414D51206D7162726F6B65725F303320233E924D06000010)
SUB(SYSTEM.DEFAULT.SUB) TOPICSTR()
TOPICOBJ( ) DEST( )
DESTQMGR( ) PUBAPPID( )
SELECTOR( ) SELTYPE(NONE)
USERDATA( )
PUBACCT(0000000000000000000000000000000000000000000000000000000000000000)
DESTCORL(000000000000000000000000000000000000000000000000)
DESTCLAS(PROVIDED) DURABLE(YES)
EXPIRY(UNLIMITED) PSPROP(MSGPROP)
PUBPRTY(ASPUB) REQONLY(NO)
SUBSCOPE(ALL) SUBLEVEL(1)
SUBTYPE(ADMIN) VARUSER(ANY)
WSCHEMA(TOPIC) SUBUSER( )
CRDATE(2011-03-29) CRTIME(13:16:36)
ALTDATE( ) ALTTIME( )
however from broker 1
1 : dis sub(SYSTEM.DEFAULT.SUB) all
AMQ8464: WebSphere MQ subscription SYSTEM.DEFAULT.SUB not found. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Oct 23, 2014 12:57 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
What happened to the box between when the subscriptions existed and when they didn't? |
|
Back to top |
|
 |
mqsme |
Posted: Thu Oct 23, 2014 1:04 pm Post subject: |
|
|
 Acolyte
Joined: 16 Sep 2013 Posts: 51
|
I'm not quite sure. I'm more on Admin role.
I suppose once message put to a topic, message will throw to subscription queue.
In last few weeks i only stop/start the broker/MQM twice but now found subscription disappear from broker. so i want to trace by whether the subscription take up any file location similar to TOPIC, to see what happened |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Oct 23, 2014 1:07 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
All objects in MQ are not directly tied to the file system.
Even though there is a "file" that represents a queue, you should *never* do anything with that file, other than back it up using established procedures based on IBM's documentation.
The fact that one of your two systems is missing the default subscription object is very confusing.
Either it never had it, or someone purposely came in and deleted all subscription objects.
You could use dmpmqcfg to extract the subscriptions as MQSC from the "working system" and then use runmqsc to apply them to the "non-working system".
But you need to find out what happened to cause the subscriptions to disappear in the first place. |
|
Back to top |
|
 |
mqsme |
Posted: Fri Oct 24, 2014 7:58 am Post subject: |
|
|
 Acolyte
Joined: 16 Sep 2013 Posts: 51
|
Interesting, all items under MQexplorer have their own file folders
(Topic, channel, listener, process definition, ....)
only subscription does not have its file system.....
By the way, most likely we need to deploy all the subscriptions again but no root cause found, thanks. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Oct 24, 2014 8:05 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
None of the folders in MQ Explorer are real folders. (well, except in certain specific cases, none of which are mentioned here).
They're just logical containers - with even *less* ties to real folders on the real file system than the actual objects they represent.
"No root cause found" is very worrying. You should spend at least as much time figuring out how to have enough information *the next time* as you do fixing the issue.
Simply replacing the subscriptions may not actually help. The applications using the subscriptions might not use the new ones.
You need to reexamine your MQ topology and reexamine the applications using the subscriptions, and then *determine* what the right thing to do is.
And, again, institute a process whereby *every* change to MQ is written down or otherwise logged somewhere. |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Oct 24, 2014 9:10 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
And, you need to ensure RWX file permissions in the MQ filesystem are NOT changed in any way, as this can be the cause of mysteries of the MQ universe.
No MQ application, internal or external, needs explicit permissions anywhere in the filesystem. _________________ 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 |
|
 |
mqsme |
Posted: Fri Oct 24, 2014 1:21 pm Post subject: |
|
|
 Acolyte
Joined: 16 Sep 2013 Posts: 51
|
Thanks for these days reply.
I think stuff should be store here:
SYSTEM.DURABLE.SUBSCRIBER.QUEUE - A local queue used to hold a persistent copy of the durable subscriptions in the queue manager
Now i'm thinking how to recover the data |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Oct 24, 2014 9:01 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
mqsme wrote: |
Now i'm thinking how to recover the data |
how about
That extracts Subscriptions from a running QMGR in a usable form i.e. text that can be
1) Put into source control
2) Used on other QMGRs _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
|