Log rotation in PowerHA7

Hi All,

I have a situation here ...
HACMP is configured with application monitoring script, which is generating messages .... which is running every minute ...
And every minute when monitoring script run, one one log file is generating .... and this log file is rotating ...
which is rotating for each 8th file ... means we have logs only for last 8minutes ....
How to increase this number .. so that it can keep atleast one day file ...
I checked .. logrotation ... on server ... but didn't find much ...

For e.g. RG = sap_rg
Monitoring Script = mon_sap_rg
and when it's run it generate clappmon.mon_sap_rg.sap_rg.log, clappmon.mon_sap_rg.sap_rg.log.1, .... clappmon.mon_sap_rg.sap_rg.log.7
Again it rotate , so we have one last 8mins log .. i want to have one day's log , any help ?

is there any special log-rotation mentained by HA ?

Thanks in Advance,
Amrit

You can use /usr/es/sbin/cluster/utilities/clcycle which is a HACMP utility. Normally it is started via crontab and without parameters (it only cycles hacmp.out). But one can use it with option cluster.log and it will cycle cluster.log to cluster.log.1 and cluster.log.1 to cluster.log.2 and so on.

Also check the contents of the monitoring scripts themselves to insure they are not managing the logs.

1 Like