cancel
Showing results for 
Search instead for 
Did you mean: 

Problems importing tape back into database....

Mark_Hill
Level 4
Hey all, Im trying to import a tape back into the database so we can run a restore on it.

Problem is...well what it looks like is that the internal and external labels are slightly different.

Here is the log from the import:

19/12/2006 11:40:49 AM - mounting 2488L3
19/12/2006 11:40:47 AM - granted resource 2488L3
19/12/2006 11:40:47 AM - granted resource HPUltrium3-SCSI5
19/12/2006 11:41:35 AM - mounted; mount time: 00:00:46
19/12/2006 11:41:36 AM - Error bptm(pid=12137) Media mounted has media id of 002488, but 2488L3 was requested. Must add 002488 to Media Manager volume database and retry.
19/12/2006 11:41:36 AM - Error bpimport(pid=12131) Status = cannot perform specified media import operation.
19/12/2006 11:41:36 AM - end Import; elapsed time: 01:11:38
cannot perform specified media import operation(176)

Is there a way around this?

Thanks in advance!

Gib
4 REPLIES 4

h_m
Level 6
its all to do with barcode rules. Its missing the "L3" off the end of the tape, so the internal label does not have a reference to the L3.

Check all of the other tapes to see if they have the same issue.

Does this tape exist within the media db or vol db?

DavidParker
Level 6
h m is right,
I had the same exact issue trying to read a tape in an alternate library.
The libraries read the barcodes in different ways so you get different results when you scan it. Technically, the barcode has 8 characters on the label. Your library is reading the FIRST 6 and dropping the 'L3' at the end. The library that this tape came from is evidently reading the LAST 6 characters and dropping the '00' from the beginning.

Here's a quick and dirty way to get around that.

In the media section, find your tape.
Note the slot number that it's in.
Delete the media.
Manually add a new media.
Type in the label as it's *supposed* to be.
Enter the slot number that the tape is in (noted in step 2).
Perform your import =)

Mark_Hill
Level 4
Thanks David.

I tried that, deleted the tape from the robot. Noted the slot number.

Added back in using the gui and right clicking on the screen and choosing new.
I got the window pop-up and added the details.
Tape didnt appear in the list again. Did an inventory of the robot and it picked it up as the old name and re-added it.

I also got the message:
bash-2.05# vmadd -m 002488 -mt hcart3 -h virbqhonbm -p 13
media ID not unique in database (34)

When I tried to add it to the emm DB, or would that be because I had just added through the gui? Odd. Maybe its left over in there from before? Very confusing...

Cheers!

Yasuhisa_Ishika
Level 6
Partner Accredited Certified
Hi, Mark.

> deleted the tape from the robot

Does this mean you remove the medium from robot physically?
If so, let it back before adding volume on NetBackup.

And media id 002488 or media id 2488L3 still remain on volume
database? If so, delete both first and register 002488 again.

I think David's way is right, but I prefer fixing media id
generation rule. On the media id generation rule tab(in robot
inventory update option), add rule - barcode length is 8 and
rule is "1:2:3:4:5:6". Then perform robot inventory update.

I hope this helps!