3 # This script is used to test multiple devices grouped in
4 # the director configuration
7 TestName="multi-drive-group-test"
12 scripts/copy-2disk-confs
13 scripts/prepare-disk-changer
15 echo "s/signature=MD5/signature=MD5; readfifo=yes/" > $tmp/1
16 echo "s/FileStorage/FileStorage; Device=FileStorage2; Device=FileStorage3; Device=FileStorage4/" >> $tmp/1
17 sed -f $tmp/1 $conf/bacula-dir.conf > $tmp/2
19 $bperl -e 'add_attribute("$tmp/2", "Label Format", "Vol", "Pool", "Default")'
20 $bperl -e 'add_attribute("$tmp/2", "Action On Purge", "Truncate", "Pool", "Default")'
21 $bperl -e 'add_attribute("$tmp/2", "Label Format", "Vol", "Pool", "Inc")'
22 $bperl -e 'add_attribute("$conf/bacula-sd.conf", "Label Media", "yes", "Device")'
24 # set this to do round robbin
25 #$bperl -e 'set_maximum_concurrent_jobs("$conf/bacula-sd.conf", 1, "Device")'
27 $bperl -e 'add_attribute("$tmp/2", "Prefer Mounted Volumes", "no", "Job")';
29 # Disable spooling for each job
30 $bperl -e 'add_attribute("$tmp/2", "SpoolData", "no", "Job")'
31 cp $tmp/2 $conf/bacula-dir.conf
33 $bperl -e 'extract_resource("$conf/bacula-sd.conf", "Device", "FileStorage")' > $tmp/2
35 sed "s/FileStorage/FileStorage$i/" $tmp/2 >> $conf/bacula-sd.conf
40 echo "$cwd/build" >${cwd}/tmp/file-list
41 echo "$tmp/fifo" >>${cwd}/tmp/file-list
48 change_jobname $JobName
54 # Write out bconsole commands
55 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
58 @$out ${cwd}/tmp/log1.out
59 run level=full job=backup storage=File pool=Default yes
60 run level=full job=backup storage=File pool=Default yes
61 run level=full job=backup storage=File pool=Default yes
62 run level=full job=backup storage=File pool=Inc yes
63 run level=full job=backup storage=File pool=Inc yes
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=Default yes
80 check_for_zombie_jobs storage=File
81 check_for_zombie_jobs storage=tape