3 # This script is used to test multiple devices grouped in
4 # the director configuration
6 TestName="multi-drive1-test"
11 scripts/copy-2disk-confs
12 scripts/prepare-disk-changer
14 echo "s/signature=MD5/signature=MD5; readfifo=yes/" > $tmp/1
15 echo "s/FileStorage/Device = FileStorage; Device=FileStorage2; Device=FileStorage3; Device=FileStorage4/" >> $tmp/1
16 sed -f $tmp/1 $conf/bacula-dir.conf > $tmp/2
17 $bperl -e 'add_attribute("$tmp/2", "Label Format", "Vol", "Pool", "Default")'
18 $bperl -e 'add_attribute("$tmp/2", "Label Format", "Vol", "Pool", "Inc")'
19 $bperl -e 'add_attribute("$tmp/2", "SpoolData", "no", "Job")'
20 cp $tmp/2 $conf/bacula-dir.conf
22 $bperl -e 'add_attribute("$conf/bacula-sd.conf", "Label Media", "yes", "Device")'
23 $bperl -e 'extract_resource("$conf/bacula-sd.conf", "Device", "FileStorage")' > $tmp/2
25 sed "s/FileStorage/FileStorage$i/" $tmp/2 >> $conf/bacula-sd.conf
30 echo "$cwd/build" >${cwd}/tmp/file-list
31 echo "$tmp/fifo" >>${cwd}/tmp/file-list
34 (sleep 15 > $tmp/fifo)&
36 change_jobname $JobName
42 # Write out bconsole commands
43 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
46 @$out ${cwd}/tmp/log1.out
47 run level=full job=backup storage=File pool=Default yes
49 run level=full job=backup storage=File pool=Default yes
51 run level=full job=backup storage=File pool=Inc yes
63 check_for_zombie_jobs storage=File
64 check_for_zombie_jobs storage=tape