Author |
Message
|
schmun |
Posted: Wed Jul 14, 2010 5:18 am Post subject: MQSI: TraceNode under AIX and logrotate |
|
|
 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 |
|
 |
Vitor |
Posted: Wed Jul 14, 2010 5:23 am Post subject: Re: MQSI: TraceNode under AIX and logrotate |
|
|
 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 |
|
 |
schmun |
Posted: Wed Jul 14, 2010 5:31 am Post subject: Re: MQSI: TraceNode under AIX and logrotate |
|
|
 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 |
|
 |
mqjeff |
Posted: Wed Jul 14, 2010 5:31 am Post subject: |
|
|
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 |
|
 |
schmun |
Posted: Wed Jul 14, 2010 10:33 pm Post subject: |
|
|
 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 |
|
 |
|