Not sure what is your issue there (bareos user on the system just have to belong to tape group)
here's a whole definition I use for myself
cat /etc/bareos/bareos-sd.d/autochanger/autochanger-0.conf /etc/bareos/bareos-sd.d/device/tapedrive-[0,1].conf
Autochanger {
Name = "autochanger-0"
# adapt this, to match your storage loader
Changer Device = /dev/tape/by-id/scsi-1ADIC_Scalar_24_32A6A17932A6A17932A6A179-changer
# an Autochanger can contain multiple drive devices
Device = tapedrive-0
Device = tapedrive-1
Changer Command = "/usr/lib/bareos/scripts/mtx-changer %c %o %S %a %d"
}
Device {
Name = "tapedrive-0"
DeviceType = tape
DriveIndex = 0
Archive Device = /dev/tape/by-id/scsi-32036463934333846-nst
# Archive Device = /dev/nst0
MediaType = LTO8
AutoChanger = yes
AutomaticMount = yes
MaximumFileSize = 10GB
Maximum Concurrent Jobs = 1
Drive Tape Alert Enabled = yes
Drive Crypto Enabled = yes
Query Crypto Status = yes
}
Device {
Name = "tapedrive-1"
DeviceType = tape
DriveIndex = 1
Archive Device = /dev/tape/by-id/scsi-32037353139353635-nst
# Archive Device = /dev/nst1
MediaType = LTO8
AutoChanger = yes
AutomaticMount = yes
MaximumFileSize = 10GB
Maximum Concurrent Jobs = 1
Drive Tape Alert Enabled = yes
Drive Crypto Enabled = yes
Query Crypto Status = yes
}
ls -lh /dev/tape/by-id/
total 0
lrwxrwxrwx. 1 root root 9 Apr 13 10:16 scsi-1ADIC_Scalar_24_32A6A17932A6A17932A6A179 -> ../../sg5
lrwxrwxrwx. 1 root root 9 Apr 13 10:16 scsi-1ADIC_Scalar_24_32A6A17932A6A17932A6A179-changer -> ../../sg5
lrwxrwxrwx. 1 root root 9 Apr 13 10:16 scsi-32036463934333846 -> ../../st0
lrwxrwxrwx. 1 root root 10 Apr 13 10:16 scsi-32036463934333846-nst -> ../../nst0
lrwxrwxrwx. 1 root root 9 Apr 13 10:16 scsi-32037353139353635 -> ../../st1
lrwxrwxrwx. 1 root root 10 Apr 13 10:16 scsi-32037353139353635-nst -> ../../nst1
lrwxrwxrwx. 1 root root 9 Apr 13 10:16 scsi-32A6A17932A6A17932A6A179 -> ../../sg5
lrwxrwxrwx. 1 root root 9 Apr 13 10:16 scsi-6F94D0386F -> ../../st0
lrwxrwxrwx. 1 root root 10 Apr 13 10:16 scsi-6F94D0386F-nst -> ../../nst0
lrwxrwxrwx. 1 root root 9 Apr 13 10:16 scsi-7519575675 -> ../../st1
lrwxrwxrwx. 1 root root 10 Apr 13 10:16 scsi-7519575675-nst -> ../../nst1
lsscsi -g
[0:0:0:0] disk QEMU QEMU HARDDISK 2.5+ /dev/sda /dev/sg0
[0:0:0:1] disk QEMU QEMU HARDDISK 2.5+ /dev/sdb /dev/sg1
[3:0:0:0] cd/dvd QEMU QEMU DVD-ROM 2.5+ /dev/sr0 /dev/sg2
[7:0:0:0] mediumx ADIC Scalar 24 D.00 /dev/sch0 /dev/sg5
[8:0:0:0] tape IBM ULT3580-TD9 HB91 /dev/st0 /dev/sg3
[9:0:0:0] tape IBM ULT3580-TD9 HB91 /dev/st1 /dev/sg4
on the director the autochanger storage is defined like this
cat /etc/bareos/bareos-dir.d/storage/autochanger-0.conf
Storage {
Name = autochanger-0
Address = bareos-sd
Password = "alwayssecret"
Device = autochanger-0
Media Type = LTO8
Auto Changer = yes
Maximum Concurrent Jobs = 2
}
I hope this will help you to understand what's happen on your side.
in /etc/bareos/mtx-changer you can also activate debug mode to log commands, visible then in /var/log/bareos/mtx.log