Hello Dave,
The prune command will not prune volumes that hadn't its volume retention
period expired (this means LastWritten+VolRetention < current datetime when
the prune command is issued).
Therefore, If Bacula needs to a volume but there is no available volume
(status=append) or it cannot create a new one in the pool or it cannot pick
up one from the/a Scratch pool, *and* the "Autoprune = yes" ans "Recycle =
yes" are configured for the pool resource, then a volume that has no more
jobs/files associated to it can be eligible for recycling (this means that
bacula will reuse the volume. The status=purged is temporary in this case
only for the algorithm purposes). In this case, you can have the "Action on
Purge = Truncate" configured in your pool definition, so bacula will
truncate the volume before reusing it.
If you want to manually prune volumes that has no more jobs/files
associated to it, I would recommend you to configure your Volume retention
<= Job retention <= File retention. This way, you will be able to manually
prune the volumes when jobs/files are pruned.
It is strongly recommended to use a manual/scheduled script for the prune
task (an Admin Job can be used to regularly run this script). Also that
this could be done when no jobs are running (you can do this in a by pool
basis when the pool is not being used by any job).
If you want to use the prune command for the existing 50 volumes, make sure
to prune the jobs (consequently the files will be pruned) before and that
the retention period for these volumes had expired. If this is not the
case, you can change the Volume retention value in the configuration file
and update this new value to all the exiting volumes using the update
command from bconsole. Then you will be able to manually prune them.
Hope this helps.
Best regards,
Ana
On Tue, Aug 9, 2016 at 3:15 PM, dave <bacula-fo...@backupcentral.com> wrote:
> Dear Ana,
>
> thanks for your reply.
>
> I deleted all the "large volume" job entries in the Catalog and tested
> with.
>
> "list jobs" and "list jobmedia". so far so good ! then I ran "prune
> expired volume yes"
>
> well it did mark about 5 volumes as "Purged". But there are 50 others that
> should be marked as purged as well. And it did not. And I do not get it.
>
> so - I guess there must still be some entries in the Catalog but it seems
> I cannot find it ...
>
> What am I missing here ?
>
> I know ...
> Volume Retention = time-period-specification
> Note, when all the File records have been removed that are on the Volume,
> the Volume will marked Purged (i.e. it has no more valid Files stored on
> it), and the Volume may be recycled even if the Volume Retention period has
> not expired.
>
> thanks
> --> David
>
> +----------------------------------------------------------------------
> |This was sent by d...@espros.com via Backup Central.
> |Forward SPAM to ab...@backupcentral.com.
> +----------------------------------------------------------------------
>
>
>
> ------------------------------------------------------------
> ------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning reports. http://sdm.link/zohodev2dev
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users