Author |
Message
|
Anirud |
Posted: Wed Mar 16, 2005 1:33 pm Post subject: LogPrimaryFiles on Linux |
|
|
 Master
Joined: 12 Feb 2004 Posts: 285 Location: Vermont
|
Environment:
MQ: 5.3.0.7
OS: Red Hat Enterprise Linux AS release 3 (Taroon Update 3)
Kernel 2.4.21-20.ELsmp on an i686
The qm.ini file (and mqs.ini as well) shows the LogPrimaryFiles=3 and LogSecondaryFiles=2.
When I check under /var/mqm/log/qmgrname/active, I see 64 files (S0000000.LOG ... S0000063.LOG). Is this a common behaviour?
AFAIK it should create the same number of files given in qm.ini. Am I missing anything? (I happened to check on one of our AIX machines and it shows the same number of files that are in the qm.ini. )
I am getting a 2102 because of this.
Coming to the actual issue, I was having issues because of this and lots of FFST's were genereated.
The header looks like this:
+-----------------------------------------------------------------------------+
| |
| WebSphere MQ First Failure Symptom Report |
| ========================================= |
| |
| Date/Time :- Wednesday March 16 13:52:50 EST 2005 |
| Host Name :- *.com (Linux 2.4.21-20.ELsmp) |
| PIDS :- 5724B4104 |
| LVLS :- 530.7 CSD07 |
| Product Long Name :- WebSphere MQ for Linux for Intel |
| Vendor :- IBM |
| Probe Id :- HL006009 |
| Application Name :- MQM |
| Component :- hlgWriteLogRecord |
| Build Date :- May 27 2004 |
| CMVC level :- p530-07-L040527 |
| Build Type :- IKAP - (Production) |
| UserID :- 00000011 (mqm) |
| Program Name :- amqzllp0 |
| Thread-Process :- 00008164 |
| Thread :- 00000001 |
| QueueManager :- QMA |
| ThreadingModel :- LinuxThreads |
| LD_ASSUME_KERNEL :- 2.4.19 |
| Major Errorcode :- hrcE_LOG_FULL |
| Minor Errorcode :- OK |
| Probe Type :- MSGAMQ6709 |
| Probe Severity :- 2 |
| Probe Description :- AMQ6709: The log for the Queue manager is full. |
| FDCSequenceNumber :- 723 |
| |
+-----------------------------------------------------------------------------+
Went looking for the details of the probe ID at ibm.com and that didn't help me. I stopped all the applications connecting to the qmgr, recycled the qmgr. I still get the same errors (without even starting the applications).
my FS looks like this
/dev/rootvg/mqmvol 1015752 470977 492347 49% /var/mqm
/dev/rootvg/mqmlogvol
495844 271988 198256 58% /var/mqm/log
/dev/rootvg/mqmerrorvol
1015496 4937 958131 1% /var/mqm/errors
I know the first suggestion will be to increase the log space but, there is not much space left on this box. As this is a test server I will have to fight for it. Before increasing the log space, I am trying to know why it is showing 64 log files.
Note: This is a new server and the current qmgr is the first and only qmgr which I created with the default values (3 Primary and 2 Secondary log files).
Any help would be appreciated.
Thanks. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Mar 16, 2005 1:50 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
you did not specify whether you are running in linear logging or circular logging. It will make a world of difference
If running in linear logging you may want to look at one of the support packs for offloading logs that are no longer active. This should free up space. Personally I use the java support pack for this purpose. (MS67? bad memory)
If you are running circular logging you are in whole different lot of trouble.
Check for a long running transaction and have it killed.
Enjoy  |
|
Back to top |
|
 |
Anirud |
Posted: Wed Mar 16, 2005 2:42 pm Post subject: |
|
|
 Master
Joined: 12 Feb 2004 Posts: 285 Location: Vermont
|
Thanks for the response.
I am running in circular logging.
I am trying to find the reason for the 64 Primary Log files, in the first place (even though I didn't ask for it). This machine was built from scratch and I am the only one working on it with respect to WMQ.
Thanks. |
|
Back to top |
|
 |
Anirud |
Posted: Thu Mar 17, 2005 6:23 am Post subject: |
|
|
 Master
Joined: 12 Feb 2004 Posts: 285 Location: Vermont
|
Oops ! I just saw that this thread is running in the General Discussion Forum.
Moderator: Could you please move this to General Support? |
|
Back to top |
|
 |
Anirud |
Posted: Thu Mar 17, 2005 7:56 am Post subject: |
|
|
 Master
Joined: 12 Feb 2004 Posts: 285 Location: Vermont
|
I just verified that the max., number of log files (primary + secondary) is 63 but, I am seeing 64 log files on this box. Not sure why.
I am thinking of deleting and recreating the queue manager.
Any comment? |
|
Back to top |
|
 |
kevinf2349 |
Posted: Thu Mar 17, 2005 9:21 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Quote: |
I am thinking of deleting and recreating the queue manager |
That is about all you can do. You need to calculate the number of persistent messages you are expecting and size your log files accordingly
I am pretty sure I saw a formula somewhere but can't for the life of me think where.  |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Mar 17, 2005 4:25 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
kevinf2349 wrote: |
I am pretty sure I saw a formula somewhere but can't for the life of me think where.  |
Its in the Sys Admin Guide.
A better formula is:
Just make the logs as big as MQ will allow. Almost any computer nowadays has more than enough disk space to hold the max logs MQ will allow (obviosuly for Linear you will have to offload the old ones). _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
Anirud |
Posted: Wed Mar 23, 2005 8:30 am Post subject: |
|
|
 Master
Joined: 12 Feb 2004 Posts: 285 Location: Vermont
|
Peter, kevinf and fjb_saper... thanks for the feedback.
This is in our development environment and this is what I did...
I deleted the queue manager QMA and recreated it with the default (3 Primary and 2 Secondary) circular logs. I checked the logs and there were 3 log files under /var/mqm/log/QMA/active.
Then, I started an application to put some messages (persistent) to QMB. The remote QMgr QMB was down for some other reason and the transmission queue QMB was filling up. I left the application to run overnight to see if it will reproduce the initial issue (64 log files). This morning I checked the file system and /var/mqm and /var/mqm/errors were full. There were FDC's with ProbeID AD031001 ( resource problem) which is acceptable. I checked the logs and again, I see 64 files.
Is this a normal behaviour? or is this a bug?
Any help would be appreciated.
Thanks. |
|
Back to top |
|
 |
vennela |
Posted: Wed Mar 23, 2005 10:15 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Moved it.
Maybe you should open a PMR |
|
Back to top |
|
 |
Anirud |
Posted: Tue Mar 29, 2005 7:13 am Post subject: |
|
|
 Master
Joined: 12 Feb 2004 Posts: 285 Location: Vermont
|
Update:
Deleted and recreated the queue manager. Increased the size of the filesystem and since then no issues and the QMgr looks to be happy (the logs as well).
Vennela,
Thanks. I guess I will have to open a PMR if there is an issue again.
Thank you guys. |
|
Back to top |
|
 |
sairam |
Posted: Mon Apr 11, 2005 7:05 am Post subject: |
|
|
Centurion
Joined: 07 Mar 2005 Posts: 120
|
Can we increase the log file size to > 16384 ? Default is 1024 , can i increase it to 10240, should it be in multiples of anything?? |
|
Back to top |
|
 |
|