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 » WebSphere Message Broker (ACE) Support » MQSI: TraceNode under AIX and logrotate

Post new topic  Reply to topic
 MQSI: TraceNode under AIX and logrotate « View previous topic :: View next topic » 
Author Message
schmun
PostPosted: Wed Jul 14, 2010 5:18 am    Post subject: MQSI: TraceNode under AIX and logrotate Reply with quote

Novice

Joined: 03 Jul 2009
Posts: 24

Hi

mqsiver: 6.0.2.8
aix: 6.1.0.0

Does someone knows how to rotate logs of TraceNodes without a restart of the execution group (EG) under AIX?

The problem is that the open file handle still hangs on the inode after renaming the file. Only by restarting the EG the handle is closed and a new file will be created.

copy and "cat /dev/null" to the original somtimes seems not to be the best option.

Thank you.

BR,
H.M.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Jul 14, 2010 5:23 am    Post subject: Re: MQSI: TraceNode under AIX and logrotate Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

schmun wrote:
Does someone knows how to rotate logs of TraceNodes without a restart of the execution group (EG) under AIX?


Are you using the Trace nodes to routinely log flow activity? That's not a good idea, for reasons you seem to have discovered. Trace nodes are intended as a debugging tool.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
schmun
PostPosted: Wed Jul 14, 2010 5:31 am    Post subject: Re: MQSI: TraceNode under AIX and logrotate Reply with quote

Novice

Joined: 03 Jul 2009
Posts: 24

Vitor wrote:

Are you using the Trace nodes to routinely log flow activity? That's not a good idea, for reasons you seem to have discovered. Trace nodes are intended as a debugging tool.


I know. But I can not influence this situation.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jul 14, 2010 5:31 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

There are some standard Unix mechanisms for dealing with files that need to be managed when the outputting program does not release the file handle - i.e. Unix shell scripting.

You should be planning or in the middle of a migration to Broker v7 or at least v6.1, as v6.0 goes out of support early next year.
Back to top
View user's profile Send private message
schmun
PostPosted: Wed Jul 14, 2010 10:33 pm    Post subject: Reply with quote

Novice

Joined: 03 Jul 2009
Posts: 24

mqjeff wrote:
There are some standard Unix mechanisms for dealing with files that need to be managed when the outputting program does not release the file handle - i.e. Unix shell scripting.

You should be planning or in the middle of a migration to Broker v7 or at least v6.1, as v6.0 goes out of support early next year.


Thank you.
The migration is still planed.

> i.e. Unix shell scripting.
Not very helpfull. I read about a logrotate package but the app that holds the filehandle has to support the SIG to release it.

But...you are rigtht. If the EG not support this i have to search the solution only with OS "tools".
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 » WebSphere Message Broker (ACE) Support » MQSI: TraceNode under AIX and logrotate
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.