Hi,
I'm trying to implement the Always Backup Schema but I have errors during the Consolidation:
2022-04-26 17:00:04 mcrbckxxx JobId 214: Releasing device "AI-Device-Cons" (/mnt2/BAREOS).
2022-04-26 17:00:04 mcrbckxxx JobId 214: Fatal error: stored/acquire.cc:217 No suitable device found to read Volume "Test-AI-Cons-0901"
2022-04-26 17:00:04 mcrbckxxx JobId 214: Releasing device "AI-Device-Inc" (/mnt2/BAREOS).
2022-04-26 17:00:04 mcrbckxxx JobId 214: stored/acquire.cc:158 Changing read device. Want Media Type="File-Cons" have="File-Inc" device="AI-Device-Inc" (/mnt2/BAREOS)
2022-04-26 17:00:04 mcrbckxxx JobId 214: Ready to append to end of Volume "Test-AI-Cons-0903" size=224
2022-04-26 17:00:04 mcrbckxxx JobId 214: Volume "Test-AI-Cons-0903" previously written, moving to end of data.
2022-04-26 17:00:04 bareos-dir JobId 214: Using Device "AI-Device-Cons" to write.
2022-04-26 17:00:04 bareos-dir JobId 214: Using Device "AI-Device-Inc" to read.
2022-04-26 17:00:04 bareos-dir JobId 214: Connected Storage daemon at ***********:9103, encryption: TLS_CHACHA20_POLY1305_SHA256 TLSv1.3
2022-04-26 17:00:04 bareos-dir JobId 214: Bootstrap records written to /var/lib/bareos/bareos-dir.restore.5.bsr
2022-04-26 17:00:04 bareos-dir JobId 214: Consolidating JobIds 202,205,206,210,211
2022-04-26 17:00:04 bareos-dir JobId 214: Start Virtual Backup JobId 214, Job=backup-Test-CL-7499.2022-04-26_17.00.02_18
I think that the problem here is that is trying to read the first Full backup in the Volume "Test-AI-Cons-0901" which has a different MediaType than AI-Device-Inc, but I followed the documentation that declare "Full Backup Pool = AI-Consolidated" in the Job configuration.
I don't know if I'm doing somthing wrong with the Media Type.
Could anyone help me to solve this problem?
Below my configs:
#### SD configurations ####
#/etc/bareos/bareos-sd.d/storage/bareos-sd.conf
Storage {
Name = bckxxx
Maximum Concurrent Jobs = 20
}
#/etc/bareos/bareos-sd.d/device/AI-Device-Inc.conf
Device {
Name = AI-Device-Inc
Media Type = File-Inc
Archive Device = /mnt2/BAREOS
LabelMedia = yes
Random Access = yes
AutomaticMount = yes
RemovableMedia = no
AlwaysOpen = no
Maximum Concurrent Jobs = 1
}
#/etc/bareos/bareos-sd.d/device/AI-Device-Cons.conf
Device {
Name = AI-Device-Cons
Media Type = File-Cons
Archive Device = /mnt2/BAREOS
LabelMedia = yes
Random Access = yes
AutomaticMount = yes
RemovableMedia = no
AlwaysOpen = no
Maximum Concurrent Jobs = 1
}
#### DIRECTOR configurations ####
#/etc/bareos/bareos-dir.d/storage/bckxxx-AI-Inc.conf
Storage {
Name = bckxxx-AI-Inc
Address = *****
Password = "*****"
Device = AI-Device-Inc
Media Type = File-Inc
Maximum Concurrent Jobs = 1
}
#/etc/bareos/bareos-dir.d/storage/bckxxx-AI-Cons.conf
Storage {
Name = bckxxx-AI-Cons
Address = *****
Password = "*****"
Device = AI-Device-Cons
Media Type = File-Cons
Maximum Concurrent Jobs = 1
}
#/etc/bareos/bareos-dir.d/pool/Test-AI-Inc.conf
Pool {
Name = Test-AI-Inc
Pool Type = Backup
Storage = bckxxx-AI-Inc
Recycle = yes
Auto Prune = yes
Volume Retention = 360 days
Maximum Volume Bytes = 50G
Maximum Volumes = 10
Volume Use Duration = 23h
Label Format = "Test-AI-Inc-"
Next Pool = Test-AI-Cons
}
#/etc/bareos/bareos-dir.d/pool/Test-AI-Cons.conf
Pool {
Name = Test-AI-Cons
Pool Type = Backup
Storage = bckxxx-AI-Cons
Recycle = yes
Auto Prune = yes
Volume Retention = 360 days
Maximum Volume Bytes = 50G
Maximum Volumes = 10
Volume Use Duration = 23h
Label Format = "Test-AI-Cons-"
}
#/etc/bareos/bareos-dir.d/jobdefs/Test-DefaultJob.conf
JobDefs {
Name = "Test-DefaultJob"
Type = Backup
Level = Incremental
FileSet = "File-Test"
Messages = Standard
Pool = Test-AI-Inc
Priority = 10
Write Bootstrap = "/var/lib/bareos/%c.bsr"
Full Backup Pool = Test-AI-Cons
Incremental Backup Pool = Test-AI-Inc
}
#/etc/bareos/bareos-dir.d/job/backup-Test-CL-7499.conf
Job {
Name = "backup-Test-CL-7499"
Client = "CL-7499"
Enabled = no
JobDefs = "Test-DefaultJob"
AlwaysIncremental = yes
AlwaysIncrementalJobRetention = 7 days
Accurate = yes
Schedule = Cons-Test
}
Thanks in advance.
BR,
Luca