How to fix the problem of barcode and mediaID mismatch

Article: 100023314
Last Published: 2020-04-17
Ratings: 1 0
Product(s): NetBackup & Alta Data Protection

Problem

How to fix the problem of barcode and mediaID mismatch

Error Message

Example Error Messages:

  1. Error bptm (pid=xxxx) Media mounted has media id of 0009L7, but A00009 was requested. Must add 0009L7 to Media Manager volume database and retry.
  2. Error bptm (pid=xxxx) incorrect media found in drive index x, expected A00009, found 0009L7, FREEZING A00009

Cause

Mismatch of barcode and mediaID can occur if the operator specified the wrong slot number when adding the new tapes manually.

Veritas NetBackup will not consider this mismatch as an error, and will continue using the mismatched tapes.

Solution

Here are the steps to fix a mismatch of the barcode and mediaID:

  1. Eject the tape from the library and insert the correct barcode which matches the recorded media ID.
  2. Run the vmchange command, this time the barcode should match media_id:
    • vmchange -barcode <barcode> -m <media_id>
    • Location for vmchange command:
      Unix/Linux: /usr/openv/volmgr/bin/
      Windows: install_path\volmgr\bin\
  3.  Put the tape backup into the library and perform a robot inventory.

Note: On Unix/Linux, if the command reports it cannot be found, it may not have the path on the OS level, hence run the vmchange command with "./" on the front, such as "./vmchange".

Was this content helpful?