Hi List,
I'm using Bareos for my Linux Server backups, first of all bareos is a great software.
I firstly had a disk to disk strategy but now changing it to Disk-to-Disk-to-Tape-Backup.
For that i configured a autochanger which is already working outside of bareos.
But with bareos I'm not able to write jobs to a tape:
06-May 09:10 -dir JobId 62809: The following 2 JobIds were chosen to be copied: 61768,62773
06-May 09:10 -dir JobId 62809: Automatically selected Catalog: MyCatalog
06-May 09:10 -dir JobId 62809: Using Catalog "MyCatalog"
06-May 09:10 -dir JobId 62810: Copying using JobId=61768 Job=XXX
06-May 09:10 -dir JobId 62810: Bootstrap records written to /var/lib/bareos/XXX.bsr
06-May 09:10 -dir JobId 62809: Job queued. JobId=62810
06-May 09:10 -dir JobId 62809: Copying JobId 62810 started.
06-May 09:10 -dir JobId 62809: Automatically selected Catalog: MyCatalog
06-May 09:10 -dir JobId 62809: Using Catalog "MyCatalog"
06-May 09:10 -dir JobId 62812: Copying using JobId=62773 Job=XXX.2022-05-06_01.30.02_21
06-May 09:10 -dir JobId 62812: Bootstrap records written to /var/lib/bareos/XXX.2.bsr
06-May 09:10 -dir JobId 62809: Job queued. JobId=62812
06-May 09:10 -dir JobId 62809: Copying JobId 62812 started.
06-May 09:10 -dir JobId 62809: Bareos -dir 19.2.7 (16Apr20):
Build OS: Linux-4.19.0-6-amd64 debian Debian GNU/Linux 10 (buster)
Current JobId: 62809
Current Job: TestCopy-to-Tape.2022-05-06_09.10.38_07
Catalog: "MyCatalog" (From Default catalog)
Start time: 06-May-2022 09:10:40
End time: 06-May-2022 09:10:40
Elapsed time: 0 secs
Priority: 10
Bareos binary info: self-compiled: Get official binaries and vendor support on
bareos.com Termination: Copying OK
06-May 09:10 -dir JobId 62810: Start Copying JobId 62810, Job=TestCopy-to-Tape.2022-05-06_09.10.40_08
06-May 09:10 -dir JobId 62810: Connected Storage daemon at
10.129.5.25:9103, encryption: TLS_CHACHA20_POLY1305_SHA256
06-May 09:10 -dir JobId 62810: Using Device "FileStorage01" to read.
06-May 09:10 -dir JobId 62810: Using Device "tapedrive-0" to write.
06-May 09:10 -sd JobId 62810: Ready to read from volume "Full-0166" on device "FileStorage01" (/bareos/storage).
06-May 09:10 -sd JobId 62810: Job TestCopy-to-Tape.2022-05-06_09.10.40_08 is waiting. Cannot find any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage: "tapedrive-0" (/dev/st0)
Pool: Tape
Media type: LTO-8
Here's the changer and media status:
*status slots storage=Tape
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Connecting to Storage daemon Tape at
10.129.5.25:9103 ...
3306 Issuing autochanger "listall" command.
Slot | Volume Name | Status | Media Type | Pool |
------+------------------+-----------+----------------+--------------------------|
1 | CMP001L8 | Recycle | LTO | Tape |
2 | CMP002L8 | Recycle | LTO | Tape |
3%| CMP003L8 | Recycle | LTO | Tape |
4 | CMP004L8 | Append | LTO | Tape |
5 | CMP005L8 | Append | LTO | Tape |
6 | CMP006L8 | Append | LTO | Tape |
7 | CMP007L8 | Append | LTO | Tape |
8 | CMP008L8 | Append | LTO | Tape |
9 | CMP009L8 | Append | LTO | Tape |
What I am doing wrong? Hope you guys can help me out.
Here's some part of my configuration:
/etc/bareos/bareos-sd.d/device/Tape.conf:
Autochanger {
Name = autochanger-0
Device = tapedrive-0
Changer Device = /dev/sg3
Changer Command = "/usr/lib/bareos/scripts/mtx-changer %c %o %S %a %d"
}
Device {
Name = tapedrive-0
Media Type = LTO-8
#Archive Device = /dev/tape/by-id/scsi-3500169772968d010-nst
Archive Device = /dev/st0
DeviceType = tape
Drive Index = 0
#Check Labels = yes
Autoselect = yes
RandomAccess = no
RemovableMedia = yes
Autochanger = yes
AutomaticMount = yes
AlwaysOpen = yes
}
/etc/bareos/bareos-dir.d/pool/Tape.conf:
Pool {
Name = Tape
Pool Type = Backup
Recycle = yes # Bareos can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Storage = Tape
#Accept Any Volume = yes
Maximum Volume Bytes = 12000G
Maximum Volume Jobs = 999
RecyclePool = Tape
}
/etc/bareos/bareos-dir.d/storage/Tape.conf:
Storage {
Name = Tape
Address = "xxx"
Password = "xxx"
Device = autochanger-0
Media Type = LTO-8
Auto Changer = yes
}
/etc/bareos/bareos-dir.d/job/Test-Tape_job.conf:
Job {
Name = "TestCopy-to-Tape"
Type = Copy
Messages = Standard
Pool = Full
Selection Type = Client
Selection Pattern = "<PATTERN>"
Enabled = no
}