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 » QMGR not releasing logs properly

Post new topic  Reply to topic
 QMGR not releasing logs properly « View previous topic :: View next topic » 
Author Message
sharonvk
PostPosted: Wed Sep 21, 2016 4:03 am    Post subject: QMGR not releasing logs properly Reply with quote

Newbie

Joined: 21 Sep 2016
Posts: 8

HI

I'm running MQ 7506 on Linux REDHUT machine , which I have migrated to it recently , it is a test environment.
recently I have got calls from the application team that mq is not working
after searching I noticed the log disk is full.

We are using a linear logs.
I run the rcdmqimg and noticed that it stated that the oldest log required is very old ( for example I got like 100 logs from 1-100 and it requested log number 1, the oldest )

I then took down the qmgr and tried again , it still returned the old log file

I started the qmgr , and checked the command again now it stated a different log file quite a new one and I could delete most of the logs

I wonder if anyone has encountered such behavior and if there is a solution for this . ( I don't want to take down the qmgr in production ...)
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Sep 21, 2016 4:13 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

What you've seen is normal behavior, at least in terms of the log files.

I can't speak to the behavior of rcdmqimg, as I've not run it in quite a while.

If the problem is that the logs are filling up the disk, then either the logs are too big or the disk is too small...
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
sharonvk
PostPosted: Wed Sep 21, 2016 4:32 am    Post subject: Reply with quote

Newbie

Joined: 21 Sep 2016
Posts: 8

Hi
Why do you consider this as normal behavior , should the qmgr hold the old log and only after a restart release it.
as I stated the old log was like 100 and more logs and took up a lot of space in the disk .

if it is not needed why it is held , is this not a bug ....
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Sep 21, 2016 4:39 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The logs should be rolled over at some point. It's not clear that you reached that point.

Was the size of the 100th log file different than the size of the others?

Also, if it ran out of disk space, it might not have been able to roll over the log files.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Sep 21, 2016 7:53 pm    Post subject: Reply with quote

Grand High Poobah

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

What are you doing to automate the maintenance of the log files in linear logging?
What support pack are you using for this task? (MS0L?)
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Andyh
PostPosted: Wed Sep 21, 2016 11:01 pm    Post subject: Reply with quote

Master

Joined: 29 Jul 2010
Posts: 237

When you run rcdmqimg, is it successfully recording a media image for all MQ objects ?
For example, do you have any damaged queues, as you have to recover (or delete) any damaged queues before the qmgr medialog can be advanced beyond the medialog for that specific queue.
If you run "DIS QSTATUS(*) MEDIALOG" does it show some queue as having an 'old' medialog ?
Are there any FDC's ?
Back to top
View user's profile Send private message
sharonvk
PostPosted: Tue Sep 27, 2016 1:35 am    Post subject: Reply with quote

Newbie

Joined: 21 Sep 2016
Posts: 8

Hi
Thanks for the replies

1) regarding maintaining the linear logs , I have a script that run a the rcdmqimg and then delete all the old logs ,
this scripts runs twice a day . midday and midnight and it working fine in several application in production .

Andyh
an FDC is created stating that the resource for log space is out. I can record it to you if you think it has any additional information .
as I run the rcdmqimg in a script I haven't noticed if there were errors.
I will check the next time this event occurs .

mqjeff has I deleted the logs I haven't had the chance to check what you asked , I will do it the next time

can you explain why after shutting down the qmgr , the rdmqimg still didn't free the logs , only after starting it up the logs were free
Back to top
View user's profile Send private message
umatharani
PostPosted: Thu Sep 29, 2016 5:31 pm    Post subject: Reply with quote

Apprentice

Joined: 23 Oct 2008
Posts: 39

Hi,

As Andy H indicated, if there is a failure in recording media image then starting log extent required for the media recovery will not change. Could you please provide the output of ffstsummary command executed from /var/mqm/errors directory.

Thanks, mahesh
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » QMGR not releasing logs properly
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.