Bacula-users

[Bacula-users] Volume purged, why?

2008-05-03 17:04:15
Subject: [Bacula-users] Volume purged, why?
From: Charles Sprickman <spork AT bway DOT net>
To: bacula-users AT lists.sf DOT net
Date: Sat, 3 May 2008 17:03:38 -0400 (EDT)
I recently noticed that two of my monthly tapes were purged, and I'm 
trying to figure out why.

My pool definition:

Pool {
   Name = Monthly
   Pool Type = Backup
   Recycle = no                        # Bacula can automatically recycle 
Volumes
   AutoPrune = yes                   # Prune expired volumes
   Volume Retention =  2 years
   Volume Use Duration = 1 month
   Maximum Volumes = 12
   LabelFormat = "Monthly"
}

I was looking at the Volume recycling docs here:

http://bacula.org/manuals/en/concepts/concepts/Automatic_Volume_Recycling.html

And it seems like these volumes should not be pruned until the Volume 
Retention period is met.

Relevant logs:

07-Mar 16:05 devel2-dir: Max configured use duration exceeded. Marking 
Volume "Monthly0007" as Used.
07-Mar 16:05 devel2-dir: There are no Jobs associated with Volume 
"Monthly0001".
  Marking it purged.
07-Mar 16:05 devel2-dir: ua_purge.c:611 All records pruned from Volume 
"Monthly0001"; marking it "Purged"
07-Mar 16:05 devel2-dir: There are no Jobs associated with Volume 
"Monthly0002".
  Marking it purged.
07-Mar 16:05 devel2-dir: ua_purge.c:611 All records pruned from Volume 
"Monthly0002"; marking it "Purged"
07-Mar 16:05 devel2-dir: Created new Volume "Monthly0008" in catalog.

And the "list volumes" output showing them as being purged:

Pool: Monthly
+---------+-------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| mediaid | volumename  | volstatus | enabled | volbytes        | volfiles 
| volretention | recycle | slot | inchanger | mediatype | lastwritten 
|
+---------+-------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|       1 | Monthly0001 | Purged    |       1 |  64,373,879,808 |       80 
|   31,536,000 |       0 |    0 |         0 | LTO-2     | 2007-07-16 
01:31:33 |
|      10 | Monthly0002 | Purged    |       1 |  37,705,651,200 |       52 
|   31,536,000 |       0 |    0 |         1 | LTO-2     | 2007-08-31 
18:41:34 |
|      12 | Monthly0003 | Used      |       1 |  75,092,355,072 |       91 
|   31,536,000 |       0 |    0 |         0 | LTO-2     | 2007-09-10 
13:44:53 |

This is Bacula 2.0.1 (yes, it's old, I'm stuck on FreeBSD 4.11 for the 
foreseeable future).

Any ideas?

Thanks,

Charles

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users