3 # Create a big Volume > 5 GB and backup to it to test disk
4 # seeking on big volumes. We cheat and artifically grow
7 TestName="big-vol-test"
12 scripts/copy-test-confs
14 echo "${cwd}/build" >${cwd}/tmp/file-list
16 change_jobname CompressedTest $JobName
19 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
22 @$out ${cwd}/tmp/log1.out
23 @#setdebug level=100 storage=File
24 label storage=File volume=TestVolume001
32 check_for_zombie_jobs storage=File
35 # Now increase the size of the Volume using gigaslam
40 ${cwd}/build/src/tools/grow TestVolume001 ${size}
42 echo "Execute of ${cwd}/build/src/tools/grow failed."
47 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
50 @$out ${cwd}/tmp/log1.out
52 UPDATE Media SET Volbytes=${size} WHERE VolumeName='TestVolume001';
54 llist volume=TestVolume001
55 @# Now do another full save with big Volume
56 run level=Full job=$JobName yes
63 SELECT * FROM JobMedia;
65 @$out ${cwd}/tmp/log2.out
66 restore where=${cwd}/tmp/bacula-restores storage=File select all done
74 check_for_zombie_jobs storage=File
80 # Get rid of big files
81 rm -f ${cwd}/tmp/TestVolume001