I have a Dell PowerVault 124T (LTO3) autochanger that I'm having trouble
connecting to Bacula. I've worked half-way through the default scripts for
installation, and now I want to do the btape tests, but I'm running into
errors on both the changer and the tape drive itself. I'm running Bacula
2.0.3 on SlackWare 10 with Linux kernel 2.6.9. I'm logged-in as root, and I
still have this trouble when I try to test my tape drive.... Now that I have
corrected some device names in my bacula-sd.conf file, I'm able to pass all
the tape read/write/position tests, but I still have this trouble when I get
to the autochanger section:
 
[EMAIL PROTECTED]:~/bacula/bin# ./btape -c bacula-sd.conf /dev/st0
Tape block granularity is 1024 bytes.
btape: butil.c:286 Using device: "/dev/st0" for writing.
27-Apr 16:42 btape: 3301 Issuing autochanger "loaded? drive 0" command.
27-Apr 16:42 btape: 3991 Bad autochanger "loaded? drive 0" command: ERR=No
such file or directory.
Results=
27-Apr 16:42 btape: 3301 Issuing autochanger "loaded? drive 0" command.
27-Apr 16:42 btape: 3991 Bad autochanger "loaded? drive 0" command: ERR=No
such file or directory.
Results=
btape: btape.c:368 open device "LTO-3" (/dev/st0): OK
*test
 
<snip>
 
=== Autochanger test ===
 
3301 Issuing autochanger "loaded" command.
3991 Bad autochanger command: /home/kern/bacula/bin/mtx-changer /dev/sg3
loaded 1 /dev/st0 0
3991 result="": ERR=No such file or directory
You must correct this error or the Autochanger will not work.
 
 
I know the third line from the bottom would be the wrong syntax for mtx
itself (too many parameters, missing "-f" and "loaded" should be "load"),
but it might be correct for bacula's mtx-changer utility for all I know.
 
Here is my bacula-sd.conf file (with passwords obscured and commented-out
sections removed):

[EMAIL PROTECTED]:~/bacula/bin# cat bacula-sd.conf
#
# Default Bacula Storage Daemon Configuration file
#
#  For Bacula release 2.0.3 (06 March 2007) -- slackware Slackware 10.0.0
#
# You may need to change the name of your tape drive
#   on the "Archive Device" directive in the Device
#   resource.  If you change the Name and/or the
#   "Media Type" in the Device resource, please ensure
#   that dird.conf has corresponding changes.
#
 
Storage {                             # definition of myself
  Name = epimetheus-sd
  SDPort = 9103                  # Director's port
  WorkingDirectory = "/root/bacula/bin/working"
  Pid Directory = "/root/bacula/bin/working"
  Maximum Concurrent Jobs = 20
}
 
#
# List Directors who are permitted to contact Storage daemon
#
Director {
  Name = epimetheus-dir
  Password = ""
}
 
#
# Restricted Director, used by tray-monitor to get the
#   status of the storage daemon
#
Director {
  Name = epimetheus-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 = /tmp
  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 = LTO-3
  Changer Command = "/home/kern/bacula/bin/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg3
}
 
Device {
  Name = LTO-3                      #
  Drive Index = 0
  Media Type = LTO-3
  Archive Device = /dev/st0
  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
#  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'"
}
 
#
# Send all messages to the Director,
# mount messages also are sent to the email address
#
Messages {
  Name = Standard
  director = epimetheus-dir = all
}

-dP
-------------------------------------------------------------------------
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