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 » Removing linear logfiles

Post new topic  Reply to topic
 Removing linear logfiles « View previous topic :: View next topic » 
Author Message
rahoor
PostPosted: Thu Mar 01, 2007 10:01 am    Post subject: Removing linear logfiles Reply with quote

Apprentice

Joined: 21 Jul 2003
Posts: 34

PROBLEM:
Running MQ 6.0.2.0 on SunOS 5.8.
Queue manager crashes appear to coincide with the time linear log files are zipped.

QUESTION:
Can I remove archivable log files when queue manager is running even though lsof shows open file handles to all log files?

BACKGROUND

I run
rcdmqimg -z -l -t MQAPP02 -t all '*'

and see in the AMQERR01.LOG that
AMQ7467: The oldest log file required to start queue manager MQAPP02 is S0000245.LOG.
...
The oldest log file required to perform media recovery of queue
manager MQAPP02 is S0000245.LOG.
...


However lsof reports that AMQZMUC0 has open file handles to all the linear logs, including those that are ready for backup:

bash-2.03$ lsof /var/mqm/log/MQAPP02/active/*
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
amqzmuc0 16438 mqm 5uR VREG 118,6 16785408 298500 /app/log/MQAPP02/active/S0000245.LOG
amqzmuc0 16438 mqm 6uR VREG 118,6 16785408 298501 /app/log/MQAPP02/active/S0000246.LOG
amqzmuc0 16438 mqm 7uR VREG 118,6 16785408 298502 /app/log/MQAPP02/active/S0000247.LOG
amqzmuc0 16438 mqm 8uR VREG 118,6 16785408 298503 /app/log/MQAPP02/active/S0000248.LOG
amqzmuc0 16438 mqm 9uR VREG 118,6 16785408 298505 /app/log/MQAPP02/active/S0000249.LOG
amqzmuc0 16438 mqm 10uR VREG 118,6 16785408 298509 /app/log/MQAPP02/active/S0000250.LOG
amqzmuc0 16438 mqm 11uR VREG 118,6 16785408 298510 /app/log/MQAPP02/active/S0000251.LOG
amqzmuc0 16438 mqm 12uR VREG 118,6 16785408 298511 /app/log/MQAPP02/active/S0000252.LOG
amqzmuc0 16438 mqm 13uR VREG 118,6 16785408 298514 /app/log/MQAPP02/active/S0000253.LOG
amqzmuc0 16438 mqm 14uR VREG 118,6 16785408 298516 /app/log/MQAPP02/active/S0000254.LOG
amqzmuc0 16438 mqm 15uR VREG 118,6 16785408 298507 /app/log/MQAPP02/active/S0000255.LOG
amqzmuc0 16438 mqm 16uR VREG 118,6 16785408 298497 /app/log/MQAPP02/active/S0000256.LOG
amqzmuc0 16438 mqm 17uR VREG 118,6 16785408 298506 /app/log/MQAPP02/active/S0000257.LOG
amqzmuc0 16438 mqm 18uR VREG 118,6 16785408 298512 /app/log/MQAPP02/active/S0000258.LOG
amqzmuc0 16438 mqm 19uR VREG 118,6 16785408 298515 /app/log/MQAPP02/active/S0000259.LOG
amqzmuc0 16438 mqm 20uR VREG 118,6 16785408 298518 /app/log/MQAPP02/active/S0000260.LOG
amqzmuc0 16438 mqm 21uR VREG 118,6 16785408 298519 /app/log/MQAPP02/active/S0000261.LOG
amqzmuc0 16438 mqm 22uR VREG 118,6 16785408 298824 /app/log/MQAPP02/active/S0000262.LOG
amqzmuc0 16438 mqm 23uR VREG 118,6 16785408 298825 /app/log/MQAPP02/active/S0000263.LOG


Some of these files are older than others, although that should not directly play into this scenario:

bash-2.03$ ls -ltr /var/mqm/log/MQAPP02/active
total 671632
-rw-rw---- 1 mqm mqm 16785408 Jan 9 17:44 S0000250.LOG
-rw-rw---- 1 mqm mqm 16785408 Jan 9 17:44 S0000249.LOG
-rw-rw---- 1 mqm mqm 16785408 Jan 9 17:44 S0000248.LOG
-rw-rw---- 1 mqm mqm 16785408 Jan 9 17:44 S0000247.LOG
-rw-rw---- 1 mqm mqm 16785408 Jan 9 17:44 S0000246.LOG
-rw-rw---- 1 mqm mqm 16785408 Feb 26 10:25 S0000251.LOG
-rw-rw---- 1 mqm mqm 16785408 Feb 26 10:25 S0000253.LOG
-rw-rw---- 1 mqm mqm 16785408 Feb 26 10:25 S0000252.LOG
-rw-rw---- 1 mqm mqm 16785408 Feb 26 10:25 S0000254.LOG
-rw-rw---- 1 mqm mqm 16785408 Feb 26 10:25 S0000255.LOG
-rw-rw---- 1 mqm mqm 16785408 Feb 26 10:25 S0000257.LOG
-rw-rw---- 1 mqm mqm 16785408 Feb 26 10:25 S0000256.LOG
-rw-rw---- 1 mqm mqm 16785408 Feb 26 10:25 S0000258.LOG
-rw-rw---- 1 mqm mqm 16785408 Feb 26 10:26 S0000259.LOG
-rw-rw---- 1 mqm mqm 16785408 Feb 26 10:26 S0000260.LOG
-rw-rw---- 1 mqm mqm 16785408 Feb 26 10:26 S0000261.LOG
-rw-rw---- 1 mqm mqm 16785408 Feb 26 10:26 S0000262.LOG
-rw-rw---- 1 mqm mqm 16785408 Feb 26 10:26 S0000263.LOG
-rw-rw---- 1 mqm mqm 16785408 Feb 28 19:56 S0000264.LOG
-rw-rw---- 1 mqm mqm 16785408 Mar 1 12:45 S0000245.LOG


I have read the post on plan to use MS67 http://www-1.ibm.com/support/docview.wss?uid=swg24006603
which does not seem to require the shutting down of the queue manager to run (?)

I would rather be safe than sorry by shutting down qmgr first, before removing files, however being safe also implies understanding what is going on with the MQ open file handles in this case?

thanks in advance!
Back to top
View user's profile Send private message
bbburson
PostPosted: Thu Mar 01, 2007 11:01 am    Post subject: Re: Removing linear logfiles Reply with quote

Partisan

Joined: 06 Jan 2004
Posts: 378
Location: Nowhere near a queue manager

rahoor wrote:
and see in the AMQERR01.LOG that
AMQ7467: The oldest log file required to start queue manager MQAPP02 is S0000245.LOG.
...
The oldest log file required to perform media recovery of queue
manager MQAPP02 is S0000245.LOG.
...


These messages do not mean oldest as in when files are modified. Instead they mean oldest as in lowest numbered file name. In your lsof and ls -l listings there are NO files older (lower numbers) than S0000245.LOG. Therefore you do not have any files that can be safely removed.

If the oldest log required had been S0000250.LOG, then you could remove S0000245.LOG, S0000246.LOG, S0000247.LOG, S0000248.LOG, S0000249.LOG.
Back to top
View user's profile Send private message
rahoor
PostPosted: Thu Mar 01, 2007 4:47 pm    Post subject: Re: Removing linear logfiles Reply with quote

Apprentice

Joined: 21 Jul 2003
Posts: 34

thank you! that answers my question.
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 » Removing linear logfiles
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.