Here is the results from the ID list:
root@backup:~# ls /dev/tape/by-id/
scsi-35001438004d2b338  scsi-35001438004d2b338-changer 
 scsi-35001438004d2b339  scsi-35001438004d2b339-nst  scsi-HU1205LUW6 
 scsi-HU1205LUW6-nst  scsi-MXA225Z00B

>From looking at the list the ID would be:  scsi-35001438004d2b339-nst.   Or 
am I totally wrong here?

Greg
On Thursday, April 9, 2026 at 12:18:17 PM UTC-5 Gregory West wrote:

> Thank you for that information, I was wondering before.    I have updates 
> the TapeDrives.conf
> Device {
>   Name = tapedrive-0
>   DeviceType = tape
>   DriveIndex = 0
>   ArchiveDevice = /dev/nst0
> .....
> and 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"
> }
> Quick question should the device in the autochanger-0.conf be 
> 'tapedrive-0' (the name of the first tape drive) or TapeDrives (the name of 
> the config file)   In time I will have more than one tape drive.
>
> On Thursday, April 9, 2026 at 3:03:23 AM UTC-5 Bruno Friedmann 
> (bruno-at-bareos) wrote:
>
>> 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/17e8c30e-76b5-45e1-87cd-753dea16ed63n%40googlegroups.com.

Reply via email to