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