Author |
Message
|
limwengkeong |
Posted: Mon Mar 08, 2004 11:48 pm Post subject: How to clear the mq logs ?? |
|
|
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 |
|
 |
Michael Dag |
Posted: Tue Mar 09, 2004 1:56 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
|
Back to top |
|
 |
kman |
Posted: Tue Mar 09, 2004 1:57 am Post subject: |
|
|
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 |
|
 |
vijiraghav |
Posted: Tue Mar 09, 2004 4:36 am Post subject: How to clear the mq logs ?? |
|
|
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 |
|
 |
kman |
Posted: Tue Mar 09, 2004 6:48 pm Post subject: |
|
|
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 |
|
 |
JasonE |
Posted: Wed Mar 10, 2004 3:24 am Post subject: |
|
|
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 |
|
 |
crossland |
Posted: Wed Mar 10, 2004 3:42 am Post subject: |
|
|
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 |
|
 |
|