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", "Label Format", "Vol", "Pool", "Inc")'
26 $bperl -e 'add_attribute("$conf/bacula-sd.conf", "Label Media", "yes", "Device")'
28 # set this to do round robbin
29 $bperl -e 'set_maximum_concurrent_jobs("$conf/bacula-sd.conf", 1, "Device")'
31 # Disable spooling for each job
32 $bperl -e 'add_attribute("$tmp/2", "SpoolData", "no", "Job")'
33 cp $tmp/2 $conf/bacula-dir.conf
35 $bperl -e 'extract_resource("$conf/bacula-sd.conf", "Device", "FileStorage")' > $tmp/2
37 sed "s/FileStorage/FileStorage$i/" $tmp/2 >> $conf/bacula-sd.conf
42 echo "$cwd/build" >${cwd}/tmp/file-list
43 echo "$tmp/fifo" >>${cwd}/tmp/file-list
46 (sleep 15 > $tmp/fifo)&
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
76 check_for_zombie_jobs storage=File
77 check_for_zombie_jobs storage=tape