Russell - I've never configured for ActionOnPurge=Truncate. I just did that and purged a few volumes and none of them truncated. I'm running 16.2.4. So either this is another bug or I also have it configured incorrectly. I'm not going to spend much time on it, but I'll take a look at the source code and see if I can figure out where it's broken.
Having said that, the reason I've never configured for it is that it didn't look very useful to me. Maybe because of my configuration? I can see where this could save precious storage space in a system that had lots of large, expired/empty volumes sitting around. If the AI consolidation had been properly pruning the volumes I'm guessing that would not have been the case. That's how I also discovered that bug, although I didn't run out of space because I had set the max volume limit at what I thought was a reasonable level and it his that limit rather quickly. Particularly if you are set up to consolidate every day, you are constantly creating stale volumes that take up space and don't get recycled. My recommendations ... 1) Implement that bug fix script to prune the volumes after every Consolidate job. That will get the volume recycling working properly and you won't be left with a bunch of stale volumes taking up space. 2) Us a relatively small Max Volume Bytes in your AI-Incremental and AI-Consolidated pools. I use 5G. You may settle on something bigger, but bigger is not always better. Smaller will mean more volumes, but probably less wasted space. And with disk storage there's very little performance overhead with mounting and unmounting volumes. 3) Don't consolidate every day. Consolidation is great for recovering unused space on storage volumes, but doing that daily is overkill. I do it every 4 days, for reasons that probably aren't worth discussing, but find something that makes sense to you. With tape volumes consolidation is a great way to reduce restore/recovery times because it will reduce volume mounts and tape streaming. With random access disk volumes it really doesn't matter much. If you do these things, you'll find that your system will settle in on just the right number of volumes that it needs, with very little wasted space. The amount of space consumed on a temporary basis by not truncated the volume at the time it is purged should be down in the noise. My 2 cents. Dan -- You received this message because you are subscribed to the Google Groups "bareos-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
