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", "Label Format", "Vol", "Pool", "Inc")'
21 $bperl -e 'add_attribute("$conf/bacula-sd.conf", "Label Media", "yes", "Device")'
23 # set this to do round robbin
24 $bperl -e 'set_maximum_concurrent_jobs("$conf/bacula-sd.conf", 1, "Device")'
26 # Disable spooling for each job
27 $bperl -e 'add_attribute("$tmp/2", "SpoolData", "no", "Job")'
28 cp $tmp/2 $conf/bacula-dir.conf
30 $bperl -e 'extract_resource("$conf/bacula-sd.conf", "Device", "FileStorage")' > $tmp/2
32 sed "s/FileStorage/FileStorage$i/" $tmp/2 >> $conf/bacula-sd.conf
37 echo "$cwd/build" >${cwd}/tmp/file-list
38 echo "$tmp/fifo" >>${cwd}/tmp/file-list
41 (sleep 15 > $tmp/fifo)&
43 change_jobname $JobName
49 # Write out bconsole commands
50 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
53 @$out ${cwd}/tmp/log1.out
54 run level=full job=backup storage=File pool=Default yes
55 run level=full job=backup storage=File pool=Default yes
56 run level=full job=backup storage=File pool=Default yes
57 run level=full job=backup storage=File pool=Inc yes
58 run level=full job=backup storage=File pool=Inc yes
71 check_for_zombie_jobs storage=File
72 check_for_zombie_jobs storage=tape