You can't have both tape device and autochanger pointing to the same scsi
target here you are using /dev/sg0
Either the changer is sg0 and the drive maybe sg1
The tape drive should point the the non-streaming device (usually /dev/nst0
or better to use it's unique id)
/dev/tape/by-id/XXXXX
On Wednesday, 8 April 2026 at 20:50:34 UTC+2 Gregory West wrote:
> I found one issue in the content of the /autochangers dir. An extra
> .conf file that should not be there. File deleted bareos-sd restarted now
> getting the following error:
> 3910 Unable to open device ""tapedrive-0" (/dev/sg0)":
> ERR=backends/generic_tape_device.cc:130 Unable to open device "tapedrive-0"
> (/dev/sg0): ERR=Invalid argument
>
> On Wednesday, April 8, 2026 at 1:43:55 PM UTC-5 Gregory West wrote:
>
>> I am new to Bareos, and using an autochanger. And yes I am a gluten for
>> punishment. I have the following config files (see below). When I do a
>> * label -> 2: Tape bconsole seems to just sit there. Obviously I have
>> something wrong in my configs. I just can not figure what. Any
>> assistance would be great.
>>
>> Greg
>> /etc/bareos/bareos-dir.d/storage/Tape.conf
>> Storage {
>> Name = Tape
>> Address = backup # N.B. Use a fully qualified name here
>> (do not use "localhost" here).
>> Password = " the ultra secret password "
>> Device = autochanger-0
>> Media Type = LTO
>> Auto Changer = yes
>> }
>>
>> /etc/bareos/bareos-sd.d/autochanger/autochanger-0.conf
>> Autochanger {
>> Name = autochanger-0
>> Changer Device = /dev/sg0
>> Device = tapedrive-0
>> Changer Command = "/usr/lib/bareos/scripts/mtx-changer %c %o %S %a %d"
>> }
>>
>> /etc/bareos/bareos-sd.d/device/tapedrives.conf
>> Device {
>> Name = tapedrive-0
>> DeviceType = tape
>> DriveIndex = 0
>> ArchiveDevice = /dev/sg0
>> MediaType = LTO
>> AutoChanger = yes # default: no
>> AutomaticMount = yes # default: no
>> MaximumFileSize = 10GB # default: 1000000000 (1GB)
>> LabelMedia = yes
>> RemovableMedia = yes
>> Autoselect = yes
>> }
>>
>
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/bareos-users/35fa1d1d-e13b-4668-a4e1-88568d7a9354n%40googlegroups.com.