Please recheck the latest addition we made to the documentation about LTO9

https://docs.bareos.org/TasksAndConcepts/AutochangerSupport.html#lto-9-media-initialization

You should also change according the mtx-changer.conf which has a timeout 
of 300 by default 

On Monday, 13 January 2025 at 21:53:24 UTC+1 Michael Bales wrote:

> I'm working on setting up bareos on a fresh ubuntu 24.04 install and i 
> keep running into an issue when trying to label barcodes:
>
> admin@secbackup-01:~$ sudo bconsole
> Connecting to Director localhost:9101
>  Encryption: TLS_CHACHA20_POLY1305_SHA256 TLSv1.3
> 1000 OK: bareos-dir Version: 24.0.1~pre10.a2e4f6ebf (22 December 2024)
> Bareos community build (UNSUPPORTED).
> Get professional support from https://www.bareos.com
> You are connected using the default console
>
> Enter a period (.) to cancel a command.
> *label barcodes
> Automatically selected Catalog: MyCatalog
> Using Catalog "MyCatalog"
> Automatically selected Storage: MSL3040-Storage
> Select Drive:
> 1: Drive 0
> 2: Drive 1
> Select drive (1-2): 1
> Connecting to Storage daemon MSL3040-Storage at secbackup-01:9103 ...
> 3306 Issuing autochanger "list" command.
> The following Volumes will be labeled:
> Slot  Volume
> ==============
>    1  100002
>    2  100030
>    3  100003
>    4  100004
>    5  100005
>    6  100006
>    7  100007
>    8  100008
>    9  100009
>   10  100010
>   11  100011
>   12  100012
>   13  100013
>   14  100014
>   15  100015
>   16  100016
>   17  100017
>   18  100018
>   19  100019
>   20  100020
>   21  100021
>   22  100037
>   23  100038
>   24  100039
>   25  100100
>   26  100031
>   27  100032
>   28  100033
>   29  100034
>   30  100035
>   31  100026
>   32  100027
>   33  100028
>   34  100029
>   35  100001
> Do you want to label these Volumes? (yes|no): yes
> Defined Pools:
> 1: Incremental
> 2: Full
> 3: Differential
> 4: Scratch
> Select the Pool (1-4): 4
> Media record for Slot 1 Volume "100002" already exists.
> Connecting to Storage daemon MSL3040-Storage at secbackup-01:9103 ...
> Sending label command for Volume "100030" Slot 2 ...
> 3307 Issuing autochanger "unload slot 1, drive 0" command.
> 3307 Issuing autochanger "unload slot 2, drive 1" command.
> 3997 Bad autochanger "unload slot 2, drive 1": ERR=Child exited with code 
> 1.
> Label command failed for Volume 100030.
> Media record for Slot 3 Volume "100003" already exists.
> Media record for Slot 4 Volume "100004" already exists.
> Media record for Slot 5 Volume "100005" already exists.
> Sending label command for Volume "100006" Slot 6 ...
> 3304 Issuing autochanger "load slot 6, drive 0" command.
> 3305 Autochanger "load slot 6, drive 0", status is OK.
> 3000 OK label. VolFiles=1 VolBytes=64512 Volume="100006" 
> Device="TapeDrive1" (/dev/tape/by-id/scsi-35001438031be606b-nst)
> Catalog record for Volume "100006", Slot 6 successfully created.
> Sending label command for Volume "100007" Slot 7 ...
> 3307 Issuing autochanger "unload slot 6, drive 0" command.
> 3304 Issuing autochanger "load slot 7, drive 0" command.
> 3305 Autochanger "load slot 7, drive 0", status is OK.
> 3920 Cannot label Volume because it is already labeled: "100006"
> Label command failed for Volume 100007.
> Sending label command for Volume "100008" Slot 8 ...
> 3307 Issuing autochanger "unload slot 7, drive 0" command.
> 3304 Issuing autochanger "load slot 8, drive 0" command.
> 3305 Autochanger "load slot 8, drive 0", status is OK.
> 3920 Cannot label Volume because it is already labeled: "100006"
> Label command failed for Volume 100008.
> Sending label command for Volume "100009" Slot 9 ...
> 3307 Issuing autochanger "unload slot 8, drive 0" command.
> 3304 Issuing autochanger "load slot 9, drive 0" command.
> 3305 Autochanger "load slot 9, drive 0", status is OK.
> 3920 Cannot label Volume because it is already labeled: "100006"
> Label command failed for Volume 100009.
> Sending label command for Volume "100010" Slot 10 ...
> 3307 Issuing autochanger "unload slot 9, drive 0" command.
>
> It seems like its not actually ejecting the tape and inserting the new 
> one. Running a manual btape test works correctly with the auto changer so 
> I'm stumped. Below is the configs i've setup for the system:
>
> admin@secbackup-01:~$ sudo cat /etc/bareos/bareos-sd.d/device/msl3040.conf
> # Device for Tape Drive 1
> Device {
>   Name = TapeDrive1
>   MediaType = LTO9
>   ArchiveDevice = /dev/tape/by-id/scsi-35001438031be606b-nst
>   AutomaticMount = yes
>   RemovableMedia = yes
>   AlwaysOpen = yes 
>   Autochanger = yes
>   Drive Index = 0
>   LabelMedia = yes
>   Autoselect = yes
>   RandomAccess = no
>
>   Maximum Rewind Wait = 900 
>   Maximum Open Wait = 900
>   Maximum Changer Wait = 900
> }
>
> # Device for Tape Drive 2
> Device {
>   Name = TapeDrive2
>   MediaType = LTO9
>   ArchiveDevice = /dev/tape/by-id/scsi-35001438031be6061-nst
>   AutomaticMount = yes
>   RemovableMedia = yes
>   AlwaysOpen = yes 
>   Autochanger = yes
>   Drive Index = 1
>   LabelMedia = yes
>   Autoselect = yes
>   RandomAccess = no
>
>   Maximum Rewind Wait = 900
>   Maximum Open Wait = 900
>   Maximum Changer Wait = 900
> }
>
> # Autochanger Configuration
> Autochanger {
>   Name = MSL3040-Changer
>   Device = TapeDrive1
>   Device = TapeDrive2
>   Changer Command = "/usr/lib/bareos/scripts/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/tape/by-id/scsi-35001438031be6064-changer
> }
>
> admin@secbackup-01:~$ sudo cat 
> /etc/bareos/bareos-dir.d/director/bareos-dir.conf
> Director {                            # define myself
>   Name = bareos-dir
>   QueryFile = "/usr/lib/bareos/scripts/query.sql"
>   Maximum Concurrent Jobs = 10
>   Password = "password"         # Console password
>   Messages = Daemon
>   Auditing = yes
> }
>
> admin@secbackup-01:~$  sudo cat /etc/bareos/bareos-dir.d/pool/Scratch.conf
> Pool {
>   Name = Scratch
>   Pool Type = Scratch
>   Recycle Pool = Scratch
> }
>
> admin@secbackup-01:~$ sudo cat 
> /etc/bareos/bareos-sd.d/storage/bareos-sd.conf
> # Global settings
> Storage {
>   Name = BareosStorage
>   SDPort = 9103
>   WorkingDirectory = /var/lib/bareos
> }
>

-- 
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/e040d2af-ffbd-4974-818e-967e64f44868n%40googlegroups.com.

Reply via email to