Bacula-users

[Bacula-users] Bacula thinks the drive is a DVD

2008-05-05 16:05:25
Subject: [Bacula-users] Bacula thinks the drive is a DVD
From: "John BORIS" <jboris AT adphila DOT org>
To: <bacula-users AT lists.sourceforge DOT net>
Date: Mon, 05 May 2008 16:04:59 -0400
LINUX Fedora 6, Dell 124t with one drive and 8 tapes in the magazine.
I thought I had this configured properly. I started bconsole and issued
a label barcodes and saw this response:

*label barcodes
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
The defined Storage resources are:
     1: File
     2: LTO-2
Select Storage resource (1-2): 2
Connecting to Storage daemon LTO-2 at jerome:9103 ...
Connecting to Storage daemon LTO-2 at jerome:9103 ...
3306 Issuing autochanger "slots" command.
Device "Drive-1" has 8 slots.
Connecting to Storage daemon LTO-2 at jerome:9103 ...
3306 Issuing autochanger "list" command.
The following Volumes will be labeled:
Slot  Volume
==============
   1  000101L2
   2  000102L2
   3  000103L2
   5  000105L2
   6  000106L2
   7  000107L2
   8  000108L2
   4  000104L2
Do you want to label these Volumes? (yes|no): yes
Defined Pools:
     1: Default
     2: Scratch
Select the Pool (1-2): 1
Connecting to Storage daemon LTO-2 at jerome:9103 ...
Sending label command for Volume "000101L2" Slot 1 ...
3307 Issuing autochanger "unload slot 4, drive 0" command.
3304 Issuing autochanger "load slot 1, drive 0" command.
3305 Autochanger "load slot 1, drive 0", status is OK.
3301 Issuing autochanger "loaded? drive 0" command.
3302 Autochanger "loaded? drive 0", result is Slot 1.
3000 OK label. VolBytes=64512 DVD=0 Volume="000101L2" Device="Drive-1"
(/dev/nst1)
Catalog record for Volume "000101L2", Slot 1  successfully created.
Sending label command for Volume "000102L2" Slot 2 ...
3307 Issuing autochanger "unload slot 1, drive 0" command.
3304 Issuing autochanger "load slot 2, drive 0" command.
3305 Autochanger "load slot 2, drive 0", status is OK.
3301 Issuing autochanger "loaded? drive 0" command.
3302 Autochanger "loaded? drive 0", result is Slot 2.
block.c:275 Volume data error at 0:0! Wanted ID: "BB02", got "". Buffer
discarded.
3000 OK label. VolBytes=64512 DVD=0 Volume="000102L2" Device="Drive-1"
(/dev/nst1)
Catalog record for Volume "000102L2", Slot 2  successfully created.
Sending label command for Volume "000103L2" Slot 3 ...



No where in any of the configuration files do I have the DVD writer
defined.


In bacula-dir.conf I have this:

JobDefs {
  Name = "MainJob"
  Type = Backup
  Level = Incremental
  Client = jerome-fd
  FileSet = "Full Set"
  Schedule = "WeeklyCycle"
  Storage = LTO-2
  Messages = Standard
  Pool = Default
  Priority = 10
}
Job {
  Name = "Client2"
  Client = jerome-fd
  JobDefs = "MainJob"
  Write Bootstrap = "/root/bacula/bin/working/Client2.bsr"
}


In bacula-sd.conf I have this:

Autochanger {
  Name = Autochanger
  Device = Drive-1
  Changer Command = "/home/kern/bacula/bin/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg4
}

Device {
  Name = Drive-1                      #
  Drive Index = 0
  Media Type = LTO-2
  Archive Device = /dev/nst1
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
 Changer Command = "/root/bacula/bin/mtx-changer %c %o %S %a %d"
 Changer Device = /dev/sg4
  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'"
}



I have run the tests in the Test your tape drive section of the manual
and I see the tapes move. Where is it getting the DVD info?

If I want to start over how do I clear out the database and start
over?

TIA

John J. Boris, Sr.
JEN-A-SyS Administrator
Archdiocese of Philadelphia
"Remember! That light at the end of the tunnel
Just might be the headlight of an oncoming train!"

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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>