> On 03.03.2016 11:22, Carsten Pache wrote:
>> Hi all,

>> I have problems in understanding how automatic recycling of tapes works.

>> My configuration uses a single tape drive and ten tapes. Five tapes are used 
>> for every work day of an even week (labeled MON-E, TUE-E... FRI-E), the 
>> other five for odd weeks (MON-O, TUE-O... FRI-O).
>> There are two pools, one for even weeks and one for odd weeks, both 
>> configures with "Volume Retention = 8 days" and "Volume Use Duration = 23h".

>> Backups works fine. However, if after two weeks the tapes are to be reused, 
>> I need to prune each tape manually - otherwise Bareos asks to mount a volume 
>> or label a new one.


> What is the output of the job when the no tape can be loaded?

Example: On a Monday morning, I took out the tape labeled "FRI-O-yell" and 
loaded the tape "MON-O":

29-Feb 19:30 dasi-sd JobId 73: Warning: Director wanted Volume "FRI-O-yell".
   Current Volume "MON-O" not acceptable because:
   1998 Volume "MON-O" catalog status is Used, but should be Append, Purged or 
Recycle.
29-Feb 19:30 dasi-sd JobId 73: Please mount append Volume "FRI-O-yell" or label 
a new one for:
   Job:          SRV-DATA.2016-02-29_19.30.00_05
   Storage:      "LTO-3" (/dev/nst0)
   Pool:         UnEvenWeek
   Media type:   LTO-3
29-Feb 19:34 dasi-sd JobId 73: Please mount append Volume "FRI-O-yell" or label 
a new one for:
   Job:          SRV-DATA.2016-02-29_19.30.00_05
   Storage:      "LTO-3" (/dev/nst0)
   Pool:         UnEvenWeek
   Media type:   LTO-3

> What are the values of last written and volretention (use "list volumes")?

Here are my pools (well, the two I use):

Pool: EvenWeek
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| mediaid | volumename | volstatus | enabled | volbytes        | volfiles | 
volretention | recycle | slot | inchanger | mediatype | lastwritten         |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|       9 | MON-E      | Used      |       1 | 192,362,760,965 |       42 |     
 691,200 |       1 |    0 |         0 | LTO-3     | 2016-02-23 01:33:15 |
|      10 | TUE-E      | Used      |       1 |  54,943,970,785 |       14 |     
 691,200 |       1 |    0 |         0 | LTO-3     | 2016-02-23 21:36:20 |
|      11 | WED-E      | Used      |       1 |  53,543,841,915 |       14 |     
 691,200 |       1 |    0 |         0 | LTO-3     | 2016-02-24 21:33:29 |
|      12 | THU-E      | Used      |       1 |  89,963,920,488 |       21 |     
 691,200 |       1 |    0 |         0 | LTO-3     | 2016-02-25 22:30:11 |
|      13 | FRI-E-yell | Append    |       1 | 564,303,401,987 |      115 |     
 691,200 |       1 |    0 |         0 | LTO-3     | 2016-02-28 13:26:13 |
|      14 | FRI-E-grey | Append    |       1 |             199 |        0 |     
 691,200 |       1 |    0 |         0 | LTO-3     |                     |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Pool: UnEvenWeek
+---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| mediaid | volumename | volstatus | enabled | volbytes       | volfiles | 
volretention | recycle | slot | inchanger | mediatype | lastwritten         |
+---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|       2 | TUE-O      | Used      |       1 | 53,936,459,196 |       14 |      
691,200 |       1 |    0 |         0 | LTO-3     | 2016-03-01 21:32:34 |
|       3 | WED-O      | Append    |       1 | 53,636,317,532 |       14 |      
691,200 |       1 |    0 |         0 | LTO-3     | 2016-03-02 21:29:00 |
|       7 | FRI-O-yell | Append    |       1 |            201 |        0 |      
691,200 |       1 |    0 |         0 | LTO-3     |                     |
|       8 | THU-O      | Append    |       1 |            196 |        0 |      
691,200 |       1 |    0 |         0 | LTO-3     |                     |
|      15 | MON-O      | Used      |       1 | 93,720,685,680 |       22 |      
691,200 |       1 |    0 |         0 | LTO-3     | 2016-02-29 22:45:14 |
+---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+

Hope this helps!

Regards
Carsten

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

Reply via email to