I edited the names and the device-names:

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

# lsscsi -g
[0:0:0:0]    disk    VMware   Virtual disk     2.0   /dev/sda   /dev/sg0
[1:0:0:0]    tape    HP       Ultrium 4-SCSI   U62W  /dev/st0   /dev/sg2
[1:0:0:1]    mediumx HP       1x8 G2 AUTOLDR   4.80  /dev/sch0  /dev/sg3
[4:0:0:0]    cd/dvd  NECVMWar VMware SATA CD00 1.00  /dev/sr0   /dev/sg1

/etc/bacula/scripts/mtx-changer /dev/sg3 slots
8


# /usr/sbin/bconsole
Connecting to Director localhost:9101
1000 OK: 103 debian1-dir Version: 9.6.7 (10 December 2020)
Enter a period to cancel a command.
*status slots
Automatically selected Storage: HP-Autoloader
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Connecting to Storage daemon HP-Autoloader at localhost:9103 ...
3306 Issuing autochanger "slots" command.
Device "HP-Autoloader" has 0 slots.
No slots in changer to scan.






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

Reply via email to