Author |
Message
|
Manikandan |
Posted: Wed Sep 15, 2004 3:10 am Post subject: Linear and circular Logging |
|
|
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 |
|
 |
Nigelg |
Posted: Wed Sep 15, 2004 4:41 am Post subject: |
|
|
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 |
|
 |
Mallik |
Posted: Wed Sep 15, 2004 11:53 am Post subject: |
|
|
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 |
|
 |
hguapluas |
Posted: Wed Sep 15, 2004 3:15 pm Post subject: Don't forget size |
|
|
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 |
|
 |
Manikandan |
Posted: Wed Sep 15, 2004 8:39 pm Post subject: |
|
|
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 |
|
 |
Mallik |
Posted: Wed Sep 15, 2004 10:25 pm Post subject: |
|
|
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 |
|
 |
Manikandan |
Posted: Wed Sep 15, 2004 10:50 pm Post subject: |
|
|
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 |
|
 |
Nigelg |
Posted: Wed Sep 15, 2004 10:55 pm Post subject: |
|
|
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 |
|
 |
Manikandan |
Posted: Wed Sep 15, 2004 11:06 pm Post subject: |
|
|
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 |
|
 |
EddieA |
Posted: Wed Sep 15, 2004 11:54 pm Post subject: |
|
|
 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 |
|
 |
Manikandan |
Posted: Wed Sep 15, 2004 11:58 pm Post subject: |
|
|
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 |
|
 |
PGoodhart |
Posted: Thu Sep 16, 2004 4:13 am Post subject: |
|
|
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 |
|
 |
hopfe_de |
Posted: Mon Dec 06, 2004 11:54 pm Post subject: |
|
|
 Acolyte
Joined: 03 Mar 2002 Posts: 58 Location: Frankfurt, Germany
|
A short question. What happens when logfile S9999999.LOG reached? |
|
Back to top |
|
 |
Nigelg |
Posted: Tue Dec 07, 2004 12:40 am Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Tue Dec 07, 2004 2:44 pm Post subject: |
|
|
 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 |
|
 |
|