On Fri, Jul 22, 2005 at 01:19:50PM +0100, Kostas Georgiou wrote:
> On Fri, Jul 22, 2005 at 11:17:05AM +0100, Ross, D (Derek) wrote:
>
> > > Ah and i was about to delete the pool to recover the space :)
> > > Is there a reason why dcache doesn't delete the files automatically?
> >
> > It does normally, this maybe related to the problem where the pool starts
> > writing errors in to the log file about deleteing files.
>
> I see, i deleted everything from the pools leaving only 13GB in /pnfs
> for some reason even after deleting everything by rep rm ... dcache
> reports that ~500GB are still in use :(
It seems that was caused by my script that missed some files :(
Here is the improved and simplified if anyone needs to use it
at some point.
Cheers,
Kostas
#!/bin/bash
trash=/opt/pnfsdb/pnfs/trash/2
pools="sedsk00_1 cmsdsk00_1 cmsdsk00_2"
for pool in $pools; do
echo "cd $pool"
for file in `find $trash -type f -print0 | xargs -0 grep -sl $pool`; do
echo "rep rm ${file##*/} -force"
done
echo ".."
done
echo logoff
|