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 » How to clear the mq logs ??

Post new topic  Reply to topic
 How to clear the mq logs ?? « View previous topic :: View next topic » 
Author Message
limwengkeong
PostPosted: Mon Mar 08, 2004 11:48 pm    Post subject: How to clear the mq logs ?? Reply with quote

Newbie

Joined: 08 Mar 2004
Posts: 1

Hi,

Anyone know how to clear those log files which located in /var/mqm/log/<qmgr>/active/S0000000 to S00000060. I run on AIX V5.1 and MQ Series 5.2.

I can't delete any one of the files and also don't know why the Qmanager is generated the log files untill Sxxxxxxx60??

if i delete or clear anyone of those logs, its will cause my Qmanager can't start... The errors will show 'AMQ7017: Log not available'.

My disk space for storing those log files are nearly full, and i really ugrently need to clear it off or reduce this log files....

Anyone can help ??



Thanks.....
Back to top
View user's profile Send private message
Michael Dag
PostPosted: Tue Mar 09, 2004 1:56 am    Post subject: Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2607
Location: The Netherlands (Amsterdam)

lookup the rcdmqimg command and get supportpac MS062
from http://www-306.ibm.com/software/integration/support/supportpacs/product.html
_________________
Michael



MQSystems Facebook page
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
kman
PostPosted: Tue Mar 09, 2004 1:57 am    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2003
Posts: 309
Location: Kuala Lumpur, Malaysia

If you need to clear the logs (this is backup and recovery issue), you need to stop your queue manager. Its true that the queue manager will have problem restarting because it needs the log for restart.

These logs are there because you chose to use linear logging. So it keeps on producing the logs. Once a log file size is full, it creates a new one. Since you already reach 60, that means there hasn't been any cleaning up activities being done, and it could eventually fill up your disk quota.

Before you wan to clear the logs.. you need to backup for recovery. You only need to clear the 'inactive' logs.

"Over time, the older log files for a linear log are no longer needed to restart the queue manager or perform media recovery of any damaged objects. Periodically, the queue manager issues a pair of messages to indicate which of the log files is needed:
- Message AMQ7467 gives the name of the oldest log file needed to restart the queue manager. This log file and all newer log files must be available during queue manager restart.
- Message AMQ7468 gives the name of the oldest log file needed for media
recovery. Any log files older than these do not need to be online. You can copy them to an archive medium such as tape for disaster recovery, and remove them from the active log directory. Any log files needed for media recovery but not for restart can also be off-loaded to an archive."


For more discussion on the maintenance of the log files, see the System Admin guide.. follow the link 'documentation' above.

Forgive me.. if you don't get a straight answer on this.
Back to top
View user's profile Send private message Yahoo Messenger
vijiraghav
PostPosted: Tue Mar 09, 2004 4:36 am    Post subject: How to clear the mq logs ?? Reply with quote

Novice

Joined: 11 Nov 2003
Posts: 18

Quote:

If you need to clear the logs (this is backup and recovery issue), you need to stop your queue manager. Its true that the queue manager will have problem restarting because it needs the log for restart.

A small doubt.
In the case of linear logs:
Is it necessary to stop the queue manager even for clearing the 'inactive' logs? Or can we remove these logs even when the queue manager is running? What are the implications?

Thanks.

Vijiraghav
Back to top
View user's profile Send private message Send e-mail
kman
PostPosted: Tue Mar 09, 2004 6:48 pm    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2003
Posts: 309
Location: Kuala Lumpur, Malaysia

One thing about clearing the log is that, you can clear it even if the queue manager is still running. The problem only occurs after a restart - if there is a problem. So you can clear the 'inactive' logs anytime.
It is safer to ensure the queue manager has been stopped completely, that the queue manager has taken the latest check point.
Take a look at the rcdmqimg to help you backup.
Back to top
View user's profile Send private message Yahoo Messenger
JasonE
PostPosted: Wed Mar 10, 2004 3:24 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

The rcdmqimg command outputs 2 bits of information
1. Oldest log required to restart the qmgr
2. Oldest log required for media recovery
Any log older than both of these can be archived/removed without trouble from a running system. I believe there is even support packs to automate this.
Back to top
View user's profile Send private message
crossland
PostPosted: Wed Mar 10, 2004 3:42 am    Post subject: Reply with quote

Master

Joined: 26 Jun 2001
Posts: 248

To get rcdmqimg to display the oldest log files required for media recovery and to restart the queue manager, you need to specify the -l parameter.

Regards,

Tim Crossland
http://www.solent-consultancy.com
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 » How to clear the mq 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.