>>>>> On Tue, 02 Oct 2007 00:11:25 +0200, Eric Yellin said:
> 
> Hi,
> 
> 
> I have a problem that occurred twice when trying to restore data from a 
> bacula labeled tape. I used "label barcodes" to label the tapes this 
> worked fine. Backups also completed without errors. However when I 
> needed to restore, things did not go so smoothly :-( Most tapes restored 
> just fine however in 2 occasions I received an error like the following:
> 
> 
> Requested Volume "101077L1" on "Drive-1" (/dev/sa1) is not a Bacula 
> labeled Volume, because: ERR=block.c:957 Read zero bytes at 0:0 on 
> device "Drive-1" (/dev/sa1).
> 
> 
> And then was requested to mount a tape with the same label.
> 
> 
>  From what I read in the list this means that a zero size file exists 
> before the label. I also read that using mt and dd it is somehow 
> possible to get the tape info and then even retrieve the data, I did not 
> however find out how exactly this can be done...
> 
> So I have 2 questions:
> 
> 1. Can I retrieve the backed up data from the problematic tape?

Probably not (see 2 below).  If you want to see what the tape contains using
unix tools, then load the tape into drive 1 and do

mt -f /dev/nsa1 rewind
dd if=/dev/nsa1 bs=64512 | od -c | head -40
mt -f /dev/nsa1 fsf
dd if=/dev/nsa1 bs=64512 | od -c | head -40
mt -f /dev/nsa1 fsf
dd if=/dev/nsa1 bs=64512 | od -c | head -40
mt -f /dev/nsa1 fsf
dd if=/dev/nsa1 bs=64512 | od -c | head -40

This will show the headers of the first 4 tape files, which will contain info
about the Bacula jobs if any.


> 2. Is there a way I can prevent this error from repeating in the future? 
> If so how?

I think you need to change the Archive Device options to /dev/nsa1 and
/dev/nsa0, the non-rewinding devices.  The current configuration uses the
rewinding devices, so will overwrite the beginning of the tape each time it is
opened.


> I did test the changer with btape before going into production and it 
> gave me no errors.

It is rather surprising that it worked with the rewinding devices (/dev/sa0
etc).

__Martin

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to