Bacula-users

Re: [Bacula-users] Volume purged, why?

2008-05-03 17:26:46
Subject: Re: [Bacula-users] Volume purged, why?
From: C M Reinehr <cmr AT amsent DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Sat, 3 May 2008 16:26:35 -0500
On Sat 03 May 2008 16:03, Charles Sprickman wrote:
> 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.h
>tml
>
> 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?

Yes, the default file retention period is 60 days and the default job 
retention is 180 days. Auto pruning operates on files, jobs & volumes. It 
would appear that all of the files and jobs related to these volumes had been 
pruned from your catalog. Once they all were pruned the volumes were marked 
as purged.

Cheers!

cmr

> Thanks,
>
> Charles
>
> -------------------------------------------------------------------------


-- 
Debian 'Etch' - Registered Linux User #241964
--------
"More laws, less justice." -- Marcus Tullius Ciceroca, 42 BC

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