ooooh, this is really brilliant:
for dir in /tmp /var/tmp
(from the wl-tmp-cleanup script) ... I guess these HARD-CODED DIRECTORY
PATHS never got excised from this script because somebody left the old
edg-wl-purgeStorage script around, fooling us in to thinking that nobody
cared about cleanup on an RB. So we never suspected that there was
another script that was actually supposed to work, but still didn't.
if you have your sandbox dirs in, oh, say, /var/edgwl ...
find: jobcontrol: No such file or directory
find: logging: No such file or directory
find: logmonitor: No such file or directory
find: networkserver: No such file or directory
find: proxyrenewal: No such file or directory
find: workload_manager: No such file or directory
find: x509*: No such file or directory
find: SandboxDir: No such file or directory
find: SandboxDir: No such file or directory
find: jobcontrol/cond: No such file or directory
find: jobcontrol/submit: No such file or directory
Steve, you want to submit the bug??
J "of course I could still be wrong" T
disclaimer: standard grain of salt not included. filling may be hot
when heated. use of this device does not enable wearer to fly. yes, i
am still on vacation.
[root@bosheks log]# rpm -qi $(!!)
rpm -qi $(rpm -q -f /opt/edg/sbin/wl-tmp-cleanup.sh )
Name : wl_tmp_cleanup Relocations: /opt/edg
Version : LCG Vendor: (none)
Release : 1 Build Date: Sat 04 Oct 2003
07:16:06 PM CEST
Install Date: Tue 01 Mar 2005 06:32:18 PM CET Build Host:
pcitadc18.cern.ch
Group : Grid Source RPM:
wl_tmp_cleanup-LCG-1.src.rpm
Size : 928 License: BSD License
Signature : (none)
URL : http://marianne.in2p3.fr/datagrid/
Summary : temporary RPM that cleans up WL files and subdirectories
under /tmp
Description :
Temporary RPM that cleans up WL files and subdirectories under /tmp and
/var/tmp,
avoiding unwanted cleanup by the standard "tmpwatch" cron job.
Steve Traylen wrote:
> Hi,
>
> This morning I arrived at work to find a disk full alarm for an
> RB.
>
> Looking at the purge scripts.
>
> /opt/edg/sbin/edg-wl-purgeStorage \
> -l /opt/edg/var/log/edg-wl-purgeStorage.log \
> -t 604800 -p /var/edgwl/SandboxDir
>
> returns immediately apparently having done nothing. An empty log
> file remains.
>
> 604800 is a week but we clearly have files much older
>
> e.g
>
> find /var/edgwl/SandboxDir/ -type f -ctime +20
>
> returns many files as does
>
> find /var/edgwl/SandboxDir/ -type f -ctime +100
>
> so this looks like it has never worked here.
>
> Since I need to clean space now any problem with doing
>
> find /var/edgwl/SandboxDir -type f -ctime +100 -exec rm -f {} \;
>
> Steve
>
>
|