Ralf Gross schrieb: > > Do you know when 06D124L3 was marked as recycled? Look for Director > > messages > > like > > > > Pruned nnn Jobs on Volume "06D124L3" from catalog. > > There are no Jobs associated with Volume "06D124L3". Marking it purged. > > Recycled volume "06D124L3" > > I can't find any message about this in the log file. There are only messages > about pruned files. Nothing about pruned volumes... > > 11-Apr 00:09 VU0EM005: Pruned Files from 1 Jobs for client VU0EM003 from > catalog > > This is very differnt from my old 1.38.5 install, where I can find the > expected > messages about pruned volumes. > > > pool config: > > Pool { > Name = Differential > Pool Type = Backup > Recycle = yes > AutoPrune = yes > Recycle Oldest Volume = yes > Volume Use Duration = 96 hours > Volume Retention = 31 days > } > > double check: > > poolid: 5 > name: Differential > numvols: 5 > maxvols: 0 > useonce: 0 > usecatalog: 1 > acceptanyvolume: 0 > volretention: 2,678,400 > voluseduration: 345,600 > maxvoljobs: 0 > maxvolbytes: 0 > autoprune: 1 > recycle: 1 > pooltype: Backup > labelformat: * > enabled: 1 > scratchpoolid: 0 > recyclepoolid: 0 > labeltype: 0
As I can't find anything about pruned/pured volumes in the log file, I'm now looking for volumes that should have be purged already. But I can't find one. (although the state of volume 06D124L3 was Recycle on 2007-04-01!) Both clients that write to these volumes have these File/Job retention times. File Retention = 30 days Job Retention = 6 month This is to keep the job information for the volume retention time of the full pool. Example 1: volume 06D125L3, differential pool, volretention 31 days Shouldn't this volume have been purged already? Pool: Differential (trimmed output) +-------+----------+---------+--------------+------------+-------+-------------------+ |mediaid|volumename|volstatus|volbytes |volretention|recycle|lastwritten | +-------+----------+---------+--------------+------------+-------+-------------------+ | 5 |06D124L3 |Used | 968,583,168| 2,678,400 | 1|2007-04-08 00:12:44| | 6 |06D125L3 |Used |17,191,802,880| 2,678,400 | 1|2007-03-11 00:33:24| | 7 |06D126L3 |Used | 6,299,725,824| 2,678,400 | 1|2007-03-19 21:07:48| | 8 |06D127L3 |Used | 9,633,254,400| 2,678,400 | 1|2007-03-25 00:22:52| | 19 |06D137L3 |Append | 3,497,001,984| 2,678,400 | 1|2007-04-08 00:18:03| +-------+----------+---------+--------------+------------+-------+-------------------+ *llist volumes pool=Differential mediaid: 6 volumename: 06D125L3 slot: 6 poolid: 5 mediatype: LTO3 firstwritten: 2007-03-10 23:55:04 lastwritten: 2007-03-11 00:33:24 labeldate: 2007-03-10 23:55:04 voljobs: 3 volfiles: 19 volblocks: 266,489 volmounts: 1 volbytes: 17,191,802,880 volerrors: 0 volwrites: 266,490 volcapacitybytes: 0 volstatus: Used enabled: 1 recycle: 1 volretention: 2,678,400 voluseduration: 345,600 maxvoljobs: 0 maxvolfiles: 0 maxvolbytes: 0 inchanger: 1 endfile: 18 endblock: 4,146 volparts: 0 labeltype: 0 storageid: 2 deviceid: 0 locationid: 0 recyclecount: 0 initialwrite: scratchpoolid: 0 recyclepoolid: 0 comment: Example 2: volume 06D121L3, incremental pool, volretention 26 days Pool { Name = Incremental Pool Type = Backup Recycle = yes AutoPrune = yes Recycle Oldest Volume = yes Volume Use Duration = 20 days Volume Retention = 26 days } Pool: Incremental (trimmed output) +-------+----------+---------+--------------+------------+---------+---------+---------------------+ |mediaid|volumename|volstatus| volbytes |volretention| recycle |mediatype| lastwritten | +-------+----------+---------+--------------+------------+---------+---------+---------------------+ | 1 |06D121L3 | Full |17,805,699,072| 2,246,400 | 1 | LTO3 | 2007-02-25 16:26:36 | | 2 |06D122L3 | Used |70,216,538,112| 2,246,400 | 1 | LTO3 | 2007-03-17 00:09:27 | | 3 |06D123L3 | Used |17,931,110,400| 2,246,400 | 1 | LTO3 | 2007-04-07 00:08:24 | | 4 |06D120L3 | Append | 2,433,263,616| 2,246,400 | 1 | LTO3 | 2007-04-12 00:09:35 | +-------+----------+---------+--------------+------------+---------+---------+---------------------+ *llist volumes pool=Incremental Select the Pool (1-7): 6 mediaid: 1 volumename: 06D121L3 slot: 2 poolid: 6 mediatype: LTO3 firstwritten: 2007-02-21 23:45:04 lastwritten: 2007-02-25 16:26:36 labeldate: 2007-02-21 23:45:04 voljobs: 15 volfiles: 29 volblocks: 276,005 volmounts: 10 volbytes: 17,805,699,072 volerrors: 0 volwrites: 276,006 volcapacitybytes: 0 volstatus: Full enabled: 1 recycle: 1 volretention: 2,246,400 voluseduration: 1,728,000 maxvoljobs: 0 maxvolfiles: 0 maxvolbytes: 0 inchanger: 1 endfile: 28 endblock: 25 volparts: 0 labeltype: 0 storageid: 2 deviceid: 0 locationid: 0 recyclecount: 0 initialwrite: scratchpoolid: 0 recyclepoolid: 0 comment: Volume 06D121L3 was last used on 2007-02-25, shouldn't this volumes also have been pured since a few weeks? I issue the 'status dir' command once a day and serveral backups have been run since the retention time expired. I thought that the scratch pool might be a problem, but if I read the manual, I think my understanding is correct. So, after the volume retention period expires, the volume is purged and will then be reused, even if a scratch pool exists. <http://www.bacula.org/dev-manual/Automatic_Volume_Recycling.html> # If the request is for an Autochanger device, look only for Volumes in the Autochanger (i.e. with InChanger set and that have the correct Storage device). # Search the Pool for a Volume with VolStatus=Append (if there is more than one, the Volume with the oldest date last written is chosen. If two have the same date then the one with the lowest MediaId is chosen). # Search the Pool for a Volume with VolStatus=Recycle and the InChanger flag is set true (if there is more than one, the Volume with the oldest date last written is chosen. If two have the same date then the one with the lowest MediaId is chosen). # Try recycling any purged Volumes. # Prune volumes applying Volume retention period (Volumes with VolStatus Full, Used, or Append are pruned). Note, even if all the File and Job records are pruned from a Volume, the Volume will not be marked Purged until the Volume retention period expires. # Search the Pool for a Volume with VolStatus=Purged # If a Pool named "Scratch" exists, search for a Volume and if found move it to the current Pool for the Job and use it. Note, when the Scratch Volume is moved into the current Pool, the basic Pool defaults are applied as if it is a newly labeled Volume (equivalent to an update volume from pool command). Ralf ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/bacula-users