I found this solution and it may help somebody: 1. Upgrade Bareos 2. Unload in order to unlabel tapes. You can execute this script for this task:
*#!/bin/bashMTX="/usr/lib/bareos/scripts/mtx-changer"CHANGER="/dev/sg5"DRIVE="/dev/nst0"SLOTS="1 2 3 4 5 6 7 8 9 10 11 12 13 14 15"for i in $SLOTSdo $MTX $CHANGER load $i $DRIVE 0 echo Processing drive rewind... mt -f $DRIVE rewind echo alles klar echo Processing drive weof mt -f $DRIVE weof... echo alles klar $MTX $CHANGER unload $i $DRIVE 0done* 3. Execute *label barcodes *in order *relabel* your tapes On Monday, 14 September 2020 at 13:48:37 UTC+2 [email protected] wrote: > > Hi everybody., > > I'm currently doing tests with Bareos (18.2.5-131.1) in order to perform a > Backup in a Tape Library (Quantum SuperLoader 3 LTO-6 HH SAS - 16 Slots) > and I've been facing a problem for a few days and unfortunately I can't > find the solution to the error. > > The center of the problem is that if a slot is mounted, then it goes out > of the pool, once I put it back into the pool it is unmounted. > > Here is the error message I get when it is in the Pool and unmounted: > > > *bareos-sd JobId 1183: Warning: Director wanted Volume "Incremental-0176". > Current Volume "000243L6" not acceptable because: 1998 Volume "000243L6" > catalog status is Append, not in Pool*. > > When it's mounted and out of the pool: > bareos-sd JobId 1180: Warning: stored/mount.cc:270 Open device "Drive-1" > (/dev/tape/by-id/scsi-300e09e60001e1d96-nst) Volume "Incremental-0176" > failed: ERR=backends/generic_tape_device.cc:146 Unable to open device > "Drive-1" (/dev/tape/by-id/scsi-300e09e60001e1d96-nst): ERR=Kein Medium > gefunden > > Note that when I do the simulation btape + autochanger, it works very well > without any error (of course when the slot is mounted) > > Here is my config: > > *root@debian-tape-skg:~# nano /etc/bareos/bareos-dir.d/job/QsanJob.conf* > Job { > Name = "QsanJob" > Type = Backup > Level = Full > Client = bareos-fd > # FileSet = "SelfTest" # selftest fileset > Default nach Installation (#13) > FileSet = "LinuxAll" # > Appliance > Schedule = "WeeklyCycle" > Storage = LTO-Changer > Messages = Standard > # Pool = Incremental # > Default nach Installation > Pool = "LTO-Pool" > Priority = 10 > Write Bootstrap = "/var/lib/bareos/%c.bsr" > Full Backup Pool = LTO-Pool > # Full Backup Pool = Full write Full Backups into "Full" Pool / Default > nach Installation (#05) > # Differential Backup Pool = Differential # write Diff > Backups into "Differential" Pool / Default nach Installation (#08) > # Incremental Backup Pool = Incremental # write Incr > Backups into "Incremental" Pool / Default nach Installation (#11) > RunScript { > RunsOnSuccess = Yes > RunsOnClient = Yes > RunsWhen = After > Command = "/etc/bareos/rename_tar.sh" > } > } > > *root@debian-tape-skg:~# nano > /etc/bareos/bareos-dir.d/storage/LTO-Changer.conf* > Storage { > Name = "LTO-Changer" > Address = "debian-tape-skg" > # Password = "[md5]7a826c8574f01327c8a63bdc0bb08aa7" > Password = "ZtKdnygWiToQTAqqjndhv47bXUVt9sGTQl0n6SuqgRFG" > Device = "Drive-1" > # AutoChanger = yes > MediaType = "LTO-6" > Auto Changer = yes > } > > *root@debian-tape-skg:/etc/bareos/bareos-sd.d/autochanger/LTO-Changer.conf* > Autochanger { > Name = LTO-Changer > Device = Drive-1 > Changer Command = "/usr/lib/bareos/scripts/mtx-changer %c %o %S %a %d" > #Changer Device = > /dev/sg ###### kann > sich ändern, war initial sg1 > Changer Device = /dev/tape/by-id/scsi-3500e09efff0fac22 > # Changer Device = /dev/tape/by-id/scsi-300e09e60001e1d96 > } > > *root@debian-tape-skg:/etc/bareos/bareos-sd.d/device/Drive-1.conf* > Device { > Name = Drive-1 # > # DeviceType = tape # geändert 06.02.2019 > Drive Index = 0 > Media Type = LTO-6 > # Archive Device = /dev/sg0 > #Archive Device = /dev/nst0 > Archive Device = /dev/tape/by-id/scsi-300e09e60001e1d96-nst > #Archive Device = /dev/st0 > #Auto Changer = yes > #Drive Index = 0 > Check Labels = yes # geändert 06.02.2019 > AutomaticMount = yes; # when device opened, read it > AlwaysOpen = yes; > Label Media = yes; > RemovableMedia = yes; > RandomAccess = no; > Autochanger = yes > MaximumFileSize = 10GB # geändert 06.02.2019 > } > > Regards > Mohamed > > > > > > > -- 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 on the web visit https://groups.google.com/d/msgid/bareos-users/f87f2528-3bc0-4c5f-8fbe-7361d29c2d12n%40googlegroups.com.
