I’ve and my third instance now where Bacula has lost
the tape label. This seems to happen after a power outage (our tape library
goes out, but the server is on UPS). What is really interesting is that when
the power goes out, nothing is writing to the tape, but the tape is usually in
the drive at the end of the data. When Bacula goes to write to the tape again,
it tells me to insert the volume that is in the drive or label a new tape. I
would just write a new label to it, but my understanding is that it also writes
an EoF basically blanking the tape and losing all the data on it. Can someone
give me an idea of how to get the data off or relabel the tape so that none of
the data is lost? These are LTO4 tape and only using 100 GB or so; we are going
to run through the tapes too fast if I just have to mark them as used. I’m
also worried that I won’t be able to restore any data off them since the
label can not be read. Here are the btape commands to read the labels from two
of the tapes; I can’t remember the third tape that showed the problem.
Thanks,
Robert
btape: butil.c:285 Using device:
"/dev/tape/drive2" for writing.
07-Mar 22:12 btape JobId 0: 3301 Issuing autochanger
"loaded? drive 2" command.
07-Mar 22:12 btape JobId 0: 3302 Autochanger "loaded?
drive 2", result is Slot 101.
btape: btape.c:372 open device "Drive-2"
(/dev/tape/drive2): OK
*readlabel
btape: btape.c:422 Volume has no label.
Volume Label:
Id
:
**error**VerNo
: 0
VolName
:
PrevVolName :
VolFile
: 0
LabelType :
Unknown 0
LabelSize :
0
PoolName
:
MediaType :
PoolType
:
HostName
:
Date label written: -4712-01-01 at 00:00
*q
lsgw0:/home/leblanc# btape /dev/tape/drive2
Tape block granularity is 1024 bytes.
btape: butil.c:285 Using device:
"/dev/tape/drive2" for writing.
07-Mar 22:22 btape JobId 0: 3301 Issuing autochanger
"loaded? drive 2" command.
07-Mar 22:22 btape JobId 0: 3302 Autochanger "loaded?
drive 2", result is Slot 105.
btape: btape.c:372 open device "Drive-2"
(/dev/tape/drive2): OK
*readlabel
btape: btape.c:422 Volume has no label.
Volume Label:
Id
:
**error**VerNo
: 0
VolName
:
PrevVolName :
VolFile
: 0
LabelType :
Unknown 0
LabelSize :
0
PoolName
:
MediaType :
PoolType
:
HostName
:
Date label written: -4712-01-01 at 00:00
*