Bacula-users

[Bacula-users] Migrated Monthly Backups not seen by Dailies.

2008-05-07 13:29:22
Subject: [Bacula-users] Migrated Monthly Backups not seen by Dailies.
From: Doug Breshears <doug AT jshfarms DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 07 May 2008 09:25:10 -0700
Hi all,

I have a Monthly Full backup that backs up to a DISK FILE, Then Migrate 
to Tape. I then do a daily backup which should look at the last Full 
backup. However the daily process is saying it cannot find a valid FULL 
backup to compare to.

I have included the pertinent sections from the log file to show the 
progress of this one Job resource ("Full Set").
I would appreciate any feedback here letting me know what I am doing wrong.

--------------------------------------------------------------------------------------
Time Frame:

    I started the Full Backup Friday Eve (May 02),
    I started Migration Monday Morn (May 05) (after setting volume
    status to FULL),
    Migration went all day and ended Tuesday,
    Enabled regular daily backups Tuesday so it started Wednesday ~1am.


--------------------------------------------------------------------------------------
Here is the Pool Definition for the Disk Based Monthly storage:

    Pool {
      Name = Monthly-File
      Pool Type = Backup
      Storage = File
      Next Pool = Monthly
      Recycle = yes                       # Bacula can automatically
    recycle Volumes
      AutoPrune = yes                     # Prune expired volumes
      # Use Volume Once = yes
      Volume Retention =  32 days         #
      Label Format = Monthly-
    }

I remarked out the "Use Volume Once" because I was afraid it was the 
cause of this but it does not look like it.
Because I did this, I had to manually set the disk volume status to FULL 
(from Append) so that the migration would occur.




---------------------------------------------------------------------------------------
Here is the initial FULL backup:

    02-May 17:36 Ex1-dir: Start Backup JobId 4292,
    Job=Ex1.2008-05-02_17.36.37
    02-May 17:36 Ex1-dir: Created new Volume "Monthly-0001" in catalog.
    02-May 17:36 Ex1-sd: Labeled new Volume "Monthly-0001" on device
    "FileStorage" (/backup/FStorage).
    02-May 17:36 Ex1-sd: Wrote label to prelabeled Volume "Monthly-0001"
    on device "FileStorage" (/backup/FStorage)
    Ex1-fd:      /var/lock is a different filesystem. Will not descend
    from / into /var/lock
    Ex1-fd:      /var/run is a different filesystem. Will not descend
    from / into /var/run
    Ex1-fd:      /dev is a different filesystem. Will not descend from /
    into /dev
    Ex1-fd:      /sys is a different filesystem. Will not descend from /
    into /sys
    02-May 19:09 Ex1-sd: Job write elapsed time = 01:32:35, Transfer
    rate = 8.599 M bytes/second
    02-May 19:09 Ex1-dir: Bacula 2.0.3 (06Mar07): 02-May-2008 19:09:16
      JobId:                  4292
      Job:                    Ex1.2008-05-02_17.36.37
      Backup Level:           Full
      Client:                 "Ex1-fd" 2.0.3 (06Mar07)
    i486-pc-linux-gnu,debian,testing/unstable
      FileSet:                "Full Set" 2007-05-28 09:11:50
      Pool:                   "Monthly-File" (From Job resource)
      Storage:                "File" (From Pool resource)
      Scheduled time:         02-May-2008 17:36:36
      Start time:             02-May-2008 17:36:40
      End time:               02-May-2008 19:09:16
      Elapsed time:           1 hour 32 mins 36 secs
      Priority:               10
      FD Files Written:       159,519
      SD Files Written:       159,519
      FD Bytes Written:       47,746,282,407 (47.74 GB)
      SD Bytes Written:       47,768,711,385 (47.76 GB)
      Rate:                   8593.6 KB/s
      Software Compression:   None
      VSS:                    no
      Encryption:             no
      Volume name(s):         Monthly-0001
      Volume Session Id:      57
      Volume Session Time:    1207096664
      Last Volume Bytes:      47,809,136,080 (47.80 GB)
      Non-fatal FD errors:    0
      SD Errors:              0
      FD termination status:  OK
      SD termination status:  OK
      Termination:            Backup OK

