Aha! There's my problem: I neglected to edit the Autochanger section's
"Changer Command =" line to reflect my own server's directory structure.

It seems to be working now. There's no initial error message when I launch
btape, and the autochanger test section has passed. I'm moving on to the
multiple-tape fill test. (Good thing it's the weekend!)

-dP

-----Original Message-----
From: Michael Nelson [SPAM-Blocked] 
Sent: Friday, April 27, 2007 5:03 PM
To: Petcher, Daniel
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Dell PV124T (LTO3) autochanger problem remains

Daniel, here's my bacula-sd.conf file which works fine with my Quantum
Superloader3 with a single LTO-3 drive:

#
# Bacula Storage Daemon Configuration file # #  For Bacula release 1.38.11
(28 June 2006) -- redhat #

Storage {                             # definition of myself
  Name = nts-sd
  SDPort = 9103                  # Director's port
  WorkingDirectory = "/var/bacula"
  Pid Directory = "/var/run"
  Maximum Concurrent Jobs = 20
}

#
# List Directors who are permitted to contact Storage daemon # Director {
  Name = nts-dir
  Password = ""
}

#
# Restricted Director, used by tray-monitor to get the
#   status of the storage daemon
#
Director {
  Name = nts-mon
  Password = ""
  Monitor = yes
}

#
# Devices supported by this Storage daemon # To connect, the Director's
bacula-dir.conf must have the #  same Name and MediaType.
#

Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /var/bacula/archive
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}

#
# An autochanger device with two drives
#
Autochanger {
  Name = Autochanger
  Device = Drive-1
  Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg3
}


Device {
  Name = Drive-1                      #
  Drive Index = 0
  Media Type = LTO-3
  Archive Device = /dev/nst0
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  Maximum Spool Size =  161061273600 # 150GB in bytes
  Maximum Job Spool Size = 107374182400 #100GB in bytes
  Spool Directory = /var/bacula/spool
  AutoChanger = yes
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}

#
# Send all messages to the Director,
# mount messages also are sent to the email address # Messages {
  Name = Standard
  director = nts-dir = all
}

Here is the pertinent section from bacula-dir.conf:

# Definition of LTO-3 tape storage device Storage {
  Name = Autochanger
  Address = 10.10.0.8
  SDPort = 9103
  Password = ""
  Device = Drive-1                      # must be same as Device in Storage
daemon
  Media Type = LTO-3                   # must be same as MediaType in
Storage daemon
  Autochanger = yes                   # enable for autochanger device
}

Try modifying those to fit your configuration.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to