Bacula-users

Re: [Bacula-users] create volumes from autochanger slots, without label

2008-07-02 10:45:22
Subject: Re: [Bacula-users] create volumes from autochanger slots, without label
From: Bob Hetzel <beh AT case DOT edu>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 02 Jul 2008 10:45:05 -0400
I think I found the option to make this work properly.  In the Device 
section of the bacula-sd.conf I added Label Media=yes and it seems to be 
working now.

I actually checked the docs over and over for this and found some 
confusing info...

At http://www.bacula.org/en/rel-manual/Basic_Volume_Management.html#15301
it says
"Please note that automatic Volume labeling can also be used with tapes, 
but it is not nearly so practical since the tapes must be pre-mounted. 
This requires some user interaction. Automatic labeling from templates 
does NOT work with autochangers since Bacula will not access unknown 
slots. There are several methods of labeling all volumes in an 
autochanger magazine. For more information on this, please see the 
Autochanger chapter of this manual."
The Autochanger chapter at 
http://www.bacula.org/en/rel-manual/Autochanger_Support.html#AutochangersChapter

of course doesn't say anything about this directive either.  In fact, 
the only places I could find it were with respect to disk and fifo 
backups.

Perhaps something in the Autochanger section that says...

Label Media = Yes|No
    For tape backups, the media will be labelled automatically when 
needed if it is all of a) blank, b) in the catalog, c) barcoded.  To get 
new media in the catalog use the Add command in the console program. 
For disk backups don't forget to specify a format for bacula to use as 
the label--see Label Format directive in the Pool resource of the Director.

Something like this note should be added to the Device section of the 
Storage Daemon too.

Have I left anything out now?

     Bob

Bob Hetzel wrote:
> I finally got around to testing this in my configuration... still not 
> working as I'd want.  I added a tape to the changer, ran the add command 
> to add it to the catalog and place it in the Scratch pool.  When bacula 
> got around to wanting that tape from the Scratch pool it changed the 
> pool to be right but didn't label it.  Instead I got a mount request.
> I then noted that the tape record was...
> 
> | MediaId | VolumeName | VolStatus | Enabled | VolBytes
> | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType
> | LastWritten         |
> 
> |      93 | LTO278L2   | Append    |       1 |               0
> |        0 |    7,776,000 |       1 |    0 |         1 | LTO-2
> | 0000-00-00 00:00:00 |
> 
> Note that it set InChanger to 1 but the Slot value didn't get set.
> 
> Are there other settings I need to use to have bacula label tapes 
> automatically with their barcodes?
> 
>    Bob
> 
> Alan Brown wrote:
>> On Fri, 20 Jun 2008, Bob Hetzel wrote:
>>
>>> I can't find good documentation on this.  Can you clarify the procedure
>>> you follow to avoid using the label command?
>>
>> If a Volume exists in the catalog, AND the tape loaded in the autochanger
>> is _blank_ (generates an I/O error when Bacula attempts to read the 
>> label)
>> AND there is no record of the Volume ever haveing been written to, THEN
>> Bacula will automatically label the media
>>
>> It's a very useful piece of coding which saves a LOT of time and effort
>> when adding fresh media to pools.
>>
>> AB
>>
> 

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
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>