From: Mantis B. T. <no...@bu...> - 2013-04-25 19:15:11
|
A NOTE has been added to this issue. ====================================================================== http://bugs.bacula.org/view.php?id=2000 ====================================================================== Reported By: ensc Assigned To: ====================================================================== Project: bacula Issue ID: 2000 Category: Director Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2013-04-24 14:01 BST Last Modified: 2013-04-25 20:15 BST ====================================================================== Summary: Volumes are not taken from Scratch Pool Description: In the setup below, I expect that: 1. old volumes are moved into _recycle-incremental.newport.e 2. when new volumes are required, they are taken from _recycle-incremental.newport.e Unfortunately, only point 1. applies and the recycle pool grows and grows. When 'incremental.newport.e' needs a new volume, a new one will be created but not taken from the scratch pool. I use this setup because I want to limit the total number of volumes. E.g. I am using disk based volumes and there can be created more than one volume per backup in rare situations. With a traditional setup (no recycle/scratch) pool, the normal pool would get more and more volumes which are difficultly to distinguish. With the pool -> recycle -> pool setup, I wanted to move old volumes to the _recycle pool and clean up the recycle pool from time to time manually. -------------------- Pool { Name = "incremental.newport.e" Pool Type = Backup Storage = "storage-newport.e" Recycle = yes AutoPrune = yes Label Format = "INC-" Volume Use Duration = 23 hours Volume Retention = 1 month Action On Purge = Truncate Scratch Pool = "_recycle-incremental.newport.e" Recycle Pool = "_recycle-incremental.newport.e" #Recycle Pool = "incremental.newport.e" } Pool { Name = "_recycle-incremental.newport.e" Pool Type = Backup Storage = "storage-newport.e" Recycle = yes AutoPrune = yes Action On Purge = Truncate Purge Oldest Volume = yes Volume Use Duration = 1 hour Volume Retention = 1 hour } -------------------- Additional Information: llist media pool=_recycle-incremental.newport.e MediaId: 417 VolumeName: INC-0417 Slot: 0 PoolId: 119 MediaType: File FirstWritten: 2012-11-12 00:02:18 LastWritten: 2012-11-12 00:03:16 LabelDate: 2012-11-12 00:02:18 VolJobs: 4 VolFiles: 0 VolBlocks: 99 VolMounts: 2 VolBytes: 6144506 VolErrors: 0 VolWrites: 100 VolCapacityBytes: 0 VolStatus: Purged Enabled: 1 Recycle: 1 VolRetention: 2592000 VolUseDuration: 82800 MaxVolJobs: 0 MaxVolFiles: 0 MaxVolBytes: 0 InChanger: 0 EndFile: 0 EndBlock: 6144505 VolParts: 0 LabelType: 0 StorageId: 8 DeviceId: 0 LocationId: 0 RecycleCount: 0 InitialWrite: 0 ScratchPoolId: 0 RecyclePoolId: 119 Comment: NULL ====================================================================== ---------------------------------------------------------------------- (0006667) ensc (reporter) - 2013-04-24 14:15 http://bugs.bacula.org/view.php?id=2000#c6667 ---------------------------------------------------------------------- PoolId: 64 Name: incremental.newport.e NumVols: 27 MaxVols: 0 UseOnce: 0 UseCatalog: 1 AcceptAnyVolume: 0 VolRetention: 2592000 VolUseDuration: 82800 MaxVolJobs: 0 MaxVolBytes: 0 AutoPrune: 1 Recycle: 1 PoolType: Backup LabelFormat: INC- Enabled: 1 ScratchPoolId: 119 RecyclePoolId: 119 LabelType: 0 PoolId: 119 Name: _recycle-incremental.newport.e NumVols: 113 MaxVols: 0 UseOnce: 0 UseCatalog: 1 AcceptAnyVolume: 0 VolRetention: 3600 VolUseDuration: 3600 MaxVolJobs: 0 MaxVolBytes: 0 AutoPrune: 1 Recycle: 1 PoolType: Backup LabelFormat: * Enabled: 1 ScratchPoolId: 0 RecyclePoolId: 0 LabelType: 0 ---------------------------------------------------------------------- (0006668) gani (reporter) - 2013-04-25 20:15 http://bugs.bacula.org/view.php?id=2000#c6668 ---------------------------------------------------------------------- Described behaviour when Scratch Pool is not used at all, may be caused that you do not have Maximum Volumes directive in your Pool named "incremental.newport.e". This Pool uses Label Format directive that in situation when backup needs some tape then there is provided new tape by labeling instead of take tape from Scratch Pool. So, you can set Maximum Volumes directive and then try the Scratch Pool functionality. Regards Marcin Haba (gani) Issue History Date Modified Username Field Change ====================================================================== 2013-04-24 14:01 ensc New Issue 2013-04-24 14:15 ensc Note Added: 0006667 2013-04-25 20:15 gani Note Added: 0006668 ====================================================================== |