---------------------------------------------------------------------------------------
Here is the Migration:

    05-May 08:18 Ex1-dir: The following 1 JobIds were chosen to be
    migrated: 4292
    05-May 08:18 Ex1-dir: Migration using JobId=4292
    Job=Ex1.2008-05-02_17.36.37
    05-May 08:18 Ex1-dir: Bootstrap records written to
    /var/lib/bacula/Ex1-dir.restore.1.bsr
    05-May 08:18 Ex1-dir:
    05-May 08:18 Ex1-dir: The job will require the following
       Volume(s)                 Storage(s)                SD Device(s)
    ===========================================================================
    05-May 08:18 Ex1-dir:
    05-May 08:18 Ex1-dir:    Monthly-0001             
    File                      FileStorage
    05-May 08:18 Ex1-dir:
    05-May 08:18 Ex1-dir: Start Migration JobId 4300,
    Job=Migrate-Monthly.2008-05-05_08.18.01
    05-May 08:18 Ex1-sd: Ready to read from volume "Monthly-0001" on
    device "FileStorage" (/backup/FStorage).
    05-May 08:18 Ex1-dir: Recycled current volume "Monthly-16"
    05-May 08:18 Ex1-sd: Recycled volume "Monthly-16" on device "DAT-72"
    (/dev/st0), all previous data lost.
    05-May 08:18 Ex1-sd: Forward spacing Volume "Monthly-0001" to
    file:block 0:195.
    05-May 11:54 Ex1-sd: End of Volume at file 36 on device
    "FileStorage" (/backup/FStorage), Volume "Monthly-0001"
    05-May 11:54 Ex1-sd: End of all volumes.
    05-May 11:56 Ex1-dir: Bacula 2.0.3 (06Mar07): 05-May-2008 11:56:12
      Prev Backup JobId:      4292
      New Backup JobId:       4301
      Migration JobId:        4300
      Migration Job:          Migrate-Monthly.2008-05-05_08.18.01
      Backup Level:           Full
      Client:                 Ex1-fd
      FileSet:                "Migration Full Set" 2007-05-30 17:14:31
      Read Pool:              "Monthly-File" (From Job resource)
      Read Storage:           "File" (From Pool resource)
      Write Pool:             "Monthly" (From Job Pool's NextPool resource)
      Write Storage:          "DAT-72" (From Storage from Pool's
    NextPool resource)
      Start time:             05-May-2008 08:18:05
      End time:               05-May-2008 11:56:12
      Elapsed time:           3 hours 38 mins 7 secs
      Priority:               10
      SD Files Written:       159,519
      SD Bytes Written:       47,768,711,701 (47.76 GB)
      Rate:                   3650.1 KB/s
      Volume name(s):         Monthly-16
      Volume Session Id:      62
      Volume Session Time:    1207096664
      Last Volume Bytes:      47,809,262,592 (47.80 GB)
      SD Errors:              0
      SD termination status:  OK
      Termination:            Migration OK

    05-May 12:00 Ex1-dir: Begin pruning Jobs.
    05-May 12:00 Ex1-dir: No Jobs found to prune.
    05-May 12:00 Ex1-dir: Begin pruning Files.
    05-May 12:00 Ex1-dir: No Files found to prune.
    05-May 12:00 Ex1-dir: End auto prune.

---------------------------------------------------------------------------------------
Here is DAILY backup saying it can find no FULL backup.


    07-May 01:05 Ex1-dir: No prior Full backup Job record found.
    07-May 01:05 Ex1-dir: No prior or suitable Full backup found in
    catalog. Doing FULL backup.
    07-May 01:05 Ex1-dir: Start Backup JobId 4309,
    Job=Ex1.2008-05-07_01.05.02
    07-May 01:05 Ex1-sd: Volume "Daily-0009" previously written, moving
    to end of data.
    Ex1-fd:      /var/lock is a different filesystem. Will not descend
    from / into /var/lock
    Ex1-fd:      /var/run is a different filesystem. Will not descend
    from / into /var/run
    07-May 01:14 Ex1-fd:      Could not stat
    /var/lib/bacula/bacula.db-journal: ERR=No such file or directory
    Ex1-fd:      /dev is a different filesystem. Will not descend from /
    into /dev
    Ex1-fd:      /sys is a different filesystem. Will not descend from /
    into /sys
    07-May 02:38 Ex1-sd: Job write elapsed time = 01:32:58, Transfer
    rate = 8.565 M bytes/second
    07-May 02:38 Ex1-dir: Bacula 2.0.3 (06Mar07): 07-May-2008 02:38:05
      JobId:                  4309
      Job:                    Ex1.2008-05-07_01.05.02
      Backup Level:           Full (upgraded from Incremental)
      Client:                 "Ex1-fd" 2.0.3 (06Mar07)
    i486-pc-linux-gnu,debian,testing/unstable
      FileSet:                "Full Set" 2007-05-28 09:11:50
      Pool:                   "Daily-File" (From Job resource)
      Storage:                "File" (From Pool resource)
      Scheduled time:         07-May-2008 01:05:01
      Start time:             07-May-2008 01:05:05
      End time:               07-May-2008 02:38:05
      Elapsed time:           1 hour 33 mins
      Priority:               10
      FD Files Written:       159,572
      SD Files Written:       159,572
      FD Bytes Written:       47,757,712,251 (47.75 GB)
      SD Bytes Written:       47,780,149,624 (47.78 GB)
      Rate:                   8558.7 KB/s
      Software Compression:   None
      VSS:                    no
      Encryption:             no
      Volume name(s):         Daily-0009
      Volume Session Id:      67
      Volume Session Time:    1207096664
      Last Volume Bytes:      53,334,619,005 (53.33 GB)
      Non-fatal FD errors:    1
      SD Errors:              0
      FD termination status:  OK
      SD termination status:  OK
      Termination:            Backup OK -- with warnings

    07-May 02:38 Ex1-dir: Begin pruning Jobs.
    07-May 02:38 Ex1-dir: Pruned 0 Jobs for client Ex1-fd from catalog.
    07-May 02:38 Ex1-dir: Begin pruning Files.
    07-May 02:38 Ex1-dir: No Files found to prune.
    07-May 02:38 Ex1-dir: End auto prune.


Thank you for any help
Doug


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users