Bacula-users

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

2008-04-09 17:34:01
Subject: Re: [Bacula-users] getting a tape back into the catalog
From: "Chris Munns" <chrismunns AT gmail DOT com>
To: "John Drescher" <drescherjm AT gmail DOT com>
Date: Wed, 9 Apr 2008 17:33:52 -0400
I have the Magnum 224.  How do I get it to mount the tape then after I issue an unmount?  Via the front panel on it?

Thanks again John for all your help here.

- Chris

On Wed, Apr 9, 2008 at 4:57 PM, John Drescher <drescherjm AT gmail DOT com> wrote:
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