Andreas Gellrich wrote:
> Hi *,
> We face again a filled /var partition (200GB) due to an ever-growing
> SandboxDir directory on our RB.
>
> Apart form the fact that a large number of jobs was submitted at once,
> which fill up the dir even with moderate size InputSandBoxes, we also
> see old entries (order of months) which are still on disk.
>
> What is the right way to clean up /var/edgwl/SandboxDir ?
>
> Simply deleting old dirs lead earlier to problems with the JobControl
> system, probably due to mismatches of the various databases /state
> files.
>
> Experiences are welcome!
Run the attached script like this:
-------------------------------------------------------------------------------
nohup nice sh RB-sandbox-cleanup.sh > RB-sandbox-cleanup.log 2>&1 < /dev/null &
-------------------------------------------------------------------------------
It will truncate large files to 110 MB, logfiles to 16 MB, and remove any file
or directory that has not been touched since 3 weeks.
We have been running this script on the RBs at CERN.
Change the parameters as needed.
For LCG-2_7_0 a configurable cron job is foreseen at last...
|