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 IndexGeneral IBM MQ SupportWeird MQ behavior - circular or linear logs?

Post new topicReply to topic Goto page 1, 2  Next
Weird MQ behavior - circular or linear logs? View previous topic :: View next topic
Author Message
Anant.v
PostPosted: Thu Dec 14, 2017 5:55 am Post subject: Weird MQ behavior - circular or linear logs? Reply with quote

Apprentice

Joined: 26 Nov 2014
Posts: 37
Location: Malaysia

Hi All,

I'm seeing a weird behavior in MQ QMGR. My MQ is at 7.5.0.8 version, and is running a QMGR with circular logging. ( details below )

#* *#
#* *#
Log:
LogPrimaryFiles=36
LogSecondaryFiles=24
LogFilePages=16384
LogType=CIRCULAR
LogBufferPages=0
LogPath=/var/mqm/log/XXXXXXX/
LogWriteIntegrity=TripleWrite


XXXXXXX - QMGR name hidden

But the qmstatus shows values for MEDIALOG, RECLOG and CURRLOG

dis qmstatus all
AMQ8705: Display Queue Manager Status Details.
QMNAME(XXXXXXX) STATUS(RUNNING)
CONNS(24) CMDSERV(RUNNING)
CHINIT(RUNNING) INSTNAME(Installation1)
INSTPATH(/opt/mqm) INSTDESC( )
STANDBY(NOPERMIT) CURRLOG(S0000005.LOG)
RECLOG(S0000005.LOG) MEDIALOG(S0000000.LOG)
STARTDA(2017-12-13) STARTTI(06.44.40)



Is that even possible? because as per IBM, these fields should be blank for a circular log using QMGR.


-Puzzled
Back to top
View user's profile Send private message
Andyh
PostPosted: Thu Dec 14, 2017 8:37 am Post subject: Reply with quote

Disciple

Joined: 29 Jul 2010
Posts: 158

Was the queue manager created as a circular or linear logging queue manager?
Prior to MQ 9.0.4 it was not possible to change the logging type from linear to circular (or vice-versa).
Simply changing the logging type in the qm.ini file will have no effect (other than to confuse people).

MQ 9.0.4 introduces the migmqlog command which can be used to change a queue manager to and from linear and circular.
Back to top
View user's profile Send private message
Anant.v
PostPosted: Fri Dec 15, 2017 3:41 am Post subject: Reply with quote

Apprentice

Joined: 26 Nov 2014
Posts: 37
Location: Malaysia

Quote:
Was the queue manager created as a circular or linear logging queue manager?


Was created with Circular logging,

Quote:
Prior to MQ 9.0.4 it was not possible to change the logging type from linear to circular (or vice-versa).


Yes, true.

Quote:
Simply changing the logging type in the qm.ini file will have no effect (other than to confuse people).


True that, too !!


Quote:
MQ 9.0.4 introduces the migmqlog command which can be used to change a queue manager to and from linear and circular.


Yep, but sadly mine is on MQv7.5, and our plans of purchasing MQv9 would be a LTS, so no new features of migrating logs and automatic housekeeping of linear logs.. ( Sad )


Regards,
Ananth
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Dec 15, 2017 4:32 am Post subject: Reply with quote

Poobah

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

Navigate to LogPath=/var/mqm/log/XXXXXXX/, then post here the list of log files you find.
_________________
I would tell you a UDP joke, but you might not get it.
Back to top
View user's profile Send private message
Anant.v
PostPosted: Fri Dec 15, 2017 6:24 am Post subject: Reply with quote

Apprentice

Joined: 26 Nov 2014
Posts: 37
Location: Malaysia

$ pwd
/var/mqm/log/XXXXXXX/active
$ ls -lrt
total 1900776
-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000007.LOG
-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000006.LOG
-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000009.LOG
-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000008.LOG
-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000051.LOG
-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000050.LOG
-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000055.LOG
-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000054.LOG
-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000053.LOG
-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000052.LOG
-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000058.LOG
-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000057.LOG
-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000056.LOG
-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000061.LOG
-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000060.LOG
-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000059.LOG
-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000063.LOG
-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000062.LOG
-rw-rw---- 1 mqm mqm 67117056 Apr 24 2017 S0000000.LOG
-rw-rw---- 1 mqm mqm 67117056 Jul 5 09:27 S0000001.LOG
-rw-rw---- 1 mqm mqm 67117056 Aug 8 20:56 S0000002.LOG
-rw-rw---- 1 mqm mqm 67117056 Sep 28 04:18 S0000066.LOG
-rw-rw---- 1 mqm mqm 67117056 Sep 28 04:18 S0000065.LOG
-rw-rw---- 1 mqm mqm 67117056 Sep 28 04:18 S0000064.LOG
-rw-rw---- 1 mqm mqm 67117056 Oct 20 14:02 S0000003.LOG
-rw-rw---- 1 mqm mqm 67117056 Dec 3 19:11 S0000004.LOG
-rw-rw---- 1 mqm mqm 67117056 Dec 13 06:43 S0000068.LOG
-rw-rw---- 1 mqm mqm 67117056 Dec 13 06:43 S0000067.LOG
-rw-rw---- 1 mqm mqm 67117056 Dec 14 14:14 S0000005.LOG
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Dec 15, 2017 7:58 am Post subject: Reply with quote

Poobah

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

Try this:

run the rcdmqimg command to see if you can use the record media function. If so, then try rcrmqobj to see if the recorded image can be recovered. If so, then this is a linear log qmgr. If that's the case, open a PMR with IBM.
_________________
I would tell you a UDP joke, but you might not get it.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Dec 15, 2017 8:00 am Post subject: Reply with quote

