Bacula-users

[Bacula-users] Bacula files on disk not being deleted

2008-06-11 10:11:05
Subject: [Bacula-users] Bacula files on disk not being deleted
From: "Kispert, Megan A. (GSFC-423.0)[ADNET]" <megan.a.kispert AT nasa DOT gov>
To: <bacula-users AT lists.sourceforge DOT net>
Date: Wed, 11 Jun 2008 09:10:54 -0500

Good Day,

 

 

I’m using bacula 2.2.6 on a Centos5 server.  I have a disk storage array that I’m using for backups.  I am having an issue with backups files being created, then not deleted after the set retention policy, causing me to run out of disk space.  I tried a few different configurations but I still can’t get the behavior I’m looking for.  

 

I can see files being recycled, but it seems to happen right before its next use,

 

26-Apr 11:41 backup1-dir JobId 2103: There are no more Jobs associated with Volume "Full_2372". Marking it purged.

26-Apr 11:41 backup1-dir JobId 2103: All records pruned from Volume "Full_2372"; marking it "Purged"

26-Apr 11:41 backup1-dir JobId 2103: Recycled volume "Full_2372"

26-Apr 11:41 backup1-sd JobId 2103: Labeled new Volume "Full_2372" on device "Storage1" (/storage1).

26-Apr 11:41 backup1-sd JobId 2103: Wrote label to prelabeled Volume "Full_2372" on device "Storage1" (/storage1)

26-Apr 11:41 backup1-sd JobId 2103: New volume "Full_2372" mounted on device "Storage1" (/storage1) at 26-Apr-2008 11:n device "Storage2" (/storage2).

 

Then it is used for a backup.  Is there a way to get it to reuse volumes quicker?  I still have files from April around when I should only be keeping files for 2 weeks.

 

 

Bacula-dir.conf snippets:

==========================

Director {                          

  Name = backup1-dir

  DIRport = 9101               

  QueryFile = "/etc/bacula/query.sql"

  WorkingDirectory = "/home/bacula/working"

  PidDirectory = "/var/run"

  Maximum Concurrent Jobs = 4

  Password = "adadfasdfasdf"        

  Messages = Daemon

}

 

JobDefs {

  Name = "Full Backups"

  Type = Backup

  Level = Full

  Client = backup1-fd

  FileSet = "All_Generic"

  Schedule = "WeeklyCycle"

  Messages = Standard

  Pool = Full

 Incremental Backup Pool = Inc

  Full Backup Pool = Full

  Differential Backup Pool = Inc

  Priority = 10

}

 

Schedule {

  Name = "WeeklyCycle"

  Run = Full Pool=Full  sun at 10:00

  Run = Differential Pool=Inc  mon-sun at 04:00

#  Run = Full Pool=Monthly 1st sat at 00:00

}

 

 

Job {

  Name = "ops"

  Client = ops-fd

  JobDefs = "Full Backups"

  FileSet = "DB_Server"

  Storage = Storage1

  Write Bootstrap = "/home/bacula/working/ops.bsr"

}

 

Client {

  Name = ops-fd

  Address = 192.168.1.199

  FDPort = 9102

  Catalog = MyCatalog

  Password = "keyhere"         

  File Retention = 15 days            

  Job Retention = 20 days          

  AutoPrune = yes

}

 

     

Storage {

  Name = Storage1

  Address = 192.168.1.150              

  SDPort = 9103

  Password = "keystuff"

  Maximum Concurrent Jobs = 4

  Device = Storage1

  Media Type = File1

}

 

Pool {

  Name = Full

  Pool Type = Backup

  Recycle = yes                     

  AutoPrune = yes                  

  Volume Retention = 14 days       

  Volume Use Duration = 7 days

  Maximum Volume Bytes = 2147000000

  LabelFormat = "Full_"

}

 

Pool {

  Name = Inc

  Pool Type = Backup

  Recycle = yes                      

  AutoPrune = yes                   

  Volume Retention = 14 days        

  Volume Use Duration = 7 days

  Maximum Volume Bytes = 2147000000

  LabelFormat = "Inc_"

}

 

 

bacula-sd.conf snippets

============================

 

 

 

Device {

  Name = Storage1

  Device Type = File

  Media Type = File1

  Archive Device = /storage1

  LabelMedia = yes;                  

  Random Access = Yes;

  AutomaticMount = yes;              

  RemovableMedia = no;

  AlwaysOpen = no;

}

 

 

 

Thanks,

 

Megan

 

               

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>