> On 17.09.2005 08:49, Joe Rhett wrote:
> >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 Sat, Sep 17, 2005 at 08:16:33PM +0200, Arno Lehmann wrote:
> Well, I do know that you can limit the number of volumes in a pool. I 
> did set up such pools, and they worked as expected, i.e. they recycle 
> volumes once all the volumes I wanted exist.
> 
> The key is to either prepare the right number of volumes manually or 
> limit the number of volumes in the pool explicitly. In the latter case, 
> the manual has the following information:
 
I did prepare the right number of volumes manually.

> Maximum Volumes = <number>
>     This directive specifies the maximum number of volumes (tapes or 
> files) contained in the pool. This directive is optional, if omitted or 
> set to zero, any number of volumes will be permitted. In general, this 
> directive is useful for Autochangers where there is a fixed number of 
> Volumes, or for File storage where you wish to ensure that the backups 
> made to disk files do not become too numerous or consume too much space.
>
> I'd recommend you set this to a reasonable number for your setup.
 
Okay, but why should I be forced to manually specify this directive and
then restart bacula every time I add a new volume to the pool?  That
doesn't make much sense.

> The other solution, manually preparing the volumes and disabling 
> automatic labeling is something I haven't tried yet. Concerning your 
> setup, I'd suggest to remove the label format directive - perhaps, when 
> set, this allows automatic labeling even when the corresponding SD 
> device setting is No. If you can verify that behaviour, it would be 
> worth a bug report, I think.
 
As I have already stated, LabelMedia was changed to 'No' and bacula
processes completely stopped and restarted, and it continues to create new
volumes in the pool that have no physical reality.

> I don not see where the documentation is misleading except for, perhaps, 
> the last item above. After all, it states "Bacula can automatically 
> label Volumes if instructed to do so, but this feature is not yet fully 
> implemented." ;-)
 
It talks about recycling with example configurations.  I'm using more or
less exactly one of the examples, and it doesn't recycle as documented.  It
does create new volumes (from thin air with no physical reality) and that
is not discussed anywhere in the documentation.

> If, after you changed your configuration accordingly, bacula still 
> insists on creating new volumes, you should run the director with lots 
> of debug output, capture that, find the places where it looks for a 
> volume to use, and post the relevant debug log parts to the list.

Before I go to all of that trouble, could someone kindly look at the
configuration I posted and tell me what is missing?  I'm fairly certain
that it is a configuration problem.  I doubt that so many people using it
wouldn't have found this problem before.  Could someone please review the
configuration for sanity?

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