Bacula-users

Re: [Bacula-users] Automatic Volume creation

2011-07-06 06:58:36
Subject: Re: [Bacula-users] Automatic Volume creation
From: Jeremy Maes <jma AT schaubroeck DOT be>
To: "Robert.Mortimer" <Robert.Mortimer AT lifestylegroup.co DOT uk>
Date: Wed, 06 Jul 2011 12:54:47 +0200
Op 6/07/2011 10:17, Robert.Mortimer schreef:
Hi,

I have Bacula running with an IBM TL3400. As the tapes are bar coded
Bacula can read the library and add the tapes to it's catalogue. I can
than move then to the backup pools. My issue is the tapes have not had a
volume written to the front of the tape using the label command they
fail to mount with the following bconsole status. 

Device "Drive-3" (/dev/nst2) open but no Bacula volume is currently
mounted.
    Device is BLOCKED waiting for mount of volume "CBP10020",
       Pool:        snapshot-pool
       Media type:  LTO-3
    Slot 11 is loaded in drive 2.
    Total Bytes Read=0 Blocks Read=0 Bytes/block=0
    Positioned at File=0 Block=0


Tape CBP10020 is in /dev/nst2 but is blank. How do I get Bacula to
automatically initialise the tape and write the volume label. My storage
definition is as follows:-

From what I know all you need is one command to label all the tapes with their barcode. Or as the manual reads:

If your autochanger has barcode labels, you can label all the Volumes in your autochanger one after another
by using the label barcodes command. For each tape in the changer containing a barcode, Bacula will
mount the tape and then label it with the same name as the barcode. An appropriate Media record will
also be created in the catalog. Any barcode that begins with the same characters as specified on the
”CleaningPrefix=xxx” command, will be treated as a cleaning tape, and will not be labeled.


I sort of assumed that AutomaticMount would do it. I am reluctant to use
LabelMedia because I am not sure it will use that label on the bar code
rather than issuing a new one. Can anyone confirm that behaviour of
LabelMedia when used with a bar coded auto-changer?

Robert Mortimer
Linux Systems Administrator
I don't think you'll need LabelMedia as that would indeed label the tapes with a label as specified by the LabelFormat directive you'd put in there with it. The command above should achieve what you want.

More on autochangers in Chapter 31 of the manual :)

Regards,
Jeremy

**** DISCLAIMER ****
http://www.schaubroeck.be/maildisclaimer.htm

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
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>