On Thursday 12 April 2007 18:33, Flak Magnet wrote:
> A vendor sent us incorrectly formatted barcode labels for our tapes.
> They contain an extra character due to some "checksum" encoded in the
> barcode.
> 
> They've since sent replacement labels, but in the meantime one of the
> bad labels has entered use as a bacula volume (it was a necessity).
> 
> I could just ignore it, it is, after all, just one label.  But I don't
> wanna.
> 
> Would the correct course to relabeling the tape be to delete the volume,
> apply the corrected barcode label, then bscan it back in?
> 
> Alternatively, is there a Mysql procedure I could do to overwrite
> anything referring to "BADLABEL0001E" with "GOODLABEL0001" (for example)?
> 
> Thanks for any insights.
> 

I don't particularly recommend bscanning it, because it is just going to put 
the data back in under the old tape name.  The name of the tape is on the 
Volume, and you cannot change that without re-writing the tape.

Probably the simplest way to proceed is to migrate all the data off the tape 
onto one that is correctly labeled (well, this may be a bit of a learning 
experience if you haven't used migration). If you don't have two drives, then 
you need to migrate to disk, then disk to tape. Then when you are sure there 
is nothing left on that tape (there is a query command that will tell you), 
it should get into a purged state at which point you can recyle it then 
Bacula will allow you to relabel it.  Alternatively, you can delete the 
volume, reinitialize it with an EOF and then write a new label.

You must be on version 2.0.3 for the above to work.

-------------------------------------------------------------------------
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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to