Hello list, i encounter some problems with tape recycling which
often seems to be done too late, so backup is never run L My setup: - bacula 1.36.3-1 on redhat. - one DDS-4 drive - set up bacula to do full backup from Monday to
Thursday on one tape each day - on Fridays I use 4 tapes for a month I used the configuration example from the
documentation with 5 different media pools: My bacula-dir.conf: […] # # When to do the backups # Schedule { Name = "WeeklyCycle" Run = Level=Full Pool=MondayPool Monday at
22:00 Run = Level=Full Pool=TuesdayPool Tuesday at
22:00 Run = Level=Full Pool=WednesdayPool Wednesday
at 22:00 Run = Level=Full Pool=ThursdayPool Thursday at
22:00 Run = Level=Full Pool=WeeklyPool Friday at
22:00 } # This does the catalog. It starts after the
WeeklyCycle Schedule { Name = "WeeklyCycleAfterBackup" Run = Level=Full Pool=MondayPool Monday at
22:15 Run = Level=Full Pool=TuesdayPool Tuesday at
22:15 Run = Level=Full Pool=WednesdayPool Wednesday
at 22:15 Run = Level=Full Pool=ThursdayPool Thursday at
22:15 Run = Level=Full Pool=WeeklyPool Friday at
22:15 } # # Pool definitions # # Default Pool for jobs, but will hold no actual
volumes Pool { Name = Default Pool Type = Backup } Pool { Name = MondayPool Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 6d Accept Any Volume = yes Maximum Volume Jobs = 2 } Pool { Name = TuesdayPool Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 6d Accept Any Volume = yes Maximum Volume Jobs = 2 } Pool { Name = WednesdayPool Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 6d Accept Any Volume = yes Maximum Volume Jobs = 2 } Pool { Name = ThursdayPool Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 6d Accept Any Volume = yes Maximum Volume Jobs = 2 } Pool { Name = WeeklyPool Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 12d Accept Any Volume = yes Maximum Volume Jobs = 2 } Strange enough my backup at 22:00 won’t start
because the volume it should use is not recycled yet! e.g. showing “list media” at 21:50 shows: +---------+------------+-----------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+ | mediaid |
volumename | volstatus | volbytes |
volfiles | volretention | recycle | slot | inchanger | mediatype |
lastwritten | +---------+------------+-----------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+ |
5 | mittwoch | Used | 10,166,053,499
| 12 |
518,400 | 1 | 0
| 1 |
DDS-4 | 2005-06-22 22:48:53 | +---------+------------+-----------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+ Note this was on 29.06.2005 at 21:50 ! Since volume retention is set to 518,400 = 6
days I thought bacula would recycle the volume on 22.06.2005 22:48 (lastwritten)
+ 6 days = 28.06.2005 22:48 ??? My bacula refuses to backup with the following
errors: 29-Jun 22:00
saturn-sd: Job NightlySave.2005-06-29_22.00.00 waiting. Cannot find any
appendable volumes. Please use the
"label" command to create a new Volume for:
Storage: DDS-4
Media type: DDS-4
Pool: WednesdayPool 29-Jun 23:00
saturn-dir: Recycled volume "mittwoch" 29-Jun 23:00
saturn-sd: Please mount Volume "mittwoch" on Storage Device
"DDS-4" for Job NightlySave.2005-06-29_22.00.00 Use "mount"
command to release Job. 30-Jun 01:00 saturn-sd:
Please mount Volume "mittwoch" on Storage Device "DDS-4"
for Job NightlySave.2005-06-29_22.00.00 Use "mount" command to
release Job. I don’t understand why bacula is recycling
volume “Mittwoch” at 23:00 on 29.06.05 which is obviously too late
! What am I missing here ?? Any help appreciated Kind Regards, Martin |