On Fri, 2007-11-16 at 11:38 -0800, Dane Miller wrote:
> I'm doing disk-based backups and having a problem getting bacula to
> recycle my purged volumes.  It looks like bacula moves the purged
> volumes out of their configured pool.  Then when bacula tries to
> recycle
> a volume, it chokes with the warning 'Wanted to create Volume
> "clone-Diff-0005", but it already exists. Trying again'.   I'm not
> using
> RecyclePool in my configs. 

Follow-up: I think I found the problem and either fixed it or found a
work-around.  I think I inadvertently moved the volumes out of their
native pool when I used bweb.pl (web interface) to manually purge
volumes.  Somehow the volumes got moved to the 'Default' pool, instead
of their job-specific pool... maybe because the JobDefs specified 'Pool
= Default'... not sure.

So, to be safe, I added "Recycle Pool = <job-specific-pool>" to every
pool definition.  Now bacula recycles expired volumes correctly.  Here's
an example.  Hope this helps...

Job {
  Name = "clone"
  Client = clone-fd
  Storage = cloneFile
  Schedule = "WednesdaySchedule"
  JobDefs = "DefaultJob"
  FileSet = "RootFS-clone"
  Full Backup Pool = "clone-Full"
  Differential Backup Pool = "clone-Diff"
}
Pool {
# weekly full backups
  Name = "clone-Full"
====>  RecyclePool = "clone-Full" <==================
  Pool Type = Backup
  Maximum Volume Jobs = 1
  Volume Retention = 1 weeks 5 days
  Recycle Oldest Volume = yes
  Label Format = "clone-Full-"
}
Pool {
# daily differential backups
  Name = "clone-Diff"
====>  RecyclePool = "clone-Diff" <==================
  Pool Type = Backup
  Maximum Volume Jobs = 1;
  Volume Retention = 5 days
  Recycle Oldest Volume = yes
  Label Format = "clone-Diff-"
}
JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Incremental
  Pool = Default
  FileSet = "RootFS"
  Schedule = "DefaultSchedule"
  Messages = Standard
  Write Bootstrap = "/var/db/bacula/%c_%n.bsr"
  Priority = 10
}

-- 
Dane Miller
Systems Administartor
Greatschools, Inc
http://www.greatschools.net


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to