IT infrastructure›Computing
#34334
Cleanup of /virgoLog and /virgoData disk areas
In order to prevent (as far as possible) the fill up of the /virgoLog and /virgoData disk areas, which are critical for Detector control, a cronjob has been (re)introduced (it was there in the past) in the olmonitor dedicated machine. At the moment it is running as virgorun user, this will be probably modified soon.
The actions taken (for the moment) are:
- Removal of core and .car files older than 5 days
- Removal of log files older than one year (no access in writing for one year)
The corresponding crontab file looks like this:
10 10 * * * find /virgoLog -name 'core' -mtime +5 -exec rm -f {} ;
15 10 * * * find /virgoLog -name 'core.[0-9]*' -mtime +5 -exec rm -f {} ;
20 10 * * * find /virgoData -name 'core' -mtime +5 -exec rm -f {} ;
25 10 * * * find /virgoData -name 'core.[0-9]*' -mtime +5 -exec rm -f {} ;
30 4 * * * find /virgoLog -name '*.*log' -mtime +365 -type f -exec rm -f {} ;
35 4 * * * find /virgoLog -name '*.*log.[1-9]' -mtime +365 -type f -exec rm -f {} ;
45 4 * * * find /virgoLog -name '*.car' -mtime +5 -type f -exec rm -f {} ;