As luck would have it, the first email I got while away at a 
conference was Bacula telling me the tape was full.  No worries.  I 
reconfigured bacula-dir.conf and changed the JobDefs from:

   Storage     = DLT

to:

   Storage     = File

Now that I'm back from the conference, and running on tape again, I'm 
considering my first ever migration job.  The main issue I see is 
that my File and DLT are in the same Pool.  The Migration docs[1] 
mentions:

###
Bacula permits pools to contain Volumes with different Media Types. 
However, when doing migration, this is a very undesirable condition. 
For migration to work properly, you should use pools containing only 
Volumes of the same Media Type for all migration jobs.
###

I created a new pool (FilePool) and moved all my File volumes into 
it.    This would allow me to move from the Default pool into the 
FilePool and was done using the update command in bconsole.

Running the job caused a problem.  The job record still pointed at 
the old pool, not the new pool.  This can be seen here:

FileSet:                "Full Set" 2007-03-18 13:48:18
Read Pool:              "FilePool" (From Job resource)
Read Storage:           "DLT" (From Pool resource)
Write Pool:             "FilePool" (From Job resource)
Write Storage:     "DLT" (From Storage from Pool's NextPool resource)

Thus, it was trying to read and write to the same pool.  I updated 
the job table for that one job I was trying to migrate:

  update job set poolid = 2 where jobid = 13402;

Then I ran the migration job again.  It ran fine.  

I knew the jobs I wanted to migrate:

select jobid, name, poolid from job where starttime >= '14-Mar-2007 
10:14:43' and starttime <= '17-Mar-2007 03:15:12' order by jobid 
limit 1;

So it was a SMOS (simple matter of SQL) to get the Pool ID set 
correctly:

update job set poolid = 2 where jobid in (select jobid from job where 
starttime >= '14-Mar-2007 10:14:43' and starttime <= '17-Mar-2007 
03:15:12' order by jobid) and  jobid <> 13402;

Now the migration job is still running, but we'll see how that goes. 
:)

-- 
Dan Langille : Software Developer looking for work
my resume: http://www.freebsddiary.org/dan_langille.php
PGCon - The PostgreSQL Conference - http://www.pgcon.org/



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to