Important Update: Cohesity Products Knowledge Base Articles
All Cohesity Knowledge Base Articles are now managed via the Cohesity Support Portal: https://support.cohesity.com/. The Knowledge Base articles available here will not reflect the latest information or may no longer be accessible.
Problem
How to fix the problem of barcode and mediaID mismatch
Error Message
Example Error Messages:
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.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:
- Eject the tape from the library and insert the correct barcode which matches the recorded media ID.
- 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\
- 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".