Hello,

I'm using Bacula 1.36.3 whit a auto-loader and 4 Cartridges.
Bacula is configured to autoprune and recycle tapes.



--> Schedule: name=WeeklyCycle
  --> Run Level=Full
      hour=12
      mday=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
      month=0 1 2 3 4 5 6 7 8 9 10 11
      wday=0
      wom=1 2 3 4
      woy=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
      mins=0
  --> RunBefore=/usr/local/sbin/tape clean
  --> RunAfter=/usr/local/sbin/tape unload
  --> WriteBootstrap=/var/lib/bacula/nas01woche.bsr
  -->   --> Pool: name=Woche PoolType=Backup
      use_cat=1 use_once=0 acpt_any=1 cat_files=1
      max_vols=0 auto_prune=1 VolRetention=1 month 1 day
      VolUse=0 secs recycle=1 LabelFormat=*None*# Default pool definition

bacula-dir.conf
----------------------------------------------------------------------------------------------------------
Pool {
  Name = Week
  Pool Type = Backup
  Recycle = yes                      # Bacula can automatically recycle Volumes
  AutoPrune = yes                    # Prune expired volumes
  Volume Retention = 31 days         # 31 days
  Accept Any Volume = yes             # write on any volume in the pool
  Cleaning Prefix = "CLNU"
}
      CleaningPrefix=CLNU
      recyleOldest=0 MaxVolJobs=0 MaxVolFiles=0
----------------------------------------------------------------------------------------------------------

Now I have two Problems:

Problem No 1:
The pruned tapes are not recycelt although there in no tape whith append and the old one are pruned.

bconsole output:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
|     043 | PNG424L2   |   Purged | 308,091,585,493 |      308 |    2,592,000 |       0 |   10 |         1 | XXX      | 2005-08-02 06:29:22 |
|     044 | PNG425L2   |   Purged | 270,249,820,171 |      270 |    2,592,000 |       0 |   11 |         1 | XXX      | 2005-08-02 05:29:22 |
|     045 | PNG426L2   |   Purged | 321,910,123,181 |      322 |    2,592,000 |       0 |   12 |         1 | XXX      | 2005-08-02 04:29:22 |
|     046 | PNG427L2   |   Purged | 386,415,142,280 |      386 |    2,592,000 |       0 |   13 |         1 | XXX      | 2005-08-02 02:03:56 |
|     048 | PNG429L2   |   Purged | 268,258,528,583 |      268 |    2,592,000 |       0 |   15 |         1 | XXX      | 2005-08-01 23:38:44 |
----------------------------------------------------------------------------------------------------------------------------------------------------------------------

For the whole output, take a look a few lines later.

Problem No. 2

I have 4 Weekly Sets , 7 Tapes per set and one set is in a Cartridge.
Only the Set from PNG424L2 to PNG429L2 should be purged.
Why are the red marked Tapes been purged?


Pool: Week
+---------+------------------+-------------+---------------------+--------+----------------+----------+----+------------+---------------+----------------------------+
| MediaId | VolumeName | VolStatus | VolBytes             |VolFiles| VolRetention| Recycle  | Slot| InChanger| MediaType  | LastWritten                 |
+---------+------------------+-------------+---------------------+--------+----------------+----------+---- +------------+---------------+---------------------------+
|     236   | PNG416L2       | Purged    | 310,318,539,410 |      310 |    2,592,000 |       0     |    1  |         0      | XXX            | 2005-08-29 04:16:22 |
|     237   | PNG417L2       | Full          | 162,122,856,335 |      163 |    2,592,000 |       0     |    2  |         0      | XXX            | 2005-08-29 03:16:59 |
|     238   | PNG418L2       | Full          | 364,860,977,946 |      364 |    2,592,000 |       0     |    3  |         0      | XXX            | 2005-08-29 01:58:39 |
|     239   | PNG419L2       | Full          | 297,223,251,509 |      297 |    2,592,000 |       0     |    4  |         0      | XXX            | 2005-08-28 23:34:53 |
|     240   | PNG420L2       | Full          | 269,142,923,451 |      269 |    2,592,000 |       0     |    5  |         0      | XXX            | 2005-08-28 21:11:30 |
|     241   | PNG421L2       | Full          | 322,664,148,606 |      323 |    2,592,000 |       0     |    6  |         0      | XXX            | 2005-08-28 18:54:01 |
|     243   | PNG424L2       | Purged    | 308,091,585,493 |      308 |    2,592,000 |       0     |   10 |         1      | XXX            | 2005-08-02 06:29:22 |
|     244   | PNG425L2       | Purged    | 270,249,820,171 |      270 |    2,592,000 |       0     |   11 |         1      | XXX            | 2005-08-02 05:29:22 |
|     245   | PNG426L2       | Purged    | 321,910,123,181 |      322 |    2,592,000 |       0     |   12 |         1      | XXX            | 2005-08-02 04:29:22 |
|     246   | PNG427L2       | Purged    | 386,415,142,280 |      386 |    2,592,000 |       0     |   13 |         1      | XXX            | 2005-08-02 02:03:56 |
|     248   | PNG429L2       | Purged    | 268,258,528,583 |      268 |    2,592,000 |       0     |   15 |         1      | XXX            | 2005-08-01 23:38:44 |
|     249   | PNG430L2       | Full          |  61,246,874,689  |       62  |    2,592,000 |       0     |    1  |         1      | XXX            | 2005-08-14 23:21:03 |
|     250   | PNG431L2       | Full          | 330,978,829,658 |      331 |    2,592,000 |       0     |    2  |         1      | XXX            | 2005-08-14 22:50:55 |
|     251   | PNG432L2       | Full          | 392,287,152,704 |      392 |    2,592,000 |       0     |    3  |         1      | XXX            | 2005-08-14 20:29:25 |
|     252   | PNG433L2       | Full          | 239,807,450,928 |      239 |    2,592,000 |       0     |    4  |         1      | XXX            | 2005-08-14 18:04:30 |
|     253   | PNG434L2       | Full          | 316,216,999,705 |      316 |    2,592,000 |       0     |    5  |         1      | XXX            | 2005-08-14 15:46:31 |
|     254   | PNG435L2       | Purged    |                          1 |      316 |    2,678,400 |       0     |    6  |         1      | XXX            | 2005-08-14 13:29:22 |
|     265   | PNG437L2       | Full          |                          1 |      316 |    3,456,000 |       0     |    9  |         1      | XXX            | 2005-08-24 08:59:02 |
|     266   | PNG438L2       | Full          |   32,809,415,483 |       33  |    2,592,000 |       0     |   10 |         0      | XXX            | 2005-08-24 18:38:58 |
|     267   | PNG439L2       | Full          | 319,636,460,524 |      319 |    2,592,000 |       0     |   11 |         0      | XXX            | 2005-08-24 18:21:07 |
|     268   | PNG440L2       | Full          | 375,330,563,180 |      375 |    2,592,000 |       0     |   12 |         0      | XXX            | 2005-08-24 16:00:18 |
|     269   | PNG441L2       | Full          | 268,253,561,143 |      268 |    2,592,000 |       0     |   13 |         0      | XXX            | 2005-08-24 13:36:19 |
|     270   | PNG442L2       | Full          | 321,883,990,901 |      321 |    2,592,000 |       0     |   14 |         1      | XXX            | 2005-08-24 11:20:38 |
+---------+------------+-----------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+---------------------+


Any hints ?

Many thaks in advanced,

Dihor Viktor.

Email: viktor.dihor  at   fernwaerme-ulm.de

Reply via email to