Bacula-users

Re: [Bacula-users] how to recycle volumes ahead of time?

2009-06-16 22:43:04
Subject: Re: [Bacula-users] how to recycle volumes ahead of time?
From: Dirk Bartley <bartleyd2 AT chartermi DOT net>
To: Andreas Schuldei <schuldei+bacula-users AT spotify DOT com>
Date: Tue, 16 Jun 2009 22:25:47 -0400
Greetings

My understanding, and I've been wrong before, is that deleting a volume
(which is a file) from the catalog does not delete the file from the
storage.  

My recollection is that may have been one of the projects:
http://bacula.svn.sourceforge.net/viewvc/bacula/trunk/bacula/projects?view=markup
On a skim I could not find it, Oh well.

So I've scripted my way out of the problem.  One to search the
filestorage directory for "Volumes" and select from the catalog.  If any
"Files" are not "Cataloged volumes, delete them".  Another to search for
the oldest job on those volumes and delete it (it's been copied to
tape).  Then yet another to loop through doing it until there is 200GB
of space available.

I use postgres as well.  If you want to see them just let me know, it
uses php from a bash prompt.

Dirk


On Wed, 2009-06-17 at 01:49 +0200, Andreas Schuldei wrote:
> On Wed, Jun 17, 2009 at 1:28 AM, John Drescher <drescherjm AT gmail DOT com>
> wrote:
>         2009/6/16 Andreas Schuldei <schuldei
>         +bacula-users AT spotify DOT com>:
>         
>         > On Wed, Jun 17, 2009 at 12:48 AM, francisco javier funes
>         nieto
>         > <esencia AT gmail DOT com> wrote:
>         >>
>         >> Maybe this can help you ..
>         >>
>         >>
>         >>
>         
> http://www.bacula.org/en/dev-manual/Automatic_Volume_Recycling.html#SECTION001180000000000000000
>         >
>         > should that even work if we dont use tape but backup to hard
>         disk?
>         > because we dont see it happening. (bacula keeps creating new
>         files and the
>         > old ones seem to be kept around forever.)
>         >
>         
>         
>         Yes. All media is treated the same as far as recycling is
>         concerned,
>         
> 
> Then the system does not behave as expected in my case, right? the
> files SHOULD have been reused, eventhough there is space left on the
> device?
> how can i debug this?
> 
>  
> 
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing 
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________ Bacula-users mailing list 
> Bacula-users AT lists.sourceforge DOT net 
> https://lists.sourceforge.net/lists/listinfo/bacula-users


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users