View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000906 | bareos-core | director | public | 2018-02-09 08:18 | 2019-12-18 15:24 |
Reporter | nwhisper | Assigned To | arogge | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | Bareos 17.2.4 | OS | Ubuntu Server | OS Version | 16.04.3 |
Product Version | 17.2.4 | ||||
Summary | 0000906: Always Incremental Consolidate job tries to mount Full backup from wrong storage | ||||
Description | When a consolidate backup job starts, it tries to search full backup file in incremental volume. | ||||
Steps To Reproduce | 1. Рave all the necessary backups 2. Start Consolidate job Actual result: 2018-02-09 09:32:54 bcps-sd JobId 155: Please mount read Volume "msk-r1-s-web01-cons-0026" for: Job: msk-r1-s-web01-backup.2018-02-09_09.32.34_05 Storage: "storagedevice_on_bcps_1" (E:/bareos/bareos_storage) Pool: msk-r1-s-web01-incr Media type: File | ||||
Additional Information | Storage { Name = storage_on_bcps Address = bcps.server.local Password = *** Device = storagedevice_on_bcps_1 Media Type = File Maximum Concurrent Jobs = 1 } Storage { Name = storage_on_bcps_consolidate Address = bcps.server.local Password = *** Device = storagedevice_on_bcps_2 Media Type = File Maximum Concurrent Jobs = 1 } Schedule { Name = msk-r1-s-web01-daily Run = daily at 04:00 } Pool { Name = msk-r1-s-web01-incr Pool Type = Backup Recycle = yes Auto Prune = no Maximum Volume Jobs = 1 Label Format = "msk-r1-s-web01-inc-" Next Pool = msk-r1-s-web01-cons Volume Use Duration = 23h Storage = storage_on_bcps } Pool { Name = msk-r1-s-web01-cons Pool Type = Backup Recycle = yes Auto Prune = no Label Format = "msk-r1-s-web01-cons-" Volume Use Duration = 23h Storage = storage_on_bcps_consolidate } Name = msk-r1-s-web01-backup Type = Backup Level = Incremental Client = msk-r1-s-web01-fd FileSet = msk-r1-s-web01-fileset Schedule = msk-r1-s-web01-daily Messages = Standard Pool = msk-r1-s-web01-incr Full Backup Pool = msk-r1-s-web01-cons Accurate = yes Always Incremental = yes Always Incremental Job Retention = 7 days Always Incremental Keep Number = 7 Write Bootstrap = "/var/lib/bareos/%c.bsr" } Job { Name = msk-r1-s-web01-consolidate Type = Consolidate Level = Incremental Client = msk-r1-s-web01-fd FileSet = msk-r1-s-web01-fileset Schedule = msk-r1-s-web01-daily Messages = Standard Pool = msk-r1-s-web01-incr Full Backup Pool = msk-r1-s-web01-cons Accurate = yes Max Full Consolidations = 1 Priority = 15 Write Bootstrap = "/var/lib/bareos/%c.bsr" } FileSet { Name = msk-r1-s-web01-fileset Include { Options { signature = MD5 compression = LZ4HC checkfilechanges = yes exclude = no accurate = mcs verify = pin5 } File = "/etc" File = "/var/www" File = "/var/spool/cron/crontabs" } } Client { Name = msk-r1-s-web01-fd Address = msk-r1-s-web01.local Password = *** Maximum Concurrent Jobs = 2 } Example log: *list joblog jobid=157 2018-02-09 10:16:12 bu01-dir JobId 157: Start Consolidate JobId 157, Job=msk-r1-s-web01-consolidate.2018-02-09_10.16.10_10 2018-02-09 10:16:12 bu01-dir JobId 157: Looking at always incremental job msk-r1-s-web01-backup 2018-02-09 10:16:12 bu01-dir JobId 157: msk-r1-s-web01-backup: considering jobs older than 02-feb-2018 10:16:12 for consolidation. 2018-02-09 10:16:12 bu01-dir JobId 157: msk-r1-s-web01-backup: Start new consolidation 2018-02-09 10:16:12 bu01-dir JobId 157: Using Catalog "dbcatalog" 2018-02-09 10:16:12 bu01-dir JobId 157: Job queued. JobId=158 2018-02-09 10:16:12 bu01-dir JobId 157: Consolidating JobId 158 started. 2018-02-09 10:16:12 bu01-dir JobId 157: BAREOS 17.2.4 (21Sep17): 09-feb-2018 10:16:12 JobId: 157 Job: msk-r1-s-web01-consolidate.2018-02-09_10.16.10_10 Scheduled time: 09-feb-2018 10:16:09 Start time: 09-feb-2018 10:16:12 End time: 09-feb-2018 10:16:12 Termination: Consolidate OK *list joblog jobid=158 2018-02-09 10:16:14 bu01-dir JobId 158: Start Virtual Backup JobId 158, Job=msk-r1-s-web01-backup.2018-02-09_10.16.12_11 2018-02-09 10:16:14 bu01-dir JobId 158: Consolidating JobIds 129,48,56 2018-02-09 10:16:34 bu01-dir JobId 158: Bootstrap records written to /var/lib/bareos/bu01-dir.restore.2.bsr 2018-02-09 10:16:34 bu01-dir JobId 158: Using Device "storagedevice_on_bcps_1" to read. 2018-02-09 10:16:34 bu01-dir JobId 158: Created new Volume "msk-r1-s-web01-cons-0034" in catalog. 2018-02-09 10:16:34 bu01-dir JobId 158: Using Device "storagedevice_on_bcps_2" to write. 2018-02-09 10:16:33 bcps-sd JobId 158: Warning: stored/acquire.c:241 Read open device "storagedevice_on_bcps_1" (E:/bareos/bareos_storage) Volume "msk-r1-s-web01-cons-0026" failed: ERR=stored/dev.c:664 Could not open: E:/bareos/bareos_storage/msk-r1-s-web01-cons-0026, ERR=No such file or directory 2018-02-09 10:16:33 bcps-sd JobId 158: Please mount read Volume "msk-r1-s-web01-cons-0026" for: Job: msk-r1-s-web01-backup.2018-02-09_10.16.12_11 Storage: "storagedevice_on_bcps_1" (E:/bareos/bareos_storage) Pool: msk-r1-s-web01-incr Media type: File | ||||
Tags | always incremental, configuration, director, pool | ||||
Did you find fix or work around? | |
This issue is extremely poorly documented, and developers work either very slowly or ignore issues and errors altogether, preferring to hang around different conferences... | |
Using different media type names for different storages or disabling reserve device by media type should fix this. See also https://docs.bareos.org/Configuration/Director.html?highlight=media%20type#config-Dir_Storage_MediaType |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2018-02-09 08:18 | nwhisper | New Issue | |
2018-02-11 07:23 | nwhisper | Tag Attached: always incremental | |
2018-02-11 07:23 | nwhisper | Tag Attached: configuration | |
2018-02-11 07:23 | nwhisper | Tag Attached: director | |
2018-02-11 07:23 | nwhisper | Tag Attached: pool | |
2018-10-21 10:53 | hsn | Note Added: 0003143 | |
2019-05-21 12:01 | nwhisper | Note Added: 0003377 | |
2019-07-10 17:10 | arogge | Assigned To | => arogge |
2019-07-10 17:10 | arogge | Status | new => resolved |
2019-07-10 17:10 | arogge | Resolution | open => no change required |
2019-07-10 17:10 | arogge | Note Added: 0003432 | |
2019-12-18 15:24 | arogge | Status | resolved => closed |