Bacula-users

Re: [Bacula-users] Bacula 2.4.4 not reusing tapes as expected

2009-05-27 15:08:48
Subject: Re: [Bacula-users] Bacula 2.4.4 not reusing tapes as expected
From: John Drescher <drescherjm AT gmail DOT com>
To: Phil R <bacula-users AT growlybear DOT org>, bacula-users <Bacula-users AT lists.sourceforge DOT net>
Date: Wed, 27 May 2009 15:01:21 -0400
On Wed, May 27, 2009 at 2:40 PM, Phil R <bacula-users AT growlybear DOT org> 
wrote:
> Hope this is the right place to ask this - if not, sorry.
>
Yes this is the correct place.

> Using 2.4.4, automatic recycling doesn't allow tapes to be reused.
>
> I've discovered that if I set the tape status to "recycle" then when the
> next scheduled job runs it recycles the volume - all data lost (good)
> then announces that the max use duration is (already!) exeeded, and
> marks the tape as "used"
>
> 27-May 00:03 machine-dir JobId 191: Start Backup JobId 191,
> Job=testbackup.2009-05-27_00.03.31.06
>
> 27-May 00:03 machine-dir JobId 191: Using Device "DDS-4"
>
> 27-May 00:04 machine-sd JobId 191: Recycled volume "Scratch_1" on device
> "DDS-4" (/dev/nst1), all previous data lost.
>
> 27-May 00:04 machine-dir JobId 191: Max configured use duration
> exceeded. Marking Volume "Scratch_1" as Used.
>
>
>
> ...but continues to complete the job. Then the next night, the tape's
> marked as "used" and the backup fails.
> The "lastWritten" shows the last written time correctly; LabelDate shows
> the time the volume was recycled; but firstwritten shows the time & date
> the tape was first used. Not sure if that's how it's meant to be, but in
> order to use my tapes I have to set UseDuration to be more than the time
> since firstwritten and now.
>
> So if I want to use this tape until Friday, for example, I have to set
> UseDuration to be 54 days. Then when I come to reuse the tape in 4
> weeks' time, I'll need to manually change the UseDuration to be 72 days
> (54+28)
>
> Shouldn't recycling reset the firstwritten time?

Yes.

> Or should it calculate
> UseDuration from something else? Am I expecting something too much?
>
>

Looks like a bug. Can you post the output of list media?

John

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users