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 » Linear and circular Logging

Post new topic  Reply to topic Goto page 1, 2  Next
 Linear and circular Logging « View previous topic :: View next topic » 
Author Message
Manikandan
PostPosted: Wed Sep 15, 2004 3:10 am    Post subject: Linear and circular Logging Reply with quote

Voyager

Joined: 07 Jul 2004
Posts: 78

I am trying to go with linear logging as my setup is a banking setup to make sure that I can recover everything with MQ series.

If I am to setup linear logging how many log files should I mention during the Qmgr creation.

Will the MQ automatically create new log files for linear logging until the count becomes 63.

Please revert
Back to top
View user's profile Send private message
Nigelg
PostPosted: Wed Sep 15, 2004 4:41 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

Log files are continuously created in linear logging. The 63 limit is the number of files in the active log; there can be any number of files more than that in the inactive log.
Back to top
View user's profile Send private message
Mallik
PostPosted: Wed Sep 15, 2004 11:53 am    Post subject: Reply with quote

Acolyte

Joined: 29 Feb 2004
Posts: 53

Quote:
If I am to setup linear logging how many log files should I mention during the Qmgr creation.


It depends on several factors like
1. How long are you expecting the msgs to sit on the queues.
2. Are the messages persistant
3. Syncpoint usage
4. Msg traffic and number of different Objects

There is a chapter for the logging in Admin guide(chapter 14). You need to refer to that to get more idea.

Quote:
Will the MQ automatically create new log files for linear logging until the count becomes 63.


It depends on the number of Primary & sec log files you specify while QMGR creation.

If you have defined 3 pri & 2 sec, at any time you will have only 5 active log files. You may see more number of log files but, only 5 of them are active. If you want a maximum of 63 active, you have to specify accodingly. (10 Pr + 53 Sec, 11Pr + 52 Sec ........).

You will find many of your answers if you do a quick search on this forum.
Look at this thread for more info.
http://www.mqseries.net/phpBB2/viewtopic.php?t=9264&highlight=circular+linear
Back to top
View user's profile Send private message
hguapluas
PostPosted: Wed Sep 15, 2004 3:15 pm    Post subject: Don't forget size Reply with quote

Centurion

Joined: 05 Aug 2004
Posts: 105
Location: San Diego

Don't forget to set the size of each of your logs accordingly too. You will need to do some background work on the size you want each log to be as this is fixed when you create your queue's. There are formulas in Chapter 14 of the Admin guide that will help you to determine the size of the logs you need. Put them into a spreadsheet and play with the numbers to get a feel for what you'll need. (Spreadsheet is much better than pencil & paper, more fun to play with too)
Calculating size of each log will be just as important as specifying how many logs you want to use, especially since you are doing linear logging.
Back to top
View user's profile Send private message
Manikandan
PostPosted: Wed Sep 15, 2004 8:39 pm    Post subject: Reply with quote

Voyager

Joined: 07 Jul 2004
Posts: 78

How many primary log files will be created by default for linear logging.
If I define 5 primary log files will it stop after reaching that value or it will continue up till 62.

Please revert
Back to top
View user's profile Send private message
Mallik
PostPosted: Wed Sep 15, 2004 10:25 pm    Post subject: Reply with quote

Acolyte

Joined: 29 Feb 2004
Posts: 53

Quote:
How many primary log files will be created by default for linear logging.


3 primary log files are created by default whether its linear or circular log and 2 secondary when the primary logs are full.

Quote:
If I define 5 primary log files will it stop after reaching that value or it will continue up till 62.


You will have only 5 active files + X number of sec files, where X is the number specified during QMGR creation.

Again as I mentioned in the previous post reading the the logging chapter will clarify most of your questions.
Back to top
View user's profile Send private message
Manikandan
PostPosted: Wed Sep 15, 2004 10:50 pm    Post subject: Reply with quote

Voyager

Joined: 07 Jul 2004
Posts: 78

I went thru' that document
My Questions are

In linear logging if logfiles get filled up new files are created upto the the max value,right.

Now,if I mention 5 primary log files during creation of the Qmgr will it stop increasing the primary log file and will 5 be taken as max?

If I have to use linear logging then should I always mention 62 to primary log file count so that once the files get filled up new ones are created.

If I do the above way my disk space would be wasted right 62 log files created during the Qmgr creation
Back to top
View user's profile Send private message
Nigelg
PostPosted: Wed Sep 15, 2004 10:55 pm    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

Quote:
In linear logging if logfiles get filled up new files are created upto the the max value,right.

Wrong.
Get away from the idea that there is a maximum number of logfiles created in linear logging; that only applies to circular logging. The maximums, Primary and Secondary, apply to the number of files in the active log. There is no limit on the number of log files created (up to 9999999) in the inactive log.[/quote]
Back to top
View user's profile Send private message
Manikandan
PostPosted: Wed Sep 15, 2004 11:06 pm    Post subject: Reply with quote

Voyager

Joined: 07 Jul 2004
Posts: 78

I did not get the point.Please brief me on linear logging.

I went thru the pdf.

I have defined 3 primary log files during Qmgr creation.Now the 3 have got filled up.

What happens??
Back to top
View user's profile Send private message
EddieA
PostPosted: Wed Sep 15, 2004 11:54 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
Now the 3 have got filled up.

What happens??

MQ creates a 4th. And when that fills up, MQ creates a 5th. Etc. Etc. Etc. Ad infinitum.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
Manikandan
PostPosted: Wed Sep 15, 2004 11:58 pm    Post subject: Reply with quote

Voyager

Joined: 07 Jul 2004
Posts: 78

Where it stops?
When secondary log files are used in linear logging if that is the case?

How should the archival of the logs happen so that the full recovery is possible
Back to top
View user's profile Send private message
PGoodhart
PostPosted: Thu Sep 16, 2004 4:13 am    Post subject: Reply with quote

Master

Joined: 17 Jun 2004
Posts: 278
Location: Harrisburg PA

If you search this site there are definative posts on linear logs. (And you'd have your answer now.)
Bottom line is you are limited only by the size of the file system. (Hard Drive)
You can remove unneeded log files to a backup medium, freeing space.
Read the Backup and Recovery Red Book from IBM. It is from the 2.1 version but the log behavior has not changed much.
_________________
Patrick Goodhart
MQ Admin/Web Developer/Consultant
WebSphere Application Server Admin
Back to top
View user's profile Send private message
hopfe_de
PostPosted: Mon Dec 06, 2004 11:54 pm    Post subject: Reply with quote

Acolyte

Joined: 03 Mar 2002
Posts: 58
Location: Frankfurt, Germany

A short question. What happens when logfile S9999999.LOG reached?
Back to top
View user's profile Send private message Send e-mail AIM Address
Nigelg
PostPosted: Tue Dec 07, 2004 12:40 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

Call IBM. You get a prize for using up 9999999 log files. Even at 1 a minute, that is slightly over 19 years.
It goes back to S0000000.LOG.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Dec 07, 2004 2:44 pm    Post subject: Reply with quote

Grand High Poobah

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

Get the support pack for linear logging archive. We use the java version.
It works fine.
Make sure that logging and archiving space are each separate from the other and separate from the queue space.

There is an absolute limit of 63 ACTIVE log files (primary + secondaries) quoted in the manuals. However with the Logfile size set to the max this is quite impressive. If the number of ACTIVE log files needs to be bigger than your set max (primaries + secondaries) the qmgr will die. So look for long running transactions and use rcdmqimg often enough.

There is no limit but for filespace of the number of INACTIVE log files.

Enjoy
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » Linear and circular Logging
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.