3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # This script is used to test multiple devices grouped in
9 # the director configuration
12 TestName="multi-drive-group-test"
17 scripts/copy-2disk-confs
18 scripts/prepare-disk-changer
20 echo "s/signature=MD5/signature=MD5; readfifo=yes/" > $tmp/1
21 echo "s/FileStorage/FileStorage; Device=FileStorage2; Device=FileStorage3; Device=FileStorage4/" >> $tmp/1
22 sed -f $tmp/1 $conf/bacula-dir.conf > $tmp/2
24 $bperl -e 'add_attribute("$tmp/2", "Label Format", "Vol", "Pool", "Default")'
25 $bperl -e 'add_attribute("$tmp/2", "Action On Purge", "Truncate", "Pool", "Default")'
26 $bperl -e 'add_attribute("$tmp/2", "Label Format", "Vol", "Pool", "Inc")'
27 $bperl -e 'add_attribute("$conf/bacula-sd.conf", "Label Media", "yes", "Device")'
29 # set this to do round robbin
30 #$bperl -e 'set_maximum_concurrent_jobs("$conf/bacula-sd.conf", 1, "Device")'
32 $bperl -e 'add_attribute("$tmp/2", "Prefer Mounted Volumes", "no", "Job")';
34 # Disable spooling for each job
35 $bperl -e 'add_attribute("$tmp/2", "SpoolData", "no", "Job")'
36 cp $tmp/2 $conf/bacula-dir.conf
38 $bperl -e 'extract_resource("$conf/bacula-sd.conf", "Device", "FileStorage")' > $tmp/2
40 sed "s/FileStorage/FileStorage$i/" $tmp/2 >> $conf/bacula-sd.conf
45 echo "$cwd/build" >${cwd}/tmp/file-list
46 echo "$tmp/fifo" >>${cwd}/tmp/file-list
53 change_jobname $JobName
59 # Write out bconsole commands
60 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
63 @$out ${cwd}/tmp/log1.out
64 run level=full job=backup storage=File pool=Default yes
65 run level=full job=backup storage=File pool=Default yes
66 run level=full job=backup storage=File pool=Default yes
67 run level=full job=backup storage=File pool=Inc yes
68 run level=full job=backup storage=File pool=Inc yes
69 run level=full job=backup storage=File pool=Default yes
70 run level=full job=backup storage=File pool=Default yes
71 run level=full job=backup storage=File pool=Default yes
72 run level=full job=backup storage=File pool=Default yes
85 check_for_zombie_jobs storage=File
86 check_for_zombie_jobs storage=tape