The directive is "Maximum Volume Number" and it works.

Without this directive, with auto labelling on, BACULA continues to label new volumes even if some purged ones are available. At least this was what I found out with 1.36.3.

Really "Maximum Volume Number" simply stops auto labelling if the number in the volume name goes over that value, regardless of how many volumes are in the pool (because of deletions).

--------------------------------------------------------------------------
Ferdinando Pasqualetti
G.T.Dati srl
Tel. 0557310862 - 3356172731 - Fax 055720143




[EMAIL PROTECTED] wrote on 03/12/2005 00.09.57:

> Hello Phil,
>
> Please always copy the list.
>
> There is no such directive as "Number of Volumes".  I don't know whyit was in
> the manual, and it is even more strange that no one ever complained before.  
> I've removed it from the doc.
>
> On Friday 02 December 2005 20:26, Phil Schwartz wrote:
> > Hi again Kern,
> >
> > I'm tweking one of my bacula-dir.conf files as per the docs:
> >
> > http://www.bacula.org/rel-manual/Configuring_Director.html#PoolResource
> >
> > and when I added:
> >
> > Number of Volumes = 60
> >
> > to one of my Pool resources and then re-started bacula I received this:
> >
> > 02-Dec 11:06 bacula-dir: ERROR TERMINATION at parse_conf.c:834
> > Config error: Keyword "NumberOfVolumes" not permitted in this resource.
> > Perhaps you left the trailing brace off of the previous resource.
> >
> >              : line 334, col 20 of file /etc/bacula/config/bacula-dir.conf
> >
> >    Number Of Volumes = 60
> >
> >
> > I'm using Bacula v1.38.
> >
> > Perhaps this parameter has been deprecated but not according to the
> > documentation:
> >
> > Number of Volumes = <number>
> >      This directive specifies the number of volumes (tapes or files)
> > contained in the pool. Normally, it is defined and updated automatically
> > by the Bacula catalog handling routines.
> >
> > The reason I was attempting to set this variable is such: I have a
> > configuration where the Client resource has this:
> >
> > File Retention = 60 days
> >
> > Basically, I want the data to be stored (on disk) as backup-0001,
> > backup-0002, ... backup-0060.  With my current setup, I noticed the the
> > volumes were being recycled much quicker than expected (after 7).  
>
> Gee, on one hand users are complaining that Bacula won't recycle, and on the
> other your volumes are getting recycled too quickly.  It would be nice if all
> you guys could get together and come out with a nice happy median  :-)
>
> In both cases, I suspect that it is because the Volume retention times
> actually set in the Volume (Media) entries are not what you currently have in
> your Pool definition ...
>
> > That
> > is, backup-0001 .. backup-0007, backup-0001.  I'm not sure why Bacula
> > wants to recycle the volume so quickly, here is a Pool definition that I
> > have been using:
> >
> > Pool {
> >    Name = "foo"
> >    Pool Type = Backup
> >    Recycle = yes
> >    AutoPrune = yes
> >    Accept Any Volume = yes
> >    Maximum Volume Jobs = 1
> >    Label Format = "backup-"
> > }
> >
> > I thought that if I added "Number of Volumes = 60" that I could achieve my
> > goal ( backup-0001 ... backup-0060 ).  What painfully obvious thing am I
> > missing?
>
> Perhaps you want "Maximum Volumes = 60".
>
> >
> > Thanks for any clues,
> >
> > Phil
>
> --
> Best regards,
>
> Kern
>
>   (">
>   /\
>   V_V
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to