3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Run four jobs at the same time, with four Volumes, but set
9 # Maximum Job Volumes = 1 on each of the Volumes. Note,
10 # Volume 2 will probably have two jobs on it. Something to
11 # be fixed in a later version.
13 TestName="maxvol-test"
18 scripts/copy-test-confs
19 echo "${cwd}/build" >${cwd}/tmp/file-list
21 cp -f ${cwd}/bin/bacula-dir.conf ${cwd}/tmp/1
22 sed "s%# Maximum Volume Jobs% Maximum Volume Jobs%" ${cwd}/tmp/1 >${cwd}/bin/bacula-dir.conf
25 change_jobname NightlySave $JobName
28 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
31 @$out ${cwd}/tmp/log1.out
32 label storage=File1 volume=TestVolume001
33 label storage=File1 volume=TestVolume002
34 label storage=File1 volume=TestVolume003
35 label storage=File1 volume=TestVolume004
36 update Volume=TestVolume001 MaxVolBytes=100000000
39 setdebug level=100 Storage=File1
40 llist volume=TestVolume001
41 llist volume=TestVolume002
42 run job=$JobName level=Full Storage=File1 yes
43 run job=$JobName level=Full Storage=File1 yes
44 run job=$JobName level=Full Storage=File1 yes
47 llist volume=TestVolume001
48 llist volume=TestVolume002
53 @$out ${cwd}/tmp/log2.out
54 restore where=${cwd}/tmp/bacula-restores select storage=File1
67 check_for_zombie_jobs storage=File1