Yes, agreed. I expressed that very badly. I actually use
variants of that command to pick out files recursively that
are older than 28 days. I don't just throw jobs away!
I have noted that the purger cron job is suspect, but
I wasn't aware of Maarten's code. I'll have a look at that
now.
Cheers,
Barry.
On Fri, 5 Jun 2009, Maarten Litmaath wrote:
> Date: Fri, 5 Jun 2009 14:33:34 +0200
> From: Maarten Litmaath <[log in to unmask]>
> Reply-To: LHC Computer Grid - Rollout <[log in to unmask]>
> To: [log in to unmask]
> Subject: Re: [LCG-ROLLOUT] looking for service notes on glite WMS
>
> Mischa Salle wrote:
>
>> On Fri, Jun 05, 2009 at 10:42:00AM +0100, Dr Barry MacEvoy wrote:
>>
>>> 2. what is the automatic scheme for cleaning up the sandbox area
>>>
>>> If people collect their jobs, the directories are ultimately purged.
>>> When you really find your disk bulging:
>>>
>>> find . -mtime +28 -exec rm -rf {} \;
>>>
>>> or some variant thereof. Brutal, but effective.
>>
>>
>> Please DON'T DO THIS! Consider the situation
>> DIR1/DIR2/FILE
>> When FILE is accessed, the time stamp of DIR2 is changed, but not that
>> of DIR1. For cleaning your disks it's indeed quite effective (-:
>> Slightly better solution:
>> find . -type f -mtime +28 -exec rm -f {} \;
>> Use of a rm -rf without knowing what you're deleting is IMHO a very
>> unhealthy thing to do...
>
> Indeed! There is an rpm that can be (and is being) used instead:
>
> http://litmaath.home.cern.ch/litmaath/cleanup-sandboxes/
>
> The /etc/cron.d/glite-wms-purger.cron job should remove anything older
> than 15 days, but there have been issues with that code, so one may
> want to install the extra rpm (and configure it, read the documentation).
>
--------------------------------------------------------------
Dr Barry MacEvoy
High Energy Physics Group
Imperial College London
Blackett Laboratory
Prince Consort Road
LONDON SW7 2BW
England
T: +44 20 7594 7802
F: +44 20 7823 8830
M: 07767 323871
http://www.hep.ph.ic.ac.uk/cms/people/based_at_imperial.html
http://www.hep.ph.ic.ac.uk/e-science/people/macevoy.html
--------------------------------------------------------------
|