Forum Discussion

LFCNZ's avatar
LFCNZ
Level 4
9 years ago

Netbackup - update volume configuration error

We had a tape library that we deleted from Netbackup and then readded it back in. Unfortuantely we forgot to move the tape media from the library out of it before we did this. So now when we tr...
  • mph999's avatar
    9 years ago

    There is probably a barcode mis-match.

    NBU identifies tapes at a physical level by barcode, it then assigns a media ID and for the most part uses the media ID to reference the tape.

    I suspect the barcode displayed by the library has changed.

    The thing to understand, is that NBU does not ever inventory a library by looking to see where the tapes are in the library.  Instead it 'asks' the library where the tapes are - the result is the same, but how it gets there is very different.

    Consider this :

    Media generation ID rule = First six characters of barcode

    Library display 8 charactors of barcode

     

    Barcose / Media ID

    AA1234L5  /  AA1234

    Then the library changes and now only displays the first six characters

    AA1234 / AA1234

    The result is the media ID would be the same, but the barcode is different.  As the barcode is different NBU recognises this as a new tape, but when it trys to add it into NBU it find the media ID already there, but for a different barcode, hence 'media ID not unique'.

    What to do.

    Find a tape in the media section of the GUI, write down the slot number, maedia ID and barcode.

    Run robtest from the robot control host, and then run the robtest command

    s s

    Find the tape you wrote down, and see what the barcode is, does it match what you wrote down.

    (Exit robtest)

    I suspect it will be different.

    To correct.

    Either - change the robot config (on the robot) to display the barcode the same way as before (so the barcode you see in robtest is the same as the barcode for the tapes as seen in NBU).

    Remember, NBU has no effect on the barcodes displayed by robtest, these are sent from the library and are controlled by the library settings (despite whatever anyone else may tell you ...).

    Move media to stand alone, and re-inventory

    Or

    For each media, change the barcode to match what robtest displays

    bpmedia -m <media id> -barcode <barcode as seen in robtest>