PowerHA for AIX

 View Only
Expand all | Collapse all

Log rotation in PowerHA7

  • 1.  Log rotation in PowerHA7

    Posted Wed April 08, 2015 10:19 AM

    Originally posted by: linux.amrit


    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



  • 2.  Re: Log rotation in PowerHA7

    Posted Wed April 08, 2015 11:30 PM

    Originally posted by: POWERHAguy


    Hmm, I know there is exact rotation and it differs by log. I don't know that it can be changed though off the top of my head. I know the log directories can be changed but don't recall anything on the number of logs. I'll see if I can look into it.



  • 3.  Re: Log rotation in PowerHA7

    Posted Sat October 24, 2015 07:26 AM

    Originally posted by: fiaz54


    HACMP uses clcycle command for log rotation .

    /usr/es/sbin/cluster/utilities/clcycle