Bacula-users

Re: [Bacula-users] Corrupted Tape

2009-02-04 05:41:52
Subject: Re: [Bacula-users] Corrupted Tape
From: Arno Lehmann <al AT its-lehmann DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 04 Feb 2009 11:38:32 +0100
Hi,

03.02.2009 20:51, Clark, Stephen E. wrote:
> 
> 
> I am having trouble restoring from tape.  The last tape in my series has 
> a problem with the label.  The error I get from the console is:
> 
>  
> 
> 02-Feb 19:04 maxwell-sd JobId 762: 3304 Issuing autochanger "load slot 
> 1, drive 0" command.
> 
> 02-Feb 19:04 maxwell-sd JobId 762: 3305 Autochanger "load slot 1, drive 
> 0", status is OK.
> 
> 02-Feb 19:04 maxwell-sd JobId 762: Error: block.c:275 Volume data error 
> at 0:0! Wanted ID: "BB02", got "". Buffer discarded.

Ok... that tape is definitely no longer usable for Bacula as it 
doesn't contain a Bacula label any more.

> 02-Feb 19:04 maxwell-sd JobId 762: Warning: acquire.c:260 Requested 
> Volume "000183L1" on "Tape" (/dev/nst0) is not a Bacula labeled Volume, 
> because: ERR=block.c:275 Volume data error at 0:0! Wanted ID: "BB02", 
> got "". Buffer discarded.
> 
> 02-Feb 19:04 maxwell-sd JobId 762: Warning: acquire.c:260 Requested 
> Volume "000183L1" on "Tape" (/dev/nst0) is not a Bacula labeled Volume, 
> because: ERR=block.c:275 Volume data error at 0:0! Wanted ID: "BB02", 
> got "". Buffer discarded.
> 
> 02-Feb 19:04 maxwell-sd JobId 762: Please mount Volume "000183L1" for:
> 
>     Job:          RestoreFiles.2009-02-02_18.18.41.03
> 
>     Storage:      "Tape" (/dev/nst0)
> 
>     Pool:         Default
> 
>     Media type:   LTO-2
> 
>  
> 
> I was trying to see what output the ‘tapeinfo’ command would give me, 
> and I believe it wrote to the front of the tape and destroyed the 
> label.

If it did that - and I seriously doubt that - it's a bug you should 
first try to reproduce and then report to the tapeinfo maintainer.

>  I believe the data on the tape should be mostly intact and I 
> would like to relabel it without losing all of the data.  I am currently 
> restoring to a previous backup that doesn’t include that last tape, but 
> it would be nice to be able to salvage the data.  I was thinking that I 
> could dd a label onto the front of the tape, but I do not know what a 
> Bacula label looks like, nor what block size it is written in. 

No way... I understand you're using LTO tape, and those tapes store 
the end of the last write operation not only on tape but, AFAIK, also 
on their cartridge memory chip... in other words, you can't write 
something to the beginning of the tape and later read beyond that 
(with more plain tape technology, you had a (slim) chance of succeding 
with such a procedure).

>  
> 
> [root@maxwell tape_recover]# dd if=/dev/st0 of=testfile ibs=64k count=1
> 
> 0+1 records in
> 
> 0+1 records out
> 
> [root@maxwell tape_recover]# od -x testfile
> 
> 0000000 002a 0000 005c 0000 0000 0000 0000 0000
> 
> 0000020 0000 0000 0000 0000 0000 0000 0000 0000
> 
> 0000040 0000 0000 0012 0000 0038
> 
> 0000052

A very short block, by the way.

>  
> 
> Does anyone have experience with recovering corrupt tapes?  Any ideas on 
> how to recover the tape would be appreciated.

Try bls or bextract with the -p switch... other than that, this would 
be a case for a profession data recovery company.

By the way - any further diagnostics should be done with the write 
protect slider engaged!

Good luck,

Arno

>  
> 
> S. Eric Clark
> 
> E-Mail: stephen.e.clark AT saic DOT com <mailto:stephen.e.clark AT saic DOT 
> com>
> 
> SAIC
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
www.its-lehmann.de

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
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>