Author |
Message
|
smvineed |
Posted: Wed Aug 17, 2016 1:54 am Post subject: purpose of subpool.lck file |
|
|
Apprentice
Joined: 24 Jul 2011 Posts: 34
|
Could you please explain the use of subpool.lck in /var/mqm/sockets/XXX/qmgrlocal/hostname? _________________ SMV
If you want it,work for it. it's that simple |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Aug 17, 2016 3:48 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
It's a lock file. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
Vitor |
Posted: Wed Aug 17, 2016 4:24 am Post subject: Re: purpose of subpool.lck file |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
smvineed wrote: |
Could you please explain the use of subpool.lck in /var/mqm/sockets/XXX/qmgrlocal/hostname? |
It's nothing you should be worrying about or fiddling with.
It belongs to the software and you shouldn't be playing with its toys. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Aug 17, 2016 1:09 pm Post subject: Re: purpose of subpool.lck file |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
smvineed wrote: |
Could you please explain the use of subpool.lck in /var/mqm/sockets/XXX/qmgrlocal/hostname? |
A general explanation follows:
Locks are used in multi-user (server) software to provide serialized access to important resources - in this instance virtual storage. A subpool is an area of virtual storage reserved for some specific purpose - for example: holding database rows, or messages in queues.
The contents of a subpool may require that it is only accessed by one "user" at a time. The subpool lock must first be acquired before the resource it protects can be accessed.
For MQ queues, some users may be browsing messages, others may be destructively consuming messages. Some mechanism must be in place to ensure that no two (or more) concurrent users are trying to destructively consume the same message at the same time. Locks provide this mechanism.
As it relates to IP network traffic, the socket() calls read or write into buffers (subpools). To keep multiple listeners writers from overwriting IP packets as they sit in buffers, the buffers are protected by locks. _________________ 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 |
|
 |
gbaddeley |
Posted: Wed Aug 17, 2016 5:41 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
I have experienced MQ FixPack installation failures like:
"Verifying selections...You seem to have an MQ queue manager still running. You must stop all MQ processing, and stop the Queue Manager(s) by using the endmqm command before trying to install/update/delete the MQ product."
There was no actual qmgr running at the time. The solution is to remove the subpool.lck file:
rm /var/mqm/sockets/<qmgr name>/qmgrlocl/<hostname>/subpool.lck
A new file is created when the qmgr starts. This is the only interaction I have ever had with this file over 20 years of MQ tech support. _________________ Glenn |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Aug 18, 2016 3:33 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
gbaddeley - Is it in any way possible that either some MQ process was still running, or had ended/crashed badly?
I know that in general you would not fail to check these things, but one always has those days...
Particularly when one hasn't had enough coffee... yes, Vitor? _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
Vitor |
Posted: Thu Aug 18, 2016 6:00 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
gbaddeley - Is it in any way possible that either some MQ process was still running, or had ended/crashed badly?
I know that in general you would not fail to check these things, but one always has those days...
Particularly when one hasn't had enough coffee... yes, Vitor? |
 _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
gbaddeley |
Posted: Thu Aug 18, 2016 5:53 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
mqjeff wrote: |
gbaddeley - Is it in any way possible that either some MQ process was still running, or had ended/crashed badly? |
There were no mqm processes running, dspmq showed the qmgr as ended normally, running amqiclen did not help. _________________ Glenn |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Aug 19, 2016 3:49 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
gbaddeley wrote: |
mqjeff wrote: |
gbaddeley - Is it in any way possible that either some MQ process was still running, or had ended/crashed badly? |
There were no mqm processes running, dspmq showed the qmgr as ended normally, running amqiclen did not help. |
As I said, I know in general that you would check these things. Seems very odd, though, that this file would still exist. I could speculate on several reasons, but I don't think that's terribly productive at this point, and the coffee hasn't kicked in yet.
I'd still not recommend that *anyone* muck with this file outside the scope of a PMR. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
smvineed |
Posted: Fri Aug 19, 2016 4:06 am Post subject: purpose of subpool.lck file |
|
|
Apprentice
Joined: 24 Jul 2011 Posts: 34
|
Thank you all for the explanations  _________________ SMV
If you want it,work for it. it's that simple |
|
Back to top |
|
 |
|