From: Kern Sibbald Date: Tue, 21 Nov 2006 17:09:58 +0000 (+0000) Subject: Update X-Git-Tag: Release-2.0.0~242 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=951c20eaab906b09984c24f326849cbb46aac48d;p=bacula%2Fbacula Update git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3675 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/tests/migration-volume-test b/regress/tests/migration-volume-test index 9365c720d4..e2d66b60da 100755 --- a/regress/tests/migration-volume-test +++ b/regress/tests/migration-volume-test @@ -1,7 +1,7 @@ #!/bin/sh # -# Run a simple backup of the Bacula build directory then migrate it -# to another device. +# Run a backup of the Bacula build directory on two Volumes +# then migrate it to another device. # # This script uses the virtual disk autochanger # @@ -16,6 +16,8 @@ scripts/cleanup scripts/copy-migration-confs scripts/prepare-two-disks echo "${cwd}/build" >/tmp/file-list +#cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1 +#sed "s%# Maximum File Size% Maximum File Size%" ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf change_jobname NightlySave $JobName start_test @@ -32,23 +34,21 @@ cat <tmp/bconcmds messages @$out tmp/log1.out label storage=File volume=FileVolume001 Pool=Default +label storage=File volume=FileVolume002 Pool=Default +update Volume=FileVolume001 MaxVolBytes=3000000 pool=Default label storage=DiskChanger volume=ChangerVolume001 slot=1 Pool=Full drive=0 label storage=DiskChanger volume=ChangerVolume002 slot=2 Pool=Full drive=0 list volumes -@# run two jobs (both will be migrated) +@# run job=$JobName yes wait run job=$JobName yes -@sleep 1 -status storage=File -@sleep 1 -status storage=File -@sleep 1 -status storage=File wait update volume=FileVolume001 VolStatus=Used +update volume=FileVolume002 VolStatus=Used list volumes @# should migrate two jobs +@# setdebug level=11 dir run job=migrate-volume yes list volumes @sleep 3