Ana,
I guess that accomplishes the same thing as what I did yesterday.
Before you answered me with the correct method, I used bat to set the retention
time to 0 days for all the volumes containing only the cancelled job, after
marking them purged (too late for changing the Pool option as you suggested to
have an effect).
As I suspected, these volumes are being re-used immediately.
I also made the change you suggested so that any future jobs marked purged
should release the disk space as soon as they are purged.
Truncating will still allow the truncated files to remain until the Volume
Retention times out, but at least they are not taking up space.
Thank you very much for your responses.
From: Ana Emília M. Arruda [mailto:emiliaarr...@gmail.com]
Sent: Wednesday, December 17, 2014 9:49 AM
To: Polcari, Joe (Contractor)
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Purge question
Hi Joe,
I would like to add some information here. Instead of deleting these volumes,
if you have your pool configured for recycling, you can have your pools
configured with the "Action On Purge = truncate" option. This way, when you
purge a volume, Bacula will truncate it and avoid wasting of disk space.
Hope this helps.
Best regards,
Ana
On Tue, Dec 16, 2014 at 6:25 PM, Ana Emília M. Arruda
<emiliaarr...@gmail.com<mailto:emiliaarr...@gmail.com>> wrote:
Hi Joe,
If you delete these volumes from Catalog, yes, this will work. But if you just
purge or prune your volumes, they will still exist in your Catalog. So for
deleting the purged volumes the script should check if the VolStatus equals
Purged.
Regards,
Ana
On Tue, Dec 16, 2014 at 5:34 PM, Polcari, Joe (Contractor)
<joe_polc...@cable.comcast.com<mailto:joe_polc...@cable.comcast.com>> wrote:
So it is possible to write a script that will search the database, using the
volume names (filenames) and if it is not found, I can delete the volume.
The reason I’m asking is I had a very large backup job get cancelled because it
ran overtime. I’ve since extended the run rime but I still have the cancelled
job with a couple of hundred volumes and I would like to reclaim the diskspace.
From: Ana Emília M. Arruda
[mailto:emiliaarr...@gmail.com<mailto:emiliaarr...@gmail.com>]
Sent: Tuesday, December 16, 2014 12:24 PM
To: Polcari, Joe (Contractor)
Cc:
bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>
Subject: Re: [Bacula-users] Purge question
Hello Joe,
On Tue, Dec 16, 2014 at 2:14 AM, Polcari, Joe (Contractor)
<joe_polc...@cable.comcast.com<mailto:joe_polc...@cable.comcast.com>> wrote:
Just to clarify for myself,
As I understand it, if I purge a job, that means it will remove all reference
to the job and the files in the job from the database and mark all the volumes
used for that job as purged.
If that is correct then:
1. If I'm using disk based backups, the files will still be there.
Correct?
Correct. Your volumes are not marked purged and all your data will still be
there.
2. When the job runs again, it will re-use those volumes/filenames,
overwriting them. Correct?
When the job runs again, the recycling algorithm will be performed by Bacula.
If you have recycling correctly configured Bacula will re-use volumes. Doing
purge in jobs or files do not purge your volumes. So this will not let your
volumes available for recycling. You need to purge volumes and configure them
for recycling in your confs.
3. Will it do that before creating new files?
Bacula will just recycle a volume if it cannot create a new volume when
automatic label is configured. If you want Bacula recycles your volumes, then
you should limit the volumes in the pool. This way, when it is not possible for
Bacula create new volumes, then the volumes already in the pool will be
recycled.
4. Is this also true of a job that was cancelled?
When a job starts, Bacula reserves a volume and will begin writing to the
volume. For canceled jobs, you will need to purge or delete them. But this will
not delete or purge the volumes associated with it. Mainly because the volume
could have been used by other jobs before and there will be data on it.
Regards,
Ana
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net<mailto:Bacula-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/bacula-users
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users