Bacula-users

Re: [Bacula-users] next tape autolabel source

2008-11-07 22:49:44
Subject: Re: [Bacula-users] next tape autolabel source
From: "John Drescher" <drescherjm AT gmail DOT com>
To: "James Harper" <james.harper AT bendigoit.com DOT au>
Date: Fri, 7 Nov 2008 22:46:32 -0500
On Fri, Nov 7, 2008 at 9:10 PM, James Harper
<james.harper AT bendigoit.com DOT au> wrote:
>> On Fri, Nov 7, 2008 at 7:39 AM, James Harper
>> <james.harper AT bendigoit.com DOT au> wrote:
>> > Quick question - I've been looking through the docs and the source
> code
>> > and can't find the answer - where does bacula store the counter for
> the
>> > next tape label number?
>> >
>>
>> It does not. It gets that from the database.
>
> If it stores it in the database, do you know what table? I have looked
> through all the tables and can't see what counter would represent 'last
> tape labelled' or 'next autolabel number'...
>
> Basically, I want to reset the counter to a given number.
>
There is no counter. It finds the maximum mediaid of all the volumes
that exist in the database. I believe the only way to reset this
counter is to delete all of your media in every pool.


Here is some info on why this is so:
http://sourceforge.net/mailarchive/forum.php?thread_name=479E22E3.40805%40neuro-tech.net&forum_name=bacula-devel


BTW, I am going on vacation in 6 hours and will not be back till the
15th or 16th. I am not sure if I will have internet access in during
this time so I probably will not be able to reply again until I
return.

John

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>