Bacula-users

Re: [Bacula-users] Labeling tapes

2014-09-03 13:40:33
Subject: Re: [Bacula-users] Labeling tapes
From: John Drescher <drescherjm AT gmail DOT com>
To: RAT <robert3t AT netzero DOT net>
Date: Wed, 3 Sep 2014 13:35:10 -0400
I assume you have a barcode reader on your autochanger. The command to
label is label barcodes. I do this and put all of the volumes in the
Scratch pool. When bacula does not have an appendable tape in a pool
it will fetch it from the Scratch pool.

John

On Wed, Sep 3, 2014 at 12:30 PM, RAT <robert3t AT netzero DOT net> wrote:
> Hello Bacula Users!
>
> I am trying to get Bacula running.  I have it working using disk.  I just 
> need it to use my tape drive.  I am using Linux CentOS 7 (on Dell 720) and a 
> Dell DL4000 tape library.
>
> P.S. Note the "Alert Command" setting (as I always get those 50/50 chances 
> wrong).
>
> ERROR:
>
> 03-Sep 11:21 bacula-sd JobId 13: Job DL4000.2014-09-03_11.21.39_05 is 
> waiting. Cannot find any appendable volumes.
> Please use the "label" command to create a new Volume for:
>     Storage:      "Drive1" (/dev/nst0)
>     Pool:         Default
>     Media type:   LTO-6-Drive
>
> CONFIG:
>
> [bacula-dir.conf]
> # Definition of DDS tape storage device
> Storage {
>   Name = DL4000
> #  Do not use "localhost" here
>    Address = [my FQDN here - RAT]      # N.B. Use a fully qualified name here
>    SDPort = 9103
>    Password = "[it's a secret]"        # password for Storage daemon
>    Device = Drive1                     # must be same as Device in Storage 
> daemon
>    Device = Drive2                     # must be same as Device in Storage 
> daemon
>    Device = Drive3                     # must be same as Device in Storage 
> daemon
>    Device = Drive4                     # must be same as Device in Storage 
> daemon
>    Media Type = LTO-6-Drive            # must be same MediaType in Storage 
> daemon
>    Autochanger = yes                   # enable for autochanger device
> }
>
> [bacula-sd.conf]
>
> # My Attempt to add the Dell DL4000
> #
> Autochanger {
>   Name = DL4000
>   Device = Drive1
>   Device = Drive2
>   Device = Drive3
>   Device = Drive4
>   Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/sg5
> }
>
> Device {
>   Name = Drive1                      #
>   Drive Index = 0
>   Media Type = LTO-6-Drive
>   Archive Device = /dev/nst0
>   AutomaticMount = yes;               # when device opened, read it
>   AlwaysOpen = yes;
>   RemovableMedia = yes;
>   RandomAccess = no;
>   AutoChanger = yes
> #  #
> #  # Enable the Alert command only if you have the mtx package loaded
> #  # Note, apparently on some systems, tapeinfo resets the SCSI controller
> #  #  thus if you turn this on, make sure it does not reset your SCSI
> #  #  controller.  I have never had any problems, and smartctl does
> #  #  not seem to cause such problems.
> #  #
> #  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
> #  If you have smartctl, enable this, it has more info than tapeinfo
>   Alert Command = "sh -c 'smartctl -H -l error %c'"
> }
>
> (similar X4 for the rest of drives)
>
> Robert Threet
> http://yesistilluseperl.blogspot.com/
> ____________________________________________________________
> Apple&#39;s new iPhone?
> Look closely. Because as you might guess, Apple is hiding something&#8230;
> http://thirdpartyoffers.netzero.net/TGL3231/54074283939e742822c7est03duc
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



-- 
John M. Drescher

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
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>