3 # Run a job with a limited tape size so that the tape fills up.
4 # Then manually unload the tape and load a new one, label
7 TestName="manual-two-vol-tape"
8 JobName=manualtwovolltape
15 scripts/copy-tape-confs
16 echo "${cwd}/build" >${cwd}/tmp/file-list
17 MTX=$AUTOCHANGER_SCRIPT
19 # Sleep longer if real tape
20 if [ x${USE_VTAPE} = xyes ] ; then
30 init_slot $TAPE_DRIVE $SLOT1
31 init_slot $TAPE_DRIVE $SLOT2
35 init_drive ${TAPE_DRIVE}
37 change_jobname $JobName
41 cat <<END_OF_DATA >tmp/bconcmds
45 label storage=DDS-4 volume=TestVolume002 slot=0 pool=Default drive=0
54 init_drive ${TAPE_DRIVE}
56 # label first volume, and run first half of job
57 cat <<END_OF_DATA >tmp/bconcmds
59 label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default drive=0
60 update Volume=TestVolume001 MaxVolBytes=500000 pool=Default drive=0
62 @#setdebug level=150 storage=DDS-4
64 @# This sleep must be long enough for the first tape to fill (4MB)
65 @# otherwise the following mtx-changer commands will fail
67 wait mount timeout=180
80 cat <<END_OF_DATA >tmp/bconcmds
82 wait mount timeout=180
83 setdebug level=200 storage=DDS-4
85 @# backup should continue
91 restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
94 wait mount timeout=180
95 exec "sh -c 'load_other_slot $slot'"
103 # run second half of backup + restore
108 check_for_zombie_jobs storage=DDS-4