Alright people, I seriously need an explanation here.

You have X volumes, which are each retained for Y retention time.
You can add another volume by labelling it.

If no free volume is available, and Recycle is enabled, Bacula should
recycle the oldest volume that is past the retention time, right?

Why wouldn't it?

And why would it add a non-existant volume to the media list, give it a name 
(even though it has no physical existance) and ask you to mount it?  
Wishful thinking?
 
The relevant sections of my configuration are quoted below.  I may have
gotten something wrong, but it appears that the documentation is seriously
misleading in this regard.

On Fri, Sep 16, 2005 at 03:33:28PM -0700, Joe Rhett wrote:
> > On 15.09.2005 09:06, Joe Rhett wrote:
> > 
> > >Okay, bacula seems to do two things that I believe are configured to not
> > >happen.  It's probably me, so clue me in here:
> > >
> > >1. It isn't recycling a volume that is way past it's retension time
> > >
> > >2. It keep creating new volumes that don't exist.  I think this is
> > >controlled by "LabelMedia" ?  That's a fairly misleading function...
> > >
> > >Someone clue me in where I'm going wrong here?
>  
> On Thu, Sep 15, 2005 at 09:34:13AM +0200, Arno Lehmann wrote:
> > Without actually going through your configuration:
> > Bacula only recycles a volumewhen it really needs to, i.e. when there is 
> > (almost) no other way for it to continue.
>  
> Right.  All volumes are used, this is the oldest.  Recycling is the only
> possible/sensible option.
> 
> > Your best thing to do might be to limit the number of volumes in the 
> > pools. After that, bacula will reuse the existing volumes when the 
> > available space fills.
> 
> "limit the number of volumes in the pools" <- that limitation would be
> obviously done by not creating any new volumes, right?  
> 
> What confuses me is this "Oh, I'll just make up a new volume" approach.
> Where does it expect this new volume to be?  There is no such labeled
> volume.  (and changing LabelMedia didn't help either)
> 
> > >14-Sep-2005 03:10 maiasaura-sd: 
> > >    Current Volume "liz5" not acceptable because:
> > >    1998 Volume "liz5" status is Full, but should be Append, Purged or
> > >Recycle.
> > >
> > >However, "list media" shows that it's way past retention time...
> > >
> > >Pool: Tape
> > >+---------+------------+-----------+-------------+----------+--------------+---------+------+-----------+---------------------+
> > >| MediaId | VolumeName | VolStatus | VolBytes    | VolFiles | VolRetention
> > >| Recycle | Slot | MediaType | LastWritten         |
> > >+---------+------------+-----------+-------------+----------+--------------+---------+------+-----------+---------------------+
> > >| 9       | liz5       | Full      | 14155350617 | 17       | 7776000
> > >| 1       | 0    | DDS-3     | 2005-06-27 23:12:20 |
> > >| 10      | liz6       | Full      | 10000907376 | 12       | 7776000
> > >| 1       | 0    | DDS-3     | 2005-07-19 16:35:47 |
> > >| 18      | liz4       | Full      | 10882141539 | 13       | 2592000
> > >| 1       | 0    | DDS-3     | 2005-09-13 04:09:41 |
> > >| 19      | liz7       | Full      | 10480425083 | 12       | 2592000
> > >| 1       | 0    | DDS-3     | 2005-08-11 02:19:32 |
> > >| 20      | liz8       | Full      | 10731505815 | 13       | 2592000
> > >| 1       | 0    | DDS-3     | 2005-08-23 04:20:11 |
> > >| 21      | liz9       | Full      | 11255199791 | 16       | 2592000
> > >| 1       | 0    | DDS-3     | 2005-08-28 11:26:10 |
> > >| 22      | liz10      | Full      | 9675960782  | 11       | 2592000
> > >| 1       | 0    | DDS-3     | 2005-08-30 00:58:57 |
> > >| 23      | liz1       | Full      | 8895815459  | 12       | 2592000
> > >| 1       | 0    | DDS-3     | 2005-09-05 08:19:11 |
> > >| 24      | liz2       | Full      | 8477650556  | 11       | 2592000
> > >| 1       | 0    | DDS-3     | 2005-09-07 07:51:22 |
> > >| 25      | liz3       | Full      | 12049471114 | 28       | 2592000
> > >| 1       | 0    | DDS-3     | 2005-09-11 10:33:23 |
> > >+---------+------------+-----------+-------------+----------+--------------+---------+------+-----------+---------------------+
> > >
> > >
> > ># Job templates
> > >JobDefs {
> > >        Name = "UnixTemplate"
> > >        Type = Backup
> > >        Level = Incremental
> > >        FileSet = "Unix Files"
> > >        Schedule = "WeeklyCycle"
> > >        Storage = Seagate-DDS3
> > >        Messages = Standard
> > >        Pool = Tape
> > >        Priority = 10
> > >        Reschedule On Error = yes
> > >        Reschedule Interval = 1d
> > >        SpoolData = yes
> > >}
> > >
> > ># Tape pool definition
> > >Pool {
> > >        Name = Tape
> > >        Pool Type = Backup
> > >        Recycle = yes                   # Bacula can automatically recycle
> > >        Recycle Oldest Volume = yes
> > >        AutoPrune = yes                 # Prune expired volumes
> > >        Volume Retention = 1 months     # one month
> > >        Accept Any Volume = yes         # write on any volume in the pool
> > >        LabelFormat = "liz"
> > >}
> > >
> > >
> > >Device {
> > >        Name = Seagate
> > >        Description = "DDS-3 for FreeBSD"
> > >        Media Type = DDS-3
> > >        Archive Device = /dev/nsa0
> > >        AutomaticMount = yes;               # when device opened, read it
> > >        AlwaysOpen = no
> > >        Offline On Unmount = no
> > >        Hardware End of Medium = no
> > >        BSF at EOM = yes
> > >        Backward Space Record = no
> > >        Fast Forward Space File = no
> > >        TWO EOF = yes
> > >        LabelMedia = no;
> > >        Spool Directory = /space/backups
> > >        Maximum Spool Size = 15000000000
> > >}
> > >
> > 
> > -- 
> > IT-Service Lehmann                    [EMAIL PROTECTED]
> > Arno Lehmann                  http://www.its-lehmann.de
> 
> -- 
> Joe Rhett
> senior geek
> meer.net
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. 
> Download it for free - -and be entered to win a 42" plasma tv or your very
> own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Joe Rhett
senior geek
meer.net


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to