Had to eject the tape the re-insert the cartridge for Bacula to decide to 
overwrite the tape. Bacula seems to be happily re-writing the tape.

In the meantime, I am restoring my previous configuration.

Final question...once the migration is complete, can I then move the tape back 
into my "Weekly" pool and attempt restores from it?
 
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
David Gardner
email: djgardner(at)yahoo.com
Yahoo! IM: djgardner
AIM: dgardner09 
"Everything is a learning experience, even a mistake."

----- Original Message ----
From: David Gardner <[EMAIL PROTECTED]>
To: Bacula users list <bacula-users@lists.sourceforge.net>
Sent: Tuesday, December 18, 2007 12:48:33 PM
Subject: [Bacula-users] Migration headaches


Hey gang,

Now this migration is becoming a headache.

I reread the migration section of the manual and though it does not 
specifically say "Do not migrate within a pool!", it does discourage the act. 
With that, I created the "Tape" pool  and moved one of my tapes from the Weekly 
pool into the "Tape" pool and the source job to the "Default" pool. I updated 
the volume status of the source to "Full" and the Volume retention time of the 
target volume (tape) to 1 hour. The source job is no longer in the pool to 
which it was directed so I modified the original job to look there.

DAMN! This is getting to be to much trouble to simply move a 25GB backup to a 
tape...(but I bristle, back to the explanation at hand.)

When I run the migration now, bconsole complains that the
 Weekly pool has no "Next Pool" statement. I thought I was migrating from the 
Default pool...whatever, I inserted a "Next Pool" statement pointing at the 
"Tape" pool and bconsole seems happy. It's been more than an hour since the 
tape was last used so why if the migration appending to the tape instead of 
overwriting?

Note to self, if the backup fails to start...terminate it. It may be easier to 
restore...or will it given the above gyrations.

-=-=-=-==-=-=-=-==-=-=-=-==-=-=-=-=-=-=-=-=-=-





*list volumes
Pool: Default
+---------+--------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName   | VolStatus | Enabled | VolBytes       | VolFiles | 
VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+--------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|       5 | TempBU       | Error     |       1 |     17,825,502 |        0 |    
        1 |       1 |    0
 |         0 | File      | 2007-12-15 12:07:02 |
|      44 | Default1     | Append    |       1 | 25,676,270,410 |        5 |   
31,536,000 |       1 |    0 |         0 | File      | 2007-12-16 13:42:15 |
|      45 | fWeekly-0001 | Full      |       1 | 18,998,783,486 |        4 |    
2,937,600 |       1 |    0 |         0 | File      | 2007-12-18 00:14:21
 |
+---------+--------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
<...snip...>
Pool: WeeklyPool
+---------+-------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName  | VolStatus | Enabled | VolBytes       | VolFiles | 
VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+-------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|      21 | Weekly-0001 | Purged    |       1 | 32,992,985,088 |       35
 |            1 |       1 |    0 |         0 | DAT-72    | 2007-11-23 09:00:17 |
|      30 | Weekly-0003 | Purged    |       1 | 17,285,087,232 |       21 |     
       1 |       1 |    0 |         0 | DAT-72    | 2007-12-14 07:08:04 |
|      32 | Weekly-0004 | Append    |       1 |  1,764,532,224 |        3 |     
       1 |       1 |    0
 |         0 | DAT-72    | 2007-12-14 18:41:31 |
+---------+-------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
<...snip...>
Pool: Tape
+---------+-------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName  | VolStatus | Enabled | VolBytes       | VolFiles | 
VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+-------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|      27 | Weekly-0002 | Append    |       1 |
 33,037,949,952 |       37 |            1 |       1 |    0 |         0 | DAT-72 
   | 2007-12-14 11:57:43 |
+---------+-------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
*run Veracruz-migrate
Run Migration job
JobName:       Veracruz-migrate
Bootstrap:     *None*
Client:        VERACRUZ-fd
FileSet:       VERACRUZ_BU
Pool:          Default (From Job resource)
Read Storage:  File (From Pool resource)
Write Storage: DAT72 (From Storage from Pool's NextPool
 resource)
JobId:         *None*
When:          2007-12-18 12:12:57
Catalog:       MyCatalog
Priority:      10
OK to run? (yes/mod/no): yes
Job queued. JobId=215
You have messages.
*messages
18-Dec 12:13 DURANGO-dir JobId 215: The following 1 JobIds were chosen to be 
migrated: 202
18-Dec 12:13 DURANGO-dir JobId 215: Migration using JobId=202 
Job=VERACRUZ-Full.2007-12-17_18.15.18
18-Dec 12:13 DURANGO-dir JobId 215: Bootstrap records written to 
/var/bacula/working/DURANGO-dir.restore.5.bsr
18-Dec 12:13 DURANGO-dir JobId 215:
18-Dec 12:13 DURANGO-dir JobId 215: The job will require the following
   Volume(s)                
 Storage(s)                SD Device(s)
===========================================================================
18-Dec 12:13 DURANGO-dir JobId 215:
18-Dec 12:13 DURANGO-dir JobId 215:    fWeekly-0001              File           
           FileStorage
18-Dec 12:13 DURANGO-dir JobId 215:
18-Dec 12:13 DURANGO-dir JobId 216: No prior Full backup Job record found.
18-Dec 12:13 DURANGO-dir JobId 216: No prior or suitable Full backup found in 
catalog. Doing FULL backup.
18-Dec 12:13 DURANGO-dir JobId 215: Fatal error: No Next Pool specification 
found in Pool "WeeklyPool".
18-Dec 12:13 DURANGO-dir JobId 215: Error: Bacula DURANGO-dir 2.2.5 (09Oct07): 
18-Dec-2007
 12:13:13
  Build OS:               i686-pc-linux-gnu redhat (Zod)
  Prev Backup JobId:      202
  New Backup JobId:       216
  Migration JobId:        215
  Migration Job:          Veracruz-migrate.2007-12-18_12.13.41
  Backup Level:           Full
  Client:                 VERACRUZ-fd
  FileSet:                "VERACRUZ_BU" 2007-11-06 21:07:00
  Read Pool:              "Default" (From Job resource)
  Read
 Storage:           "File" (From Pool resource)
  Write Pool:             "Default" (From Job resource)
  Write Storage:          "DAT72" (From Storage from Pool's NextPool resource)
  Start time:             31-Dec-1969 16:00:00
  End time:               18-Dec-2007 12:13:13
  Elapsed time:           37 years 12 months 20 hours 13 mins 13 secs
  Priority:               10
  SD Files Written:       0
  SD Bytes Written:       0 (0
 B)
  Rate:                   0.0 KB/s
  Volume name(s):
  Volume Session Id:      0
  Volume Session Time:    0
  Last Volume Bytes:      0 (0 B)
  SD Errors:              0
  SD termination status:
  Termination:            *** Migration Error ***


/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
David Gardner
email: djgardner(at)yahoo.com
Yahoo! IM: djgardner
AIM: dgardner09 
"Everything is a learning experience, even a mistake."





      Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.






      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to