Showing results for 
Search instead for 
Did you mean: 

Barcode Media ID mismatch

Level 4

I have been using a media ID generation rule successfully for about a year now. I have just seen a bizarre issue where i was trying to eject a tape from the tape library GUI and couldnt find it - thats because the barcode and the media ID are wrong.

The Tape has already been written to, and i am worried now what will happen when the tape with the barcode that the media ID is actually - gets loaded, will there be confusion and what i can do to resolve.

So Barcode 014775L7 was scanned - but given a media id of 014742

Now what happens when tape with barcode 014742L7 gets scanned and imported? Is there a way to change the Media ID if its already assigned? I also cannot erase the tape as its currently an infinite retention. Unless i duplicate the contents of the tape to another one and scratch it?

Any suggestions welcome. Many thanks

media ID.PNG


Level 6
Employee Accredited

From the screenshot NBU has the mediaID 014742 associated to the barcode 014775L7  - so it's 'wrong' but not to NBU if that makes sense.  Or in other words, when it loads tape with barcode 014775L7   it expects to find the media ID 014742.

The only option you have, is to either leave it alone, or duplicate the tape then delete the original.

Thank you mph999.

So i have a blank tape with a barcode 014742L7, but that Media ID is already taken, wont that cause confusion? Should i set that asside and get another barcode put onto it and scrap that barcode for good?

Many thanks

Partner    VIP    Accredited Certified

@stwali005 wrote:


So i have a blank tape with a barcode 014742L7, but that Media ID is already taken, wont that cause confusion? Should i set that asside and get another barcode put onto it and scrap that barcode for good?

Yes, it will cause confusion.

Please show us output of this command in order to give you best possible advise:

nbemmcmd -listmedia -mediaid 014742 


Thanks Marianne:

C:\WINDOWS\system32>nbemmcmd -listmedia -mediaid 014742
NBEMMCMD, Version: 7.7.3
Media GUID:                     7e5d972f-2b8b-4e89-8233-4f1c4c1ce413
Media ID:                       014742
Partner:                        -
Media Type:                     HCART
Volume Group:                   ---
Application:                    Netbackup
Media Flags:                    1
Description:                    LTO7_starting_with _0
Barcode:                        014775L7
Partner Barcode:                --------
Last Write Host:      
Created:                        17/01/2018 13:32
Time Assigned:                  26/02/2018 12:27
First Mount:                    26/02/2018 12:41
Last Mount:                     23/03/2018 22:04
Volume Expiration:              -
Data Expiration:                INFINITY
Last Written:                   27/02/2018 03:03
Last Read:                      -
Robot Type:                     NONE
Robot Control Host:             -
Robot Number:                   -
Slot:                           -
Side/Face:                      -
Cleanings Remaining:            -
Number of Mounts:               2
Maximum Mounts Allowed:         0
Media Status:
Kilobytes:                      5714154888
Images:                         335
Valid Images:                   335
Retention Period:               9
Number of Restores:             0
Optical Header Size Bytes:      1024
Optical Sector Size Bytes:      0
Optical Partition Size Bytes:   0
Last Header Offset:             22321615
Adamm Guid:                     00000000-0000-0000-0000-000000000000
Rsm Guid:                       00000000-0000-0000-0000-000000000000
Origin Host:                    NONE
Master Host:          
Server Group:                   NO_SHARING_GROUP
Upgrade Conflicts Flag:
Pool Number:                    7
Volume Pool:                    ENCR_Monthly_Vault
Previous Pool Name:             Scratch
Vault Flags:                    -
Vault Container:                -
Vault Name:                     -
Vault Slot:                     -
Session ID:                     -
Date Vaulted:                   -
Return Date:                    -
Media on Hold:                  0
Command completed successfully.

Partner    VIP    Accredited Certified

Ouch.... Valid images with  INFINITY retention.

You will need to follow @mph999's advice - duplicate all images on this tape to another tape, then expire and delete 014742.

If you run Inventory after deleting 014742, barcode 014775L7 should then be added as media-id 014775.
You will now need to re-label the tape to overwrite the internal label.

I am trying to figure out how this could've happened as this not normal behaviour.
Perhaps incorrect device mappings at some stage? 
Or some manually changed barcode label and updated NBU using vmchange?

Hi Marriane, yes - infinite retention is ouch :)

I have certainly never seen this before and i know i have not done any vmchange commands (not to say someone else with access might have - but doubt it)

I shall run a duplication to another tape and expire the tape.


Level 6
Employee Accredited

It's possible to change the barcode associate with a tape:


Barcode AA1234L6. Media ID.  AA1234

You could use vmchange to change the barcode to AA4321L6

So you now have AA4321L6 / MediaID AA1234 ...

And this will work fine ... - well until you run an inventory when it will try and add a new tape with barcode AA1234L6.  It won't re-label though as it would flag a mismatch when it reads the tape header.

Anyway, vmchange the barcode, and then stick a new barcode on the tape, equal to the barcode that you changed it to.