Bacula-users

Re: [Bacula-users] Clean bacula server shutdown

2008-09-25 08:08:55
Subject: Re: [Bacula-users] Clean bacula server shutdown
From: Martin Simmons <martin AT lispworks DOT com>
To: slehmann AT proficom-ag DOT de
Date: Thu, 25 Sep 2008 12:24:38 +0100
>>>>> On Thu, 25 Sep 2008 12:55:09 +0200 (CEST), Sebastian Lehmann said:
> 
> Hi,
> 
> Am Do 25.09.2008 11:16 schrieb Erik P. Olsen <epodata AT gmail DOT com>:
> 
> > On 25/09/08 10:10, Sebastian Lehmann wrote:
> > > Hi,
> > > 
> > > Am Mi 24.09.2008 20:52 schrieb Steve Garcia <sgarcia AT bak.rr DOT com>:
> > > 
> > >> Is there a procedure for shutting bacula down cleanly? In the last
> > >> two
> > >> months, I've had to shut down the bacula server twice, once for a
> > >> scheduled power outage, and once due to a kernel upgrade.
> > >>
> > >> Both times I've ended up with "damaged" tape volumes, no longer
> > >> able
> > >> to
> > >> append.
> > >>
> > >> "Bad response to Append Data command. Wanted 3000 OK data, got 3903
> > >> Error append data"
> > >>
> > >> Now one additional issue is that when the server is rebooted, the
> > >> changer device seems to change. I've now written a UDEV rule that I
> > >> hope will resolve this. In any case, I'm *pretty* sure that this is
> > >> an
> > >> unrelated problem, but I could be wrong.
> > >>
> > > Release any tape befor shutding down bacula. That should prevent you
> > > for
> > > damaged tapes.
> > 
> > Can't bacula gracefully release tape volumes at shutdowns? It may very
> > well be
> > that bacula doesn't but isn't it possible?
> > 
> I believe not,

It should be clean if you shut down while bacula is idle.

If you shut down during a backup, then the catalog might not be updated to
match the tape, which will cause a mismatch next time the tape is used.  Is
that the situation you are seeing?

__Martin

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users