I try to set up a HP 1x8 Changer and an LTO drive.

I defined it in

* bacula-sd.conf

Device {
  Name = "HP-LTO7"
  MediaType = "LTO-4"
  DeviceType = "Tape"
  ArchiveDevice = "/dev/nst0"
  LabelMedia = yes
  AlwaysOpen = yes
  Autochanger = yes
  MaximumFileSize = 20000000000
}
Autochanger {
  Name = "HP Autoloader"
  Description = "HP 1x8 Autoloader"
  Device = "HP-LTO7"
  ChangerDevice = "/dev/tape/by-id/scsi-350014380032d5e60-changer"
  ChangerCommand = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
}

and in

* bacula-dir.conf


Storage {
  Name = "HP Autoloader"
  SdPort = 9103
  Address = "localhost"
  Password = "xxxxx"
  Device = "HP Autoloader"
  MediaType = "LTO-4"
  Autochanger = yes
  MaximumConcurrentJobs = 10
}


That works, backups write and restores read from tapes!


I want to be able to manage the autochanger in Baculum-11.0.6, so I tried to copy the cfg from bacula-dir.

Currently I even see the drive and the Changer slots in baculum, but for example I cannot "Unload" the current tape. Why?

# cat /etc/bacula/baculum/Config-api-apache/devices.conf

[HP-LTO7]
type = "device"
device = "/dev/nst0"
index = "0"

[HP Autoloader]
type = "autochanger"
device = "/dev/tape/by-id/scsi-350014380032d5e60-changer"
command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
use_sudo = "1"
drives = "HP-LTO7"


My understanding is:

configure bacula-sd, then bacula-dir, test via bconsole

then proceed to copy the config into baculum

This is a debian-12.4 host with bacula from the debian repos, and baculum from "http://www.bacula.org/downloads/baculum/stable-11/debian";



_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to