Virgo Logbook
UTC--:--:--
GPS-
Reports
Online Computing›Virgo Platforms and Services #51341

Cleanup of /virgoLog disk area (files older than 2 years now available in /data/prod/logs/virgoLog)

From the time the /virgoLog area was expanded a cleanup procedure was not put back in operation. In the last weeks /virgoLog occupation went over several time to 90% and was time to restore such a procedure.

So, in order to prevent (as far as possible) the fill up of the /virgoLog area, a cronjob has been (re)introduced (it was there in the past) in the olmonitor dedicated machine running as virgorun user.
The actions taken are:
- Removal of core files older than 5 days
- Relocation of log files older than two year (no access in writing for two year) into the dedicated area /data/prod/logs/virgoLog (in accordance with the general reorganization and naming convention of the /data areas)

The main corresponding entries of the crontab file looks like this:

  • 5 10 * * * find /virgoLog -name '*.*log*' -mtime +730 -type f -exec cp --parent -p {} /data/prod/logs/ \;
  • 50 10 * * * find /virgoLog -name '*.*log*' -mtime +730 -type f -exec rm -f {} \;

After the first occurrence of this cleanup, the /virgoLog occupation is back to a more healty value of 62%

fcarbogn@ctrl25[/virgoLog]: df -k .
Filesystem          1K-blocks      Used Available Use% Mounted on
virgodata:/virgoLog 361112576 210048000 132718592  62% /virgoLog

So, main info, if you are looking for log files older than 2 years, you can find them, from now on, under /data/prod/logs/virgoLog (with the same directories structure )