Bacula-users

Re: [Bacula-users] getting a tape back into the catalog

2008-04-09 16:57:33
Subject: Re: [Bacula-users] getting a tape back into the catalog
From: "John Drescher" <drescherjm AT gmail DOT com>
To: "Chris Munns" <chrismunns AT gmail DOT com>, bacula-users <Bacula-users AT lists.sourceforge DOT net>
Date: Wed, 9 Apr 2008 16:57:20 -0400
On Wed, Apr 9, 2008 at 4:50 PM, Chris Munns <chrismunns AT gmail DOT com> wrote:
> I am trying to get a tape that had been deleted from the catalog back into
> it.   I have tried everything I can possibly think of(including manually
> entering it in the database, but it never seems right), but I can't seem to
> get Bacula to treat the tape as if it were new again(labeling, re-labeling
> doesn't work).  Is there any easy way for me to completely wipe the tape
> itself clean with Bacula or its associated tools?  I want to use the same
> barcode label on it if possible, but if putting a new label on it would
> work, I would just as easily do that instead.
>
> Any thoughts?
>
If you do not care about the data on the tape and just want to label
it for use. Do the following.

unmount a tape using umount in bacula or stop the bacula-sd service to
get bacula to release its lock on the drive.

Then

mt -f /dev/nst0 rewind
mt -f /dev/nst0 weof

Then start the bacula-sd service if you stopped it,
Then label the tape in bacula. Make sure you remove any of the manual
database labeling if it still exists..

John

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users