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.
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. 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.
[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
Does anyone have experience with recovering corrupt
tapes? Any ideas on how to recover the tape would be appreciated.
S. Eric Clark
E-Mail: stephen.e.clark AT saic DOT com
SAIC