Bacula-users

Re: [Bacula-users] Automatic volume numbering

2009-04-05 05:50:12
Subject: Re: [Bacula-users] Automatic volume numbering
From: Mike Ruskai <thannyd AT earthlink DOT net>
Date: Sun, 05 Apr 2009 05:47:28 -0400
On 04/04/2009 04:52, Kevin Keane wrote:
> No, it's documented behavior. The numbers are actually the media IDs -
> basically, the database primary key. If you deleted these volumes from
> bacula completely, the numbering would start at 0005.
>    
Documented where, exactly?  I see no reference to this in the Director 
configuration documentation.

> The reason for this scheme is to ensure that there are no collisions.
>
>    
I'm not sure I see any potential for collision.  If two pools are 
defined with the same label format, that should be a configuration 
error.  With different label formats, there's no opportunity for a 
collision.

> If you really want the numbering the way you propose, look into using
> the {NumVolumes} variable expansion in your Label= statement (I think
> that is the name, I can't recall for sure off the top of the head). This
> variable contains the number of volumes in your pool, so counting always
> starts with 0. However, there is a risk of naming collisions.
>
>    
The only thing in the docs remotely like that is "Maximum Volumes", 
which I'm already using, and which obviously didn't influence the 
automatic labelling.

And I still don't see any opportunity for name collisions.


------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users