Not a complete answer but a few comments.

Am 08.11.2018 um 00:11 schrieb William Muriithi:
> In the morning, I had labeled the tapes manually, for example bacula1, 
> bacula2 etc.  Then I realized I could use barcode.  So I went about purging 
> and them relabeling the tapes.

Purging is *not* a way to remove a tape label.
It just marks the tape as empty in the catalog.

> One of the tables however don't show up when I type "list media".  The system 
> has 8 tapes, but only 7 show up now.  Why is this?  I had assumed its on the 
> drive, but even if I load a different tape, the 8 tape wouldn't show up on 
> the list.

The tape's showing up in "list media" is independent of whether it is in
the drive or even in the changer. "list media" just lists all tapes from
the catalog, ie. the tapes known to Bacula, regardless where they are.

> This is the approach I took:
> 
> *label barcodes slot=1
> Automatically selected Storage: File

There is something strange here.
Is your tape changer storage really named "File"?
That's typically the name of a storage device using disk files.

> 3920 Cannot label Volume because it is already labeled: "BACULA1"
> Label command failed for Volume 000315L6.

The Bacula "label" command will not overwrite an existing Bacula tape
label (or anything looking like one) to save you from destroying
existing tape content inadvertently.
If you want to write a different label to a volume already labelled and
known to Bacula you normally use the "relabel" command.
Unfortunately the "relabel" command does not have a "barcodes" option.

The alternative is to overwrite the tape label from the commmand line
with "mt weof" and remove it from the catalog with the "delete volume"
command.

> *purge volume=BACULA1
> 
> This command can be DANGEROUS!!!
> 
> It purges (deletes) all Files from a Job,
> JobId, Client or Volume; or it purges (deletes)
> all Jobs from a Client or Volume without regard
> to retention periods. Normally you should use the
> PRUNE command, which respects retention periods.

As I wrote above, this won't help.

> sql_get.c:1094 Media record for Volume "BACULA1" not found.

This looks like you manipulated Bacula's database directly so now it is
inconsistent.

> *purge slot=1

That command doesn't exist and wouldn't make much sense, since purging
is a catalog operation and independent of where the tape currently is
physically.

> What is the proper way of overcoming this issue?

Either relabel the tapes manually with their barcode labels using the
"relabel" command, or remove the unwanted labels from the tapes with "mt
weof" and from the catalog with "delete volume" before running the
"label barcodes" command.
But first you'll have to fix your catalog database.

HTH
Tilman


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to