Grand Poobah

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

Anant.v wrote:
$ pwd
/var/mqm/log/XXXXXXX/active
$ ls -lrt
total 1900776

-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000061.LOG
-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000060.LOG
-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000059.LOG
-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000063.LOG
-rw-rw---- 1 mqm mqm 67117056 Jan 23 2017 S0000062.LOG
-rw-rw---- 1 mqm mqm 67117056 Apr 24 2017 S0000000.LOG
-rw-rw---- 1 mqm mqm 67117056 Jul 5 09:27 S0000001.LOG
-rw-rw---- 1 mqm mqm 67117056 Aug 8 20:56 S0000002.LOG
-rw-rw---- 1 mqm mqm 67117056 Sep 28 04:18 S0000066.LOG
-rw-rw---- 1 mqm mqm 67117056 Sep 28 04:18 S0000065.LOG
-rw-rw---- 1 mqm mqm 67117056 Sep 28 04:18 S0000064.LOG
-rw-rw---- 1 mqm mqm 67117056 Oct 20 14:02 S0000003.LOG
-rw-rw---- 1 mqm mqm 67117056 Dec 3 19:11 S0000004.LOG
-rw-rw---- 1 mqm mqm 67117056 Dec 13 06:43 S0000068.LOG
-rw-rw---- 1 mqm mqm 67117056 Dec 13 06:43 S0000067.LOG
-rw-rw---- 1 mqm mqm 67117056 Dec 14 14:14 S0000005.LOG


This definitely looks like a mix between circular and linear...
So your max is 60 logs from 0000 to 0059 but your high mark is 0068?

That looks much more like linear logging to me... and are you sure that the number of secondary logs hasn't changed over the life of the qmgr ?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Anant.v
PostPosted: Fri Dec 15, 2017 8:19 am Post subject: Reply with quote

Apprentice

Joined: 26 Nov 2014
Posts: 37
Location: Malaysia

The qmgr actually went a recent log reduction from 64 to 36 primary logs... but was always set to circular
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Dec 15, 2017 8:31 am Post subject: Reply with quote

Grand Poobah

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

Anant.v wrote:
The qmgr actually went a recent log reduction from 64 to 36 primary logs... but was always set to circular

Well going to a total number of 60 logs seems unwise as you already reached 66 logs in the past...
I'd not have reduced the primaries below 50, allowing for a total number of 74 logs (66 plus some spare room)...

The current log being #5 would just mean that the secondaries will get prune some time in the future (no longer used but not yet pruned)...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
bruce2359
PostPosted: Fri Dec 15, 2017 6:06 pm Post subject: Reply with quote

Poobah

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

Anant.v wrote:
The qmgr actually went a recent log reduction from 64 to 36 primary logs... but was always set to circular

I believe we are having a language miss-communication.

Are you saying that you or someone at your shop altered the qm.ini file to change the number of primary/secondary logs? Or, did something else happen?

Please be precise, as "qmgr actually went" doesn't tell us precisely happened.
_________________
I would tell you a UDP joke, but you might not get it.
Back to top
View user's profile Send private message
Anant.v
PostPosted: Fri Dec 15, 2017 7:10 pm Post subject: Reply with quote

Apprentice

Joined: 26 Nov 2014
Posts: 37
Location: Malaysia

Poor choice of words! I agree...
We changed it from 64 primary logs to 36 primary logs, as the qmgr is not supposed to be used heavily
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Dec 15, 2017 8:27 pm Post subject: Reply with quote

Poobah

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

Anant.v wrote:
Poor choice of words! I agree...
We changed it from 64 primary logs to 36 primary logs, as the qmgr is not supposed to be used heavily

Exactly and precisely how did you go about changing primary from 64 to 36? Did you follow an IBM-provided documented procedure?
_________________
I would tell you a UDP joke, but you might not get it.
Back to top
View user's profile Send private message
Anant.v
PostPosted: Fri Dec 15, 2017 8:35 pm Post subject: Reply with quote

Apprentice

Joined: 26 Nov 2014
Posts: 37
Location: Malaysia

Iam not sure if there actually is a documented procedure. I just stopped the qmgr, edited the qm.ini with new , lesser log files, and started it back..
Anyways, the initial issue remains the same.... it shows value for currlog and reclog, while it was always created with circular logging from the beginning of time.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sat Dec 16, 2017 5:45 am Post subject: Reply with quote

Poobah

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

Increasing the number of log files is supported, and involves altering the qm.ini file, then restarting the qmgr. Decreasing, is (was?) not.

Research "queue manager cold start". A cold start might be necessary if one or more of your log files is deleted or corrupted, and the qmgr will not successfully restart.

Briefly, a cold start involves deleting the existing log files and the related log control files, then creating a DUMMY qmgr with the new (and smaller) logging attributes, then copying the DUMMY log and control files to the original log file path, then restarting the original qmgr.

I'd suggest that before you next make changes to qmgr attributes, you post your intent (goals) here to see if someone can help you.
_________________
I would tell you a UDP joke, but you might not get it.
Back to top
View user's profile Send private message
Anant.v
PostPosted: Sat Dec 16, 2017 5:49 am Post subject: Reply with quote

Apprentice

Joined: 26 Nov 2014
Posts: 37
Location: Malaysia

There is no log corruption for sure, because once I edited and started back the queue manager, it started well... no issues, no errors and no FDCs stating any kind of error. its functioning well , but I was just puzzled by the qmstatus.
Anyways, we can close the post on a positive note

Thanks all
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum IndexGeneral IBM MQ SupportWeird MQ behavior - circular or linear logs?
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.