[Bacula-users] Bacula not setting the RecyclePool properly
2011-05-10 08:59:11
Hello everyone.
I've been having a problem with Bacula with a Pool that rotates the tapes daily, like that:
Pool {
Name = pool.inc.muitobaixo Pool Type = Backup
Storage = st.tpa Volume Use Duration = 1 day
Volume Retention = 1 day Scratch Pool = scratch.tpa
RecyclePool = scratch.tpa File Retention = 6 months
Job Retention = 6 months Cleaning Prefix = "CLN"
}
I actually don't know if this is happening with other Pool, I'll check it later, but here are the volumes on this Pool:
*list volumes pool=pool.inc.muitobaixo Automatically selected Catalog: cat.default
Using Catalog "cat.default" +---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| mediaid | volumename | volstatus | enabled | volbytes | volfiles | volretention | recycle | slot | inchanger | mediatype | lastwritten |
+---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 9 | 000008L3 | Used | 1 | 25,947,113,472 | 31 | 86,400 | 1 | 9 | 1 | LTO3 | 2011-05-09 20:59:19 |
| 10 | 000009L3 | Recycle | 1 | 1 | 0 | 86,400 | 1 | 0 | 0 | LTO3 | 2011-05-05 06:32:09 |
| 14 | 000013L3 | Append | 1 | 27,672,938,496 | 32 | 86,400 | 1 | 14 | 1 | LTO3 | 2011-05-10 06:01:20 |
+---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Ok, the Volume 000009L3 is marked as Recycle (since the Volume Retetion is 1 Day and it was last written five days ago), but why isn't it back to the scratch.tpa Pool?
Let's see it further, lets purge it manually, right after I change it's status to Used (I can't purge a volume with Recycle Status):
*purge volume pool=pool.inc.muitobaixo
This command can be DANGEROUS!!!
It purges (deletes) all Files from a Job, JobId, Client or Volume; or it purges (deletes)
all Jobs from a Client or Volume without regard to retention periods. Normally you should use the
PRUNE command, which respects retention periods. +---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| mediaid | volumename | volstatus | enabled | volbytes | volfiles | volretention | recycle | slot | inchanger | mediatype | lastwritten |
+---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 9 | 000008L3 | Used | 1 | 25,947,113,472 | 31 | 86,400 | 1 | 9 | 1 | LTO3 | 2011-05-09 20:59:19 |
| 10 | 000009L3 | Used | 1 | 1 | 0 | 86,400 | 1 | 0 | 0 | LTO3 | 2011-05-05 06:32:09 |
| 14 | 000013L3 | Append | 1 | 27,672,938,496 | 32 | 86,400 | 1 | 14 | 1 | LTO3 | 2011-05-10 06:01:20 |
+---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Enter *MediaId or Volume name: *10 0 Files on Volume "000009L3" purged from catalog.
There are no more Jobs associated with Volume "000009L3". Marking it purged.
Nothing happen, lets use the update command to force the Recycle Poll for that Volume:
*update volume recyclepool=scratch.tpa
Defined Pools: 1: pool.diff.alto 2: pool.inc.medio 3: pool.inc.alto 4: pool.diff.copy 5: scratch.tpb 6: pool.diff.muitoalto 7: scratch.tpc 8: pool.default
9: pool.inc.muitoalto 10: scratch.tpa 11: pool.inc.muitobaixo 12: pool.inc.baixo 13: pool.full.muitobaixo 14: pool.diff.muitobaixo 15: pool.full.baixo 16: pool.full.medio
17: pool.diff.medio 18: pool.full.muitoalto 19: pool.diff.baixo 20: pool.full.alto Select the Pool (1-20): 11 +---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| mediaid | volumename | volstatus | enabled | volbytes | volfiles | volretention | recycle | slot | inchanger | mediatype | lastwritten | +---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 9 | 000008L3 | Used | 1 | 25,947,113,472 | 31 | 86,400 | 1 | 9 | 1 | LTO3 | 2011-05-09 20:59:19 | | 10 | 000009L3 | Purged | 1 | 1 | 0 | 86,400 | 1 | 0 | 0 | LTO3 | 2011-05-05 06:32:09 |
| 14 | 000013L3 | Append | 1 | 27,672,938,496 | 32 | 86,400 | 1 | 14 | 1 | LTO3 | 2011-05-10 06:01:20 | +---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Enter *MediaId or Volume name: *10 New RecyclePool is: scratch.tpa
After set it's status back to Used (so we cant manually purge it):
*purge volume pool=pool.inc.muitobaixo
This command can be DANGEROUS!!!
It purges (deletes) all Files from a Job, JobId, Client or Volume; or it purges (deletes) all Jobs from a Client or Volume without regard
to retention periods. Normally you should use the PRUNE command, which respects retention periods. Automatically selected Catalog: cat.default Using Catalog "cat.default" +---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| mediaid | volumename | volstatus | enabled | volbytes | volfiles | volretention | recycle | slot | inchanger | mediatype | lastwritten | +---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 9 | 000008L3 | Used | 1 | 25,947,113,472 | 31 | 86,400 | 1 | 9 | 1 | LTO3 | 2011-05-09 20:59:19 | | 10 | 000009L3 | Used | 1 | 1 | 0 | 86,400 | 1 | 0 | 0 | LTO3 | 2011-05-05 06:32:09 |
| 14 | 000013L3 | Append | 1 | 27,672,938,496 | 32 | 86,400 | 1 | 14 | 1 | LTO3 | 2011-05-10 06:01:20 | +---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Enter *MediaId or Volume name: *10 0 Files on Volume "000009L3" purged from catalog. There are no more Jobs associated with Volume "000009L3". Marking it purged. New Pool is: scratch.tpa
Now Bacula send it back to the scratch.tpa, but only I force it with the update command before the purge... why? Isn't it setting the RecyclePool properly from the configuration file? Does it have anything to do with the 1 day Volume Retention period?
Thanks!
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay _______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Bacula-users] Bacula not setting the RecyclePool properly,
Rodrigo Renie Braga <=
|
|
|