In response to Beren <[EMAIL PROTECTED]>:

> > You should never have to.  PURGED and RECYCLED volumes will automagically
> > be made appendable as needed.
> 
> I'd like for it to purge volumes older than two weeks so I know what
> tapes I can use. Is it possible to forecast which tapes bacula will
> purge/recycle?

It's perfectly possible.  First, look at your various retention times.
If all the jobs on a volume have been purged, that volume will become
purged.  If the volume retention time is reached, the volume will become
purged, and any jobs associated with it will be purged as well.  Easy.

When Bacula needs a volume, it does 3 things (in order):
1) Looks for any unused volumes
2) If #1 fails, finds the oldest purged volume and recycles it for reuse
3) if #1 and #2 fails, requests operator intervention.

Note that this is an oversimplification.  This process can change based
on your configuration.  Refer to the docs for the full process.

> > There's a good reason, and it rhymes like a carefully crafted poem.
> > Did you read the section of the docs posted below?  If you did, you'd
> > probably understand the rhyme and reason.
> 
> Step four of the recycling algorithm says "Try recycling any purged
> Volumes." - This is very worrying. It should be "Try recycling any
> purged volumes with InChanger=1"

That's a potential improvement.

> > I suspect your pools are not set up optimally.
> 
> I just have the one pool:
> 
> Pool {
>   Name = Daily
>   Pool Type = Backup
>   Recycle = yes                       # Bacula can automatically recycle 
> Volumes
>   AutoPrune = yes                     # Prune expired volumes
>   Volume Retention = 12 days          #
> #  Volume Use Duration = 23h
>   Accept Any Volume = yes             # write on any volume in the pool
>   Recycle Current Volume = Yes
> }

Without knowing what your requirements are, it's hard to say for sure,
but I would suspect that configuration is over-simplified and part of the
reason you're having trouble.

Note that RecycleCurrentVolume respects retention periods.  If your job
and file retention periods are too long, Bacula won't recycle the volume.

> > The only shortcoming I see at this time, is that Bacula has no knowledge
> > of the availability of tapes.  It would be nice if there was a flag for
> > "offsite" or similar to let Bacula know that a volume exists, but isn't
> > available for backup (can be for restore, however).
> 
> The "Archive" status might be what you need. Although when you do a
> restore from it, you've only got one shot at it before bacula purges
> everything you've just spent hours merging in because it's outside of
> the retention period.

That's not true.  The trick is to bscan the tape in, then manually reset
the retention time on the volume so everything isn't purged the next time
you do anything.  You can then work with the volume as much as needed and
manually purge it when you're finished.

-- 
Bill Moran
Collaborative Fusion Inc.


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to