SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Corrupt tape label
Author Message
Post Corrupt tape label 
Hello,

I got a problem with one tape which have a corrupt label so
bacula cannot mount them.
I checked with btape too: readlabel could not found the
original label.

The tape is in use of my weekly backups.

Now my serious problem:
A job has been startet.
Bacula has loaded the tape an wants to mount it. But it cannot
because of the label was not found.
Now bacula wait and wait and wait..so I must cancel the jobs
which will go on these tape. I think auto cancel of the job I can
configure on job level.

To reread which tape is in which port I have updated the media list
by an

umount
update slots scan. At Slot 6 which contains the corrupt tape I got a
message.

A update slots=6 scan again said:

Could not unserialize Volume label: ERR=label.c:775 Expecting Volume
Label, got FI=SOS_LABEL Stream=141 len=162.

Here a problem:

But the tape will be still loading at next backup so I have now disabled
the volume which should contains the slot.

1. Is there a way to use an Error status instead of an disabling? (Not
important but shows that there is a problem with this tape).
Disabled status tapes could not purge, later.

2. Because of the corrupt label I think all backups stored on the tape
and the following incrementals are no more readable so I want to
purge/prune them. I did this without any problem after setting the
status back to Full. Any other idea?

3. Here I found possible an bug:
I have to delete the volume so I used update which didn't helped me:

*update
Update choice:
1: Volume parameters
2: Pool from resource
3: Slots from autochanger
Choose catalog item to update (1-3): 3
The defined Storage resources are:
1: File
2: Libra-8
Select Storage resource (1-2): 2
Connecting to Storage daemon Libra-8 at spaceetch.privatnet:9103 ...
Connecting to Storage daemon Libra-8 at spaceetch.privatnet:9103 ...
3306 Issuing autochanger "slots" command.
Device "Libra-8" has 8 slots.
Connecting to Storage daemon Libra-8 at spaceetch.privatnet:9103 ...
3306 Issuing autochanger "list" command.
No Volumes found to label, or no barcodes.

So I used different one to check how I can delete the volume from
the database. A update than slots didn't helped me.

Any idea how I can delete the media from bacula?

4. update command can move a volume to an slot number which didn't
exist on the tape library (12 for example). Not dau friendly :-)

MfG...
Pierre Bernhardt

Post Corrupt tape label 
Hi,

On 3/19/2007 11:30 AM, Pierre Bernhardt wrote:
Hello,

I got a problem with one tape which have a corrupt label so
bacula cannot mount them.
I checked with btape too: readlabel could not found the
original label.

The tape is in use of my weekly backups.

Perhaps because the volume was in use by Bacula, then, for some reason,
rewound without Bacula noticing that. Then the next job was written to
the tape, without repositioning first, and thus you don't have a correct
tape label anymore.

Now my serious problem:
A job has been startet.
Bacula has loaded the tape an wants to mount it. But it cannot
because of the label was not found.
Now bacula wait and wait and wait..so I must cancel the jobs
which will go on these tape. I think auto cancel of the job I can
configure on job level.

You don't have to cancel jobs in this case.

To reread which tape is in which port I have updated the media list
by an

umount
update slots scan. At Slot 6 which contains the corrupt tape I got a
message.

A update slots=6 scan again said:

Could not unserialize Volume label: ERR=label.c:775 Expecting Volume
Label, got FI=SOS_LABEL Stream=141 len=162.

Here a problem:

But the tape will be still loading at next backup so I have now disabled
the volume which should contains the slot.

1. Is there a way to use an Error status instead of an disabling? (Not
important but shows that there is a problem with this tape).
Disabled status tapes could not purge, later.

'update volume=... volstatus=Error' might work.

2. Because of the corrupt label I think all backups stored on the tape
and the following incrementals are no more readable so I want to
purge/prune them. I did this without any problem after setting the
status back to Full. Any other idea?

Either delete all the jobs stored on this tape (nominally), or simply
delete and recreate the volume.

3. Here I found possible an bug:
I have to delete the volume so I used update which didn't helped me:

*update
Update choice:
1: Volume parameters
2: Pool from resource
3: Slots from autochanger
Choose catalog item to update (1-3): 3
The defined Storage resources are:
1: File
2: Libra-8
Select Storage resource (1-2): 2
Connecting to Storage daemon Libra-8 at spaceetch.privatnet:9103 ...
Connecting to Storage daemon Libra-8 at spaceetch.privatnet:9103 ...
3306 Issuing autochanger "slots" command.
Device "Libra-8" has 8 slots.
Connecting to Storage daemon Libra-8 at spaceetch.privatnet:9103 ...
3306 Issuing autochanger "list" command.
No Volumes found to label, or no barcodes.

So I used different one to check how I can delete the volume from
the database. A update than slots didn't helped me.

Any idea how I can delete the media from bacula?

The 'delete media' command.

4. update command can move a volume to an slot number which didn't
exist on the tape library (12 for example). Not dau friendly :-)

True, but unfortunately there is no way for Bacula to know how many
slots your library *really* has. The output from mtx usually does give
the correct result, but that is only used by the SD (or rather, the DIR
has to ask the SD for it), and doing this for a manual catalog update
might result in other problems. For example if your autochanger is not
working correctly and you have to update the tape poitions manually.

In your situation, I'd delete the jobs from volume in question, set the
volstatus to used, prune the volume, so it gets marked as empty, and use
btape to recreate the previous label.

Arno



MfG...
Pierre Bernhardt




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users

--
IT-Service Lehmann al < at > it...
Arno Lehmann http://www.its-lehmann.de

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB