Hello Uwe, No, it is not. VUD will change the volume status to used at its endpoint, making sure the VolRetention is applied. Bacula volumes selection algo always try to write on last written tape. The only when to implement the round-robin tape rotation you want is using different pools for each week day.
Regards, -- MSc Heitor Faria CEO Bacula LatAm mobile1: + 1 909 655-8971 mobile2: + 55 61 98268-4220 América Latina [ http://bacula.lat/] -------- Original Message -------- From: Uwe Schuerkamp <uwe.schuerk...@nionex.net> Sent: Friday, March 20, 2020 04:56 AM To: Bacula Users Mailing List <bacula-users@lists.sourceforge.net> Subject: [Bacula-users] Bacula 9.6.x: "volume use duration" not working as expected >Hi folks, > >I have a set of tapes that I'd like to use in a daily rotation to backup >online disk volumes to tape. > >I defined a pool for this like so: > >Pool { > Name = offline_weekly > Pool Type = Backup > Recycle = yes > AutoPrune = yes > Volume Retention = 1 year > Recycle Oldest Volume = yes > Purge Oldest Volume = yes > Maximum Volumes = 7 > Volume Use Duration = 1 day >} > >Also, I've labelled 7 LTO6 tapes and assigned them to the pool. > >The backup works fine, but all the jobs end up on the first tape >(probably until it fills up). I would expect that the "volume use >duration" would cause bacula (9.6.2 compiled from source on Ubuntu >Server LTS 18.04) to load the next tape in the pool after 24 hours (so >when the next offline backup job runs), then the next one and so on >until it reaches tape 1 again, then writing the next offline job on >that volume and so on, until all tapes are full and then it should >start to recycle the oldest volume. > >Here's the pool how bacula sees it at the moment (I've also tried >"update pool from resource" without any effect): > >+--------+----------------+---------+---------+-------------+--------------+---------+----------+-------------+ >| PoolId | Name | NumVols | MaxVols | MaxVolBytes | VolRetention | >Enabled | PoolType | LabelFormat | >+--------+----------------+---------+---------+-------------+--------------+---------+----------+-------------+ >| 11 | offline_weekly | 7 | 7 | 0 | 31,536,000 | > 1 | Backup | * | >+--------+----------------+---------+---------+-------------+--------------+---------+----------+-------------+ > >And here's what "update pool from resource" shows: > >------------+---------+---------------+---------------+------------+--------------------+-------------------+---------------+ >| PoolId | Name | NumVols | MaxVols | UseOnce | UseCatalog | >AcceptAnyVolume | CacheRetention | VolRetention | VolUseDuration | MaxVolJobs >| MaxVolFiles | MaxVolBytes | AutoPrune | Recycle | ActionOnPurge | PoolType | >LabelType | LabelFormat | Enabled | ScratchPoolId | RecyclePoolId | NextPoolId >| MigrationHighBytes | MigrationLowBytes | MigrationTime | >+--------+----------------+---------+---------+---------+------------+-----------------+----------------+--------------+----------------+------------+-------------+-------------+-----------+---------+---------------+----------+-----------+-------------+---------+---------------+---------------+------------+--------------------+-------------------+---------------+ >| 11 | offline_weekly | 7 | 7 | 0 | 1 | > 0 | 0 | 31,536,000 | 86,400 | 0 | > 0 | 0 | 1 | 1 | 0 | Backup | >0 | * | 1 | 0 | 0 | 0 | > 0 | 0 | 0 | >+--------+----------------+---------+---------+---------+------------+-----------------+----------------+--------------+----------------+------------+-------------+-------------+-----------+---------+---------------+----------+-----------+-------------+---------+---------------+---------------+------------+--------------------+-------------------+---------------+ > > >(sorry for the long lines) > >and here's an example output of a "list jobs on volume" query for the one tape >that is currently in active use by bacula in the pool above: > >+-------+---------------+---------------------+------+-------+-------+----------------+--------+ >| JobId | Name | StartTime | Type | Level | Files | Bytes > | Status | >+-------+---------------+---------------------+------+-------+-------+----------------+--------+ >| 417 | offline_daily | 2020-03-17 14:08:21 | B | F | 4,167 | >33,078,435,599 | T | >| 422 | offline_daily | 2020-03-18 06:21:34 | B | F | 4,167 | >33,155,008,843 | T | >| 430 | offline_daily | 2020-03-19 06:21:33 | B | F | 4,324 | >38,389,879,305 | T | >| 437 | offline_daily | 2020-03-20 04:01:32 | B | F | 4,328 | >41,592,356,545 | T | >+-------+---------------+---------------------+------+-------+-------+----------------+--------+ > >Am I misunderstanding something about "volume use duration" here? > >Thanks in advance for your help & all the best, > >Uwe > > > > > >-- >Uwe Schürkamp | email: <uwe.schuerk...@nionex.net> > > > > > > > > > >_______________________________________________ >Bacula-users mailing list >Bacula-users@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/bacula-users
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users