On 12/9/21 14:40, Larry Rosenman wrote:
 >>
>> "MaximumVolume = 0" means unlimited, so as I said Bacula will just
>> continue to create more volumes.
>>
>>
> That's not my experience it recycles/reuses all the other volumes.

Hi Larry,

OK, that is interesting, my experience has been different. Is it possible that 
you have changed something regarding
AutoPrune, or Pool settings in your environment recently?

I see the main manual's Recycling Algorithm section tells you the opposite of 
what I told you, but there is a note at the end
describing what I had said. It is from Alan Brown, long time, and 
well-respected member of the Bacula community:

----8<----
If a pool doesn’t have maximum volumes defined then Bacula will prefer to 
demand new volumes over forcibly purging older volumes.
----8<----


What is the exact behavior you are seeing?  Just lots of purged volumes that 
you listed? Then what is happening? Is Bacula
creating new volumes instead of recycling and then reusing these purged volumes?

If Bacula is creating new volumes in your environment (as I suspect), try 
setting the MaximumVolumes = 787 (or less) in your
"Default" Pool, then in bconsole, "reload" the Director and then "update 
pool=Default" to force any changes to the pool to be
updated. (some pool changes require this additional step)

Then, when you then run some new jobs, Bacula will finish using any volumes set 
to append until they reach the
MaximumVolumeBytes set in the Default pool, and then Bacula should not create 
any new volumes and begin to use the ones you
listed with VolStatus=Purged



Another thought I had:

What if, in fact, Bacula is not creating new volumes (your logs will show), and 
is re-using volumes as you want/expect, then
what if your Retention periods are low enough that Bacula is pruning, 
recycling, and re-using volumes and it is just never
needing more media so these Purged volumes you have identified are just left in 
limbo?  Yes, I know, this goes against the
recycling algorithm described in the main manual, but it is a complex process 
and I have seen stranger things when it comes
to pruning and recycling. :)

Hope this helps.

Best regards,
Bill

--
Bill Arlofski
w...@protonmail.com



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

Reply via email to