Thanks for coming back to this old question. To better understand what is 
happening I have further questions:

All my pools have ScratchPool = “Scratch" (the default scratch pool), but no 
RecyclePool. Interestingly the volumes in the pools to NOT have the scratch 
pool set (shouldn’t they have Scratch as scratch pool when the pool has 
ScratchPool = “Scratch”?)

When I list all purged volumes I just see 3. Although there is a lot of 
recycling going on when backups jobs are running. It seems that in my setup 
volumes get purged and recycled only during backup jobs when further volumes 
are required to be written. The volumes stay in the pool where they were 
created.

I have read the documentation on recycling volumes and RecyclePool. It seem 
that If I were to set RecyclePool=“Scratch” in my pools that purged volumes are 
first placed in the “Scratch” pool and will only be used from there if no 
further volumes can be purged during the backup job. Would that mean that 
during a backup job when a new volume is needed that firtst all old volumes 
that are expired get purged and places in Scratch and then a volume is fetched 
from Scratch to be able to continue? 

Also it seems that this way a volume may be moved from pool A to pool Scratch 
and later to pool B. As my disk volumes have filenames reflecting the pool 
characteristics this might be confusing, or will the disk volumes be renamed on 
disk when moved to a different pool?

If not, then I would need to have an individual scratch pool for each pool, so 
that recycled volumes stay with their original pool, but get moved out of the 
pool when expired, and later go back to the same pool when a new volume is 
needed?

> On 27. Jan 2024, at 12:36, Radosław Korzeniewski <rados...@korzeniewski.net> 
> wrote:
> 
> Hello,
> 
> pon., 20 lis 2023 o 00:27 Justin Case <jus7inc...@gmail.com 
> <mailto:jus7inc...@gmail.com>> napisał(a):
> Hi there,
> 
> I realise that my short term pool will have more volumes than actually 
> necessary, as I started the backups earlier than on the day per month when 
> fulls are taken. So this pool will have at least two fulls in the first 
> month. In subsequent months there will only be the need for 1 full per month.
> 
> Now I had this thought: may I reduce the MaximumVolumes of that pool after 2 
> months when the superfluous first full has been purged? Explicitly this does 
> mean I would set MaximumVolumes of the pool to a number that is lower than 
> the number of volumes currently help in this pool. How would Bacula react? 
> would it throw the oldest purged volumes into the Scratch pool? Or what else?
> 
> MaximumVolumes parameter will prevent automatic volume labeling or moving 
> existing volume from Scratch pool only. No other procedures will be performed 
> when the number of volumes exceeds this limit. So, unless configured by 
> different parameters it won't move volumes out of the pool automatically. If 
> you set up a recycle pool in your pool configuration then Bacula will always 
> put recycled volumes in this pool, regardless of MaximumVolumes set. It is an 
> independent parameter.
> Setting both on your pool will allow you to automatically lower the number of 
> volumes in the pool and maintain a maximum number of them.
> 
> best regards
> -- 
> Radosław Korzeniewski
> rados...@korzeniewski.net <mailto:rados...@korzeniewski.net>
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to