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 » Deletion of log files

Post new topic  Reply to topic
 Deletion of log files « View previous topic :: View next topic » 
Author Message
manojsu
PostPosted: Sat Oct 14, 2006 1:51 am    Post subject: Deletion of log files Reply with quote

Centurion

Joined: 19 Jul 2006
Posts: 147
Location: Bangalore

Hello All,

I accidentally deleted my logfiles, and havent taken any back up, and when trying to restart its checking for the logfiles..
Getting the below error..

****************************************
* Command: amqmdain qmgr start BKQM1
****************************************
WebSphere MQ queue manager 'BKQM1' starting.
WebSphere MQ was unable to display an error message 893.
exitvalue = 71


Please suggest a solution as its my brokers Queue Manager..

The reason I did it was, I had enables Circular Logging for my Brokers Queue Manager, but when deploying i was getting error as brokers log was full..
Back to top
View user's profile Send private message Yahoo Messenger
wschutz
PostPosted: Sat Oct 14, 2006 2:45 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Search this site for the words "cold start" ... good luck.
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
manojsu
PostPosted: Sat Oct 14, 2006 8:03 pm    Post subject: Reply with quote

Centurion

Joined: 19 Jul 2006
Posts: 147
Location: Bangalore

Searched, dint fine anytthing, ppl have reported probs for error code 893, but for diff reasons.
Please let me know of any solutions/suggestions
Back to top
View user's profile Send private message Yahoo Messenger
fjb_saper
PostPosted: Sun Oct 15, 2006 4:25 am    Post subject: Reply with quote

Grand High Poobah

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

The supported solution is delete and recreate the qmgr.
The unsupported solution is create a qmgr with the same name on the a different machine (same platform) and copy the logfiles (full directories and files under /var/mqm/log/<qmgr>)

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jeevan
PostPosted: Sun Oct 15, 2006 6:32 am    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

Quote:

The unsupported solution is create a qmgr with the same name on the a different machine (same platform) and copy the logfiles (full directories and files under /var/mqm/log/<qmgr>)



I think, the name of the queue manager does not matter. But remember, the log specification has to be the same.

-[lc :ll], lp, ls, -lf

Once the new queue manager is created, copy the log directory of the newly created queue manager in place of the log directory of you queue manager. Restart it. I should work.
Back to top
View user's profile Send private message
jeevan
PostPosted: Sun Oct 15, 2006 6:35 am    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

Quote:

The unsupported solution is create a qmgr with the same name on the a different machine (same platform) and copy the logfiles (full directories and files under /var/mqm/log/<qmgr>)



I think, the name of the queue manager does not matter. But remember, the log specification has to be the same.

-[lc :ll], lp, ls, -lf

Once the new queue manager is created, copy the log directory of the newly created queue manager in place of the log directory of you queue manager. Restart it. It should work.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Oct 15, 2006 10:24 am    Post subject: Reply with quote

Grand High Poobah

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

I believe the name of the qmgr does matter,... but then I never tested the fact...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jeevan
PostPosted: Sun Oct 15, 2006 2:47 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

Quote:


I believe the name of the qmgr does matter,... but then I never tested the fact...



I have done once. As remember, I created a temp queue manager which can be done in the same system. But what matters is the specification of the log as I mentioned.
Back to top
View user's profile Send private message
Gaya3
PostPosted: Sun Oct 15, 2006 6:29 pm    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Hi,

The below is the cold start procedure...

This procedure Works fine....but its not supported by IBM (this is the worst case) (but no other way....to get it work)

Recreate queue manager's logs using a 'cold start' procedure as shown bellow:
• Log in as someone in the 'mqm' group.
• Record the logging parameters of the failing queue manager by checking '/var/mqm/qmgrs/OLDQMGR/qm.ini'. These parameters include the type, number, and size of the log files.
• Create a queue manager called 'TEMP' with identical logging parameters. For example, 'crtmqm TEMP' will create a new queue manager with the default size and number of circular logs.
• Type 'cd /var/mqm/log'.
• Type 'ls -l'. You should see subdirectories for each of your queue managers, including the new 'TEMP' queue manager.
• Type 'rm -rf OLDQMGR'. Note: It is always good practice to backup the /var/mqm/log/'OLDQMGR' directory prior to deleting it.
• Type 'mv TEMP OLDQMGR'.
• Copy the 'amqalchk.fil' checkpoint file from the new to the old queue manager.
• Type 'dltmqm TEMP' to remove the new queue manager.
• Type 'strmqm OLDQMGR' to restart your original queue manager.



Thanks and Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
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 » Deletion of log files
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.