Job greedily imports all Scratch volumes

17 views
Skip to first unread message

Christian Svensson

unread,
Nov 22, 2021, 11:27:43 AM11/22/21
to bareos-users
Good day,

I am seeing what appears to me to be odd behavior with Bareos.
Firstly; I am running version 20.0.1. I had a look at the changelog to see if this was a fixed issue in the later releases but I could not see anything that resonated with me.

I have a pool called Scratch which I want to be a stockpile of volumes that can be used for various jobs as needed. Different jobs use different tape pools as they have different retention policies and to make scheduling of offsite vaulting easier.
However, what I am seeing is that when a job needs a volume it will import all available Scratch volumes to its pool, starving all the other jobs. Is this how the Scratch pool mechanism is supposed to work?

This log shows the odd behaviour I am encountering:
26 2021-11-22 17:23:08 bareos-sd JobId 1116: Spooling data ...
25 2021-11-22 17:23:08 bareos-sd JobId 1116: Wrote label to prelabeled Volume "BCMD07L4" on device "Drive-2" (/dev/nst1)
24 2021-11-22 17:23:04 bareos-sd JobId 1116: 3305 Autochanger "load slot 33, drive 1", status is OK.
23 2021-11-22 17:22:17 bareos-sd JobId 1116: 3304 Issuing autochanger "load slot 33, drive 1" command.
22 2021-11-22 17:21:32 bareos-sd JobId 1116: 3307 Issuing autochanger "unload slot 5, drive 1" command.
21 2021-11-22 17:16:32 bareos-dir JobId 1116: Using Volume "BCMD16L4" from 'Scratch' pool.
20 2021-11-22 17:16:32 bareos-dir JobId 1116: Using Volume "BCMD15L4" from 'Scratch' pool.
19 2021-11-22 17:16:32 bareos-dir JobId 1116: Using Volume "BCMD14L4" from 'Scratch' pool.
18 2021-11-22 17:16:32 bareos-dir JobId 1116: Using Volume "BCMD13L4" from 'Scratch' pool.
17 2021-11-22 17:16:32 bareos-dir JobId 1116: Using Volume "BCMD12L4" from 'Scratch' pool.
16 2021-11-22 17:16:31 bareos-dir JobId 1116: Using Volume "BCMD11L4" from 'Scratch' pool.
15 2021-11-22 17:16:31 bareos-dir JobId 1116: Using Volume "BCMD10L4" from 'Scratch' pool.
14 2021-11-22 17:16:31 bareos-dir JobId 1116: Using Volume "BCMD09L4" from 'Scratch' pool.
13 2021-11-22 17:16:31 bareos-dir JobId 1116: Using Volume "BCMD08L4" from 'Scratch' pool.
12 2021-11-22 17:16:31 bareos-dir JobId 1116: Using Volume "BCMD07L4" from 'Scratch' pool.
11 2021-11-22 17:16:31 bareos-dir JobId 1116: Using Volume "BCMD06L4" from 'Scratch' pool.
10 2021-11-22 17:11:31 bareos-sd JobId 1116: Job BackupXYZ.2021-11-22_17.09.41_13 is waiting. Cannot find any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage: "Drive-2" (/dev/nst1)
Pool: TapeOnsiteV2
Media type: LTO-4
9 2021-11-22 17:10:45 debian-fd JobId 1116: ACL support is enabled
8 2021-11-22 17:10:45 debian-fd JobId 1116: Extended attribute support is enabled
7 2021-11-22 17:10:45 debian-fd JobId 1116: Connected Storage daemon at debian:9103, encryption: TLS_CHACHA20_POLY1305_SHA256 TLSv1.3
6 2021-11-22 17:10:45 bareos-dir JobId 1116: Encryption: TLS_CHACHA20_POLY1305_SHA256 TLSv1.3
5 2021-11-22 17:10:45 bareos-dir JobId 1116: Handshake: Immediate TLS
4 2021-11-22 17:10:45 bareos-dir JobId 1116: Connected Client: debian-fd at localhost:9102, encryption: TLS_CHACHA20_POLY1305_SHA256 TLSv1.3
3 2021-11-22 17:10:45 bareos-dir JobId 1116: Using Device "Drive-2" to write.
2 2021-11-22 17:10:45 bareos-dir JobId 1116: Connected Storage daemon at debian:9103, encryption: TLS_CHACHA20_POLY1305_SHA256 TLSv1.3
1 2021-11-22 17:09:43 bareos-dir JobId 1116: Start Backup JobId 1116, Job=BackupXYZ.2021-11-22_17.09.41_13

Any ideas?

Regards,

Reply all
Reply to author
Forward
0 new messages