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 » Log not available message; but S0000000.LOG is there.

Post new topic  Reply to topic
 Log not available message; but S0000000.LOG is there. « View previous topic :: View next topic » 
Author Message
jpardi
PostPosted: Mon Jul 09, 2007 8:19 am    Post subject: Log not available message; but S0000000.LOG is there. Reply with quote

Newbie

Joined: 13 Oct 2004
Posts: 6
Location: Jersy City, NJ

This is an v5.3 Qmgr on Unix/Solaris. When I try to start the Qmgr I get the "Log not available" message, but I have a S0000000.LOG file in my /active directory.
I've read similar posts, but it seems that for the other posts, all the logs were deleted.
I did not delete these logs inadvertently; they seem to have disappeared after a reboot.
What can be done to get my Qmgr back up? I can't delete it and create a new one.
Back to top
View user's profile Send private message
mrlinux
PostPosted: Mon Jul 09, 2007 10:02 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

How many log files do you normally have ????
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
jpardi
PostPosted: Mon Jul 09, 2007 10:20 am    Post subject: Reply with quote

Newbie

Joined: 13 Oct 2004
Posts: 6
Location: Jersy City, NJ

Three and I'm using circular logging. The log files are defined on EMC storage.

Joan
Back to top
View user's profile Send private message
mrlinux
PostPosted: Mon Jul 09, 2007 10:28 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

So do you have all 3 log files or just the one ????
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
jpardi
PostPosted: Mon Jul 09, 2007 10:50 am    Post subject: Reply with quote

Newbie

Joined: 13 Oct 2004
Posts: 6
Location: Jersy City, NJ

I have only one now, since the machine was rebooted, and am unable to start the Qmgr. Normally, I should have three
Back to top
View user's profile Send private message
mrlinux
PostPosted: Mon Jul 09, 2007 10:51 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

Well here is a method I have used


1) Create a new qmgr with the same name on a different system, with the same log settings size/number (hopefully the server has the same UID/GID)
2) tar up the log directory and move it to the broken qmgr. and untar it.
Permissions must be the same as before, IF UID and GID are the same you are ok.
3) start the qmgr.
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
jpardi
PostPosted: Mon Jul 09, 2007 11:22 am    Post subject: Reply with quote

Newbie

Joined: 13 Oct 2004
Posts: 6
Location: Jersy City, NJ

Thanks for this advice.
Do I need to copy the amqalchk.fil also? I notice in a previous post, it was advised to do this.
I went ahead and created the same named Qmgr on another machine. The problem I see is that when I look at the contents of the amqalchk.fil, it has the name of the new machine there. Won't this cause a problem if I copy this file to the old machine where the broken Qmgr is?

Joan
Back to top
View user's profile Send private message
mrlinux
PostPosted: Mon Jul 09, 2007 11:28 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

Its been a while, but try it first without copying in the amqalchk.fil first.

The amqalchk.fil is pointer into which log file was used last, in theory since you have clean logs this should be ok.
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
jpardi
PostPosted: Mon Jul 09, 2007 12:02 pm    Post subject: Reply with quote

Newbie

Joined: 13 Oct 2004
Posts: 6
Location: Jersy City, NJ

I copied the logs, changed the permissions, but I still can't bring up my Qmgr.
Now, in additon to "Log not available", I am getting the following in my AMQERR01.LOG file:
07/09/07 15:55:36
AMQ6767: Log file /var/mqm/log/NJTIBDEV2/active/S0000000.LOG could not be
opened for use.

EXPLANATION:
Log file /var/mqm/log/NJTIBDEV2/active/S0000000.LOG could not be opened for
use. Possible reasons include the file being missing, the queue manager being
denied permission to open the file or the contents of the file being incorrect.
ACTION:
If the log file was required to start the queue manager, ensure that the log
file exists and that the queue manager is able to read from and write to it. If
the log file was required to recreate an object from its media image and you do
not have a copy of the required log file, delete the object instead of
recreating it.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jul 09, 2007 12:53 pm    Post subject: Reply with quote

Grand High Poobah

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

What happens if you copy the the amqalchk.fil file and try a restart?

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jpardi
PostPosted: Mon Jul 09, 2007 2:40 pm    Post subject: Reply with quote

Newbie

Joined: 13 Oct 2004
Posts: 6
Location: Jersy City, NJ

IBM just gave me a "cold start" procedure and it worked!
You can create a TEMP Qmgr on the same machine with the same log file characteristics. But then you have to remove recursively, the BADQMGR's directory from /var/mqm/log. (after backing it up) Then copy recursively TEMP qmgr's directory to BADQMGR. Also have to copy TEMP's amqalchk.fil to BADQMGR's /var/mqm/qmgrs/BADQMGR directory

Thank you both for the help and suggestions.

Joan
Back to top
View user's profile Send private message
Nigelg
PostPosted: Mon Jul 09, 2007 10:46 pm    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

Back to your first post...

Quote:
I did not delete these logs inadvertently; they seem to have disappeared after a reboot.


Yeah, right...
_________________
MQSeries.net helps those who help themselves..
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jul 10, 2007 2:46 am    Post subject: Reply with quote

Grand High Poobah

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

Nigelg wrote:
Back to your first post...

Quote:
I did not delete these logs inadvertently; they seem to have disappeared after a reboot.


Yeah, right...

I did see something like that once, in LINEAR logging though... It was due to the linear log management system not being configured quite right. If this happens again, check that the logs missing did not get archived before the qmgr went down (or after).

In my case, the archiving program was missing a temp dir to copy the AMQxxxx.LOG files to.
In case those were being rolled over while determining the files to archive (no copy of them before determining files to archive) you might have archived active logs...

But everything's running fine now... (thanks Tim -- again)

Circular logging though.... Depending on activity and age of the file there might just be some OS maintenance sweeper that deletes old files to reclaim space? Make sure that that process never touches the MQ directories...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Nigelg
PostPosted: Tue Jul 10, 2007 5:50 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

There have been a couple of bugs where the required media or restart log extent numbers have been one more than actually required, and so users delete logs which are still needed. Obviously, as jeff says, this applies only to linear logging.
_________________
MQSeries.net helps those who help themselves..
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 » Log not available message; but S0000000.LOG is there.
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.