We recently ran into a situation where we had 3 volumes in an Error
state that were clogging up our 'Default' pool.
We have several media pools for different purposes and thus have the Maximum Volumes
directive in place so we become aware of problems (e.g. this problem, sudden increase of data volume, etc.).
My Default
pool is:
Pool {
Name = Default
Pool Type = Backup
Recycle = yes
Recycle Oldest Volume = yes
RecyclePool = Scratch
AutoPrune = yes # Prune expired volumes
Volume Retention = 60 days
Maximum Volumes = 35
Cleaning Prefix = "CLN"
}
Job retention parameters were set such that we couldn't purge a tape or add another one into the pool:
17-Mar 23:05 server8-dir JobId 10652: Start Backup JobId 10652, Job=server1.2012-03-17_23.05.00_57
17-Mar 23:05 server8-dir JobId 10652: Warning: Unable add Scratch Volume, Pool "Default" full MaxVols=35
17-Mar 23:05 server8-dir JobId 10652: Pruning oldest volume "000026L2"
17-Mar 23:05 server8-dir JobId 10652: Using Device "TS3200-1a"
17-Mar 23:05 server8-dir JobId 10652: Warning: Unable add Scratch Volume, Pool "Default" full MaxVols=35
17-Mar 23:05 server8-dir JobId 10652: Pruning oldest volume "000026L2"
17-Mar 23:05 server8-sd JobId 10652: Job server1.2012-03-17_23.05.00_57 is waiting. Cannot find any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage: "TS3200-1a" (/dev/nst0)
Pool: Default
Media type: LTO3
Is there a way to tell Bacula to move any Error
ed volumes out of a pool automatically so they don't take up space? One of them had been there for a while (since 2011-08-20 00:10:34
) so I don't think it would have ever been moved out.
The emphasis here is for this to happen automatically - I think it makes sense for a volume to get moved out of the pool when RecyclePool
is set.
(background: we maintain Bacula for quite a few different customers and we try to have things happen as automatically as possible. While this isn't a massive problem, perhaps this just doesn't exist yet and ought to be submitted as a feature request.)