On 3/20/2020 4:35 AM, Uwe Schuerkamp wrote:
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):


I believe that you have to follow the "update pool from resource" with "update all volumes in pool". The pool resource is a template for adding volumes, so changing it does not affect existing volumes.



+--------+----------------+---------+---------+-------------+--------------+---------+----------+-------------+
| 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







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

Reply via email to