[thredds] THREDDS prevents freeing disk space

Dear

I'm keeping several days archive on my server.
Every time a new run is issued, I delete an older one.

When I do "rm" on the older files, it's no longer shows up with "ls".
However TDS is keeping the file busy, and disk space is not freed.

I can see this thanks to "lsof"

$ lsof

> java       3436    tomcat7   44r      REG                8,1 403204480
> 393349 /home/upload/data/france/2013/01/03/06/rasp-france_2013-01-04_16:00:
> 00.nc (deleted)
> java       3436    tomcat7   45r      REG                8,1 403204480
> 393313 /home/upload/data/france/2013/01/02/06/rasp-france_2013-01-03_11:00:
> 00.nc (deleted)
> java       3436    tomcat7   46r      REG                8,1 403204480
> 393288 /home/upload/data/france/2013/01/01/06/rasp-france_2013-01-02_06:00:
> 00.nc (deleted)
> java       3436    tomcat7   47r      REG                8,1 40



To free disk space, I need to restart tomcat.

So, is there a way to notify THREDDS a dataset will be deleted, so it
closes the files before deletion ?



I'm using TDS 4.3, with tomcat 7, openjdk, over ubuntu 12.04 x64.
Dataset configuration :

<datasetScan name="RASP" ID="rasp" path="rasp"
> location="/home/upload/data/">
>     <metadata inherited="true">
>       <serviceName>all</serviceName>
>       <dataType>Grid</dataType>
>     </metadata>
>     <filter>
>       <include wildcard="*.nc"/>
>     </filter>
>   </datasetScan>

can be seen there : http://data2.rasp-france.org/thredds/


Regards


-- 
Nicolas BALDECK
Prévisions Météo libres et gratuites pour le Vol Libre et le Vol à Voile.
http://rasp-france.org/
  • 2013 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the thredds archives: