Bacula-users

Re: [Bacula-users] Bacula loses tape label?

2009-03-08 12:04:43
Subject: Re: [Bacula-users] Bacula loses tape label?
From: John Drescher <drescherjm AT gmail DOT com>
To: Robert LeBlanc <robert AT leblancnet DOT us>
Date: Sun, 8 Mar 2009 11:56:01 -0400
On Sun, Mar 8, 2009 at 1:25 AM, Robert LeBlanc <robert AT leblancnet DOT us> 
wrote:
> I’ve and my third instance now where Bacula has lost the tape label. This
> seems to happen after a power outage (our tape library goes out, but the
> server is on UPS). What is really interesting is that when the power goes
> out, nothing is writing to the tape, but the tape is usually in the drive at
> the end of the data. When Bacula goes to write to the tape again, it tells
> me to insert the volume that is in the drive or label a new tape. I would
> just write a new label to it, but my understanding is that it also writes an
> EoF basically blanking the tape and losing all the data on it. Can someone
> give me an idea of how to get the data off or relabel the tape so that none
> of the data is lost? These are LTO4 tape and only using 100 GB or so; we are
> going to run through the tapes too fast if I just have to mark them as used.
> I’m also worried that I won’t be able to restore any data off them since the
> label can not be read. Here are the btape commands to read the labels from
> two of the tapes; I can’t remember the third tape that showed the problem.
>
>

I have seen this in the past. What ends up happening is the tape gets
rewinded by the drive but bacula believes it is at the end of the data
instead of the beginning. So when bacula does the next write it starts
at the beginning, completely trashing the tape. I see two solutions to
the problem. Either put the archive unit on its own ups or have the
server monitor the ups and when it detects the power comes back online
it calls a script to tell bacula to release the tapes that are already
in volumes.

John

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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>