Hi!
I have been playing with the full, inc, diff and scratch pool. I have
one volume in the full pool with one backup. Another volume in the
incremental pool with all jobs purged. No jobs should be there. Now I
launch a differential backup in differential pool, where no tapes exist.
OK, as in the incremental pool, there's a volume without jobs in the
database (and purged) and in this state :
+---------+----------------------+-----------+---------+-----------+----------+--------------+---------+------+-----------+-----------+---------+----------+---------------------+-----------+
| mediaid | volumename | volstatus | enabled | volbytes |
volfiles | volretention | recycle | slot | inchanger | mediatype |
voltype | volparts | lastwritten | expiresin |
+---------+----------------------+-----------+---------+-----------+----------+--------------+---------+------+-----------+-----------+---------+----------+---------------------+-----------+
| 4 | CINTA-BACK107001-004 | Append | 1 | 3,293,267 |
0 | 3,283,200 | 1 | 0 | 0 | File | 1 |
0 | 2022-06-01 13:00:03 | 3,282,343 |
+---------+----------------------+-----------+---------+-----------+----------+--------------+---------+------+-----------+-----------+---------+----------+---------------------+-----------+
I though it was not recycled to scratch pool due to expiresin seconds.
So I updated the volume and set the volume retention to 3 seconds. After
that :
Pool: catalogo_BACK107001_incr
+---------+----------------------+-----------+---------+-----------+----------+--------------+---------+------+-----------+-----------+---------+----------+---------------------+-----------+
| mediaid | volumename | volstatus | enabled | volbytes |
volfiles | volretention | recycle | slot | inchanger | mediatype |
voltype | volparts | lastwritten | expiresin |
+---------+----------------------+-----------+---------+-----------+----------+--------------+---------+------+-----------+-----------+---------+----------+---------------------+-----------+
| 4 | CINTA-BACK107001-004 | Purged | 1 | 3,293,267 |
0 | 3 | 1 | 0 | 0 | File | 1 |
0 | 2022-06-01 13:00:03 | 0 |
+---------+----------------------+-----------+---------+-----------+----------+--------------+---------+------+-----------+-----------+---------+----------+---------------------+-----------+
But still not being recycled. I tried setting the cache retetion to 0
but already was that way. Have set the volume status to recycled. No
way...
If I launch a differential backup I never get the volume to return back
to the scratch pool. I have this volumes now :
*list volumes
Using Catalog "catalogo_BACK107001"
Pool: Scratch
No results to list.
Pool: catalogo_BACK107001_archivado_anual
No results to list.
Pool: catalogo_BACK107001_archivado_mensual
No results to list.
Pool: catalogo_BACK107001_diferencial
No results to list.
Pool: catalogo_BACK107001_diff
No results to list.
Pool: catalogo_BACK107001_full
+---------+----------------------+-----------+---------+------------+----------+--------------+---------+------+-----------+-----------+---------+----------+---------------------+------------+
| mediaid | volumename | volstatus | enabled | volbytes |
volfiles | volretention | recycle | slot | inchanger | mediatype |
voltype | volparts | lastwritten | expiresin |
+---------+----------------------+-----------+---------+------------+----------+--------------+---------+------+-----------+-----------+---------+----------+---------------------+------------+
| 2 | CINTA-BACK107001-002 | Append | 1 | 13,163,277 |
0 | 10,886,400 | 1 | 0 | 0 | File | 1
| 0 | 2022-06-01 11:36:17 | 10,871,327 |
+---------+----------------------+-----------+---------+------------+----------+--------------+---------+------+-----------+-----------+---------+----------+---------------------+------------+
Pool: catalogo_BACK107001_incr
+---------+----------------------+-----------+---------+-----------+----------+--------------+---------+------+-----------+-----------+---------+----------+---------------------+-----------+
| mediaid | volumename | volstatus | enabled | volbytes |
volfiles | volretention | recycle | slot | inchanger | mediatype |
voltype | volparts | lastwritten | expiresin |
+---------+----------------------+-----------+---------+-----------+----------+--------------+---------+------+-----------+-----------+---------+----------+---------------------+-----------+
| 4 | CINTA-BACK107001-004 | Recycle | 1 | 3,293,267 |
0 | 3 | 1 | 0 | 0 | File | 1 |
0 | 2022-06-01 13:00:03 | 0 |
+---------+----------------------+-----------+---------+-----------+----------+--------------+---------+------+-----------+-----------+---------+----------+---------------------+-----------+
Pool: catalogo_BACK107001_incremental
No results to list.
Pool: catalogo_BACK107001_restores
No results to list.
Pool: catalogo_SARENET-RECUPERAR_incrementales
No results to list.
Pool: catalogo_SARENET-RECUPERAR_restores
No results to list.
Shouldn't it CINTA-BACK107001-004 return to scratch for later being able
to be reused in the differential pool?. I think I have read all the data
about recycling algorithm
(https://www.bacula.org/5.2.x-manuals/en/main/main/Automatic_Volume_Recycling.html)
and... I think it should return back to scratch and then to
differential. Isn't it?
Thanks mates :)
Bye!
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users