> Am 18.05.2018 um 17:23 schrieb Noel Benitez <nbeni...@salk.edu>:
> 
> Hi guys,
>  
> The "accounting" file on our sge master has a filesize of 20Gb.
>  
> Is there a recommended way of purging this file short of using "cat /dev/null 
> > accounting"  ?

Yes:

: > accounting

Jokes aside, you can either use logrotate or the supplied script:

$SGE_ROOT/logchecker.sh

Usually I copy it to /usr/sge/default/common/ to make my changes and then use 
cron jobs on the nodes and the qmaster.

qmaster:

$ cat /etc/cron.d/gridengine
#
# Special cron-job to reduce the size of the SGE messages/accounting  files.
#
5 1 * * 0       sgeadmin        /usr/sge/default/common/logchecker.sh 
-action_on 1

nodes:

$ cat /etc/cron.d/gridware
5 1 * * 0       sgeadmin        /usr/sge/default/common/logchecker.sh 
-action_on 2 -execd_spool /var/spool/sge

The default in the script itself I set to:

UNCONFIGURED=no
ACTION_ON=2
ACTIONSIZE=1024
KEEPOLD=3

Note: to read old accouting files in `qacct` on-the-fly you can use:

$ qacct -o reuti -f <(zcat /usr/sge/default/common/accounting.1.gz)

-- Reuti


>  
> Thanks for any help.
>  
>  
>  
>  
>  
> -Noel Benitez, Salk iT Dept.
>  
>  
>  
> _______________________________________________
> users mailing list
> users@gridengine.org
> https://gridengine.org/mailman/listinfo/users


_______________________________________________
users mailing list
users@gridengine.org
https://gridengine.org/mailman/listinfo/users

Reply via email to