Bacula-users

[Bacula-users] Volume Retention Setting Not Honoured

2012-01-18 14:03:29
Subject: [Bacula-users] Volume Retention Setting Not Honoured
From: Joe Nyland <joenyland AT me DOT com>
To: Bacula-users AT lists.sourceforge DOT net
Date: Wed, 18 Jan 2012 19:00:57 +0000
Hi,

Please can someone offer some insight as to why my volume retention setting seems to be ignored in the following job log: http://pastebin.com/LWe7D42L ?

As you can see:
  1. 3076, 3148, 3211, 3368 are scheduled for copy.
  2. Job 3076 starts to copy.
  3. Volume SVN_Full_Copy_1504 is created and labelled ok.
  4. Job 3076 is copied successfully to SVN_Full_Copy_1504
  5. Job 3148 starts to copy.
  6. SVN_Full_Copy_1504 fills up to MaxVolBytes.
  7. SVN_Full_Copy_1505 is created and labelled.
  8. Job 3148 is copied successfully to SVN_Full_Copy_1504 and SVN_Full_Copy_1505.
  9. Job 3211 starts to copy.
  10. SVN_Full_Copy_1505 fills up to MaxVolBytes.
  11. !! Bacula says that there's no more jobs associated with  SVN_Full_Copy_1504 !!
  12. SVN_Full_Copy_1504 is purged (even though it's set to be kept for 6 days)
  13. SVN_Full_Copy_1504 Recycled
  14. Job 3211 is copied successfully to SVN_Full_Copy_1505 and SVN_Full_Copy_1504
  15. Job 3368 starts to copy.
  16. SVN_Full_Copy_1504 fills to MaxVolBytes.
  17. !! Bacula says that there's no more jobs associated with  SVN_Full_Copy_1505 !!
  18. SVN_Full_Copy_1505 is purged (again, even though it is set to be kept for 6 days)
  19. SVN_Full_Copy_1505 fills to MaxVolBytes.
  20. SVN_Full_Copy_1506 is created an labelled ok.
  21. SVN_Full_Copy_1506 fills to MaxVolBytes.
  22. SVN_Full_Copy_150is created and labelled successfully.
  23. Job 3368 is copied successfully to SVN_Full_Copy_1504, SVN_Full_Copy_1505, SVN_Full_Copy_1506 and SVN_Full_Copy_1507.
The result is that I only have a copy of jobs 3211 and 3368, when I should have 3076, 3148, 3211, 3368, which Bacula marked to be copied.

The sections of my config which may be of interest:

bacula-dir.conf

Client {
  Name = FileServer1-fd
  Address = FileServer1
  FDPort = 9102
  Catalog = MyCatalog
  Password = 
  File Retention = 4 weeks
  Job Retention = 6 months
  AutoPrune = yes
}

Job {
  Name = "SVN Repositories Full Copy"
  JobDefs = DefaultCopy
  Type = Copy
  Client = FileServer1-fd
  FileSet = "SVN Repositories"
  Pool = SVN_Full
  Messages = Standard
  Selection Type = PoolUncopiedJobs
  Enabled = No
}

Pool {
  Name = "SVN_Full_Copy"
  Pool Type = *Copy
  Volume Retention = 1 weeks
  Recycle = yes
  AutoPrune = yes
  LabelFormat = SVN_Full_Copy_
  Maximum Volume Bytes = 1G
  Storage = "SVN_Full_Copy"
}

Storage {
  Name = SVN_Full_Copy
  Password = 
  Address = FileServer1
  SDPort = 9103
  Device = SVN_Full_Copy
  Media Type = File
  Maximum Concurrent Jobs = 20
}

bacula-sd.conf

Device {
  Name = SVN_Full_Copy
  Archive Device = /mnt/mac_backup/Bacula/SVN/Full
  Media Type = File
  LabelMedia = yes
  Random Access = yes
  AutomaticMount = yes
  RemovableMedia = no
  AlwaysOpen = no
}

I have updated the volume in bconsole. The DB shows:

mysql> SELECT * FROM Pool WHERE PoolId = 17;
+--------+---------------+---------+---------+---------+------------+-----------------+--------------+----------------+------------+-------------+-------------+-----------+---------+---------------+----------+-----------+----------------+---------+---------------+---------------+------------+--------------------+-------------------+---------------+
| PoolId | Name          | NumVols | MaxVols | UseOnce | UseCatalog | AcceptAnyVolume | VolRetention | VolUseDuration | MaxVolJobs | MaxVolFiles | MaxVolBytes | AutoPrune | Recycle | ActionOnPurge | PoolType | LabelType | LabelFormat    | Enabled | ScratchPoolId | RecyclePoolId | NextPoolId | MigrationHighBytes | MigrationLowBytes | MigrationTime |
+--------+---------------+---------+---------+---------+------------+-----------------+--------------+----------------+------------+-------------+-------------+-----------+---------+---------------+----------+-----------+----------------+---------+---------------+---------------+------------+--------------------+-------------------+---------------+
|     17 | SVN_Full_Copy |       4 |       0 |       0 |          1 |               0 |       604800 |              0 |          0 |           0 |  1073741824 |         1 |       1 |             0 |          |         0 | SVN_Full_Copy_ |       1 |             0 |             0 |          0 |                  0 |                 0 |             0 |
+--------+---------------+---------+---------+---------+------------+-----------------+--------------+----------------+------------+-------------+-------------+-----------+---------+---------------+----------+-----------+----------------+---------+---------------+---------------+------------+--------------------+-------------------+---------------+
1 row in set (0.00 sec)

If I can provide anymore info that may help you to help me, please let me know as I need to resolve this issue :-(

Thank you in anticipation!

Joe Nyland
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
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>
  • [Bacula-users] Volume Retention Setting Not Honoured, Joe Nyland <=