Bacula-users

[Bacula-users] premature recycling

2010-10-20 15:38:24
Subject: [Bacula-users] premature recycling
From: "Dan Langille" <dan AT langille DOT org>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 20 Oct 2010 15:34:42 -0400
I'm getting recycling before retention expires.  Or so I think.  It may be
possible that the Pools definitions are out of date, but before I run an
update command, I wanted to see if anyone saw something out of order here.

This is the Volume before it was recycled:

Pool: FullsFile
| mediaid | volumename    | volstatus | enabled | volbytes      | volfiles
| volretention | recycle | slot | inchanger | mediatype | lastwritten     
   |
|     445 | FileAuto-0445 | Full      |       1 | 5,368,691,646 |        1
|   94,608,000 |       1 |    0 |         0 | File      | 2010-04-16
08:24:59 |

That is 3 years retention. Last written April this year

The Volume is then recycled during the job:

20-Oct 20:18 kraken-sd JobId 39232: User defined maximum volume capacity
5,368,709,120 exceeded on device "MegaFile"
(/storage/compressed/bacula/volumes).
20-Oct 20:18 kraken-sd JobId 39232: End of medium on Volume
"FileAuto-0437" Bytes=5,368,688,857 Blocks=83,220 at 20-Oct-2010 15:18.
20-Oct 20:18 bacula-dir JobId 39232: There are no more Jobs associated
with Volume "FileAuto-0445". Marking it purged.
20-Oct 20:18 bacula-dir JobId 39232: All records pruned from Volume
"FileAuto-0445"; marking it "Purged"
20-Oct 20:18 bacula-dir JobId 39232: Recycled volume "FileAuto-0445"
20-Oct 20:18 kraken-sd JobId 39232: Recycled volume "FileAuto-0445" on
device "MegaFile" (/storage/compressed/bacula/volumes), all previous data
lost.
20-Oct 20:18 kraken-sd JobId 39232: New volume "FileAuto-0445" mounted on
device "MegaFile" (/storage/compressed/bacula/volumes) at 20-Oct-2010
15:18.

The job, storage, and some pools.


Job {
  Name            = "kraken"
  JobDefs         = "DefaultJob"
  Client          = kraken-fd
  FileSet         = "kraken files"
  Storage         = MegaFile-kraken
  Pool            = MegaFile-kraken
  Write Bootstrap = "/home/bacula/working/kraken-fd.bsr"

  Schedule = "WeeklyCycle"
}


Storage {
  Name       = MegaFile-kraken
  Address    = kraken.unixathome.org
  SDPort     = 9103
  Password   = "YesThisReallyIsMyPassword"
  Device     = MegaFile-kraken
  Media Type = File
}


Pool {
  Name             = MegaFile-kraken
  Pool Type        = Backup
  Recycle          = yes
  AutoPrune        = yes
  Volume Retention = 3 years
  Storage          = MegaFile-kraken

  Maximum Volume Bytes = 5G

  LabelFormat = "FileAuto-"
}


Pool {
  Name             = FullsFile
  Pool Type        = Backup
  Recycle          = yes
  AutoPrune        = yes
  Volume Retention = 3 years
  Storage          = MegaFile

  Maximum Volume Bytes = 5G

  LabelFormat = "FileAuto-"
}

This is the only pool with a "Purge Oldest Volume" directive.

Pool {
  Name             = FilePool
  Pool Type        = Backup
  Recycle          = yes
  AutoPrune        = yes
  Volume Retention = 1 year
  Next Pool        = Default

  Storage          = File

  Maximum Volume Bytes = 5G

  LabelFormat = "FileAuto-"

  Maximum Volumes = 67
  Purge Oldest Volume = yes
}






-- 
Dan Langille -- http://langille.org/


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users