Bacula-users

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

2008-05-05 03:29:26
Subject: Re: [Bacula-users] Volume purged, why?
From: Ryan Novosielski <novosirj AT umdnj DOT edu>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 05 May 2008 03:28:40 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

sporkman wrote:
> 
> John Drescher-2 wrote:
>> On Sat, May 3, 2008 at 11:21 PM, sporkman <spork AT bway DOT net> wrote:
>>>
>>>  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.
>>>  >>
>>>
>>>
>>>> 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.
>>>
>>>  That contradicts the documentation though...
>>>
>> >From the way I read it there is no contradiction.
>>>  "The Volume Retention period takes precedence over any Job Retention
>>> period
>>>  you have specified in the Client resource."
>>>
>>>  In other words, Volume Retention is the only thing that counts, right?
>>>
>> No. I believe it means that if Volume Retention is less than file or
>> job retention then the volume could still  be pruned instead of having
>> to wait for the other two retention periods.
>>
>> John
>>
> 
> Odd.  I just looked at all my job and client definitions and there is no
> retention declared anywhere.  I also still read "takes precedence" as
> "overrides", as does my wife, formerly an english prof.  :)
> 
> Grepping around and removing anything with a comment in front of it, I get
> this:
> 
> bacula-dir.conf:  Volume Retention = 365 days         # one year
> bacula-dir.conf:  Volume Retention =  2 years        # one year
> bacula-dir.conf:  Volume Retention =  3 months         # one month
> bacula-dir.conf:  Volume Retention = 1 month           # 5 days
> 
> Those are all from my pool definitions.
> 
> Either something broke or I am losing my mind...
> 
> Thanks,
> 
> Charles
> 
> ps - apologies for any formatting oddness, I'm trying Nabble as a way to
> search/post to lists that I don't want coming directly to my inbox.  It
> looks fine within their interface, but I'm not sure how accurate that is.

You should do an llist on the volume in question to make sure that the
retention period on the volume is actually what you think it is. I think
you can check the job retention period in a similar way by listing a
job, but I haven't needed to mess with that lately.

- --
 ---- _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
 |$&| |__| |  | |__/ | \| _| |novosirj AT umdnj DOT edu - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIHrcomb+gadEcsb4RAlJAAJ9ovpAA/8Z3YQt4mDL05qWylpqNNQCfaYvr
6HewlPPmWT7NNwK50kSWWck=
=HFJe
-----END PGP SIGNATURE-----

Attachment: novosirj.vcf
Description: Vcard

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