Resolving volume and barcode mismatch in jukebox and media database

Have you ever been in a situation where you have a mismatch between volume and barcode in jukebox and media database?

The root cause of this issue is generally hardware issues with the jukebox, an issue with the tape drive or the physical media itself, must of the problems require resolutoin by the hardware vendor; However, it is possible to repair the mismatched/duplicate volumes in the jukebox (resource) temporarily if an immediate recovery is needed, but the only way to resolve the mismatch in the media database is via scanner command.

Correcting incorrect Jukebox resource

Run following commands in NetWorker Server to repair the mismatched/duplicate volumes in the jukebox (resource):

# nsrjb -nl -S <slot#>
# nsrjb -I -S <slot#>

NOTE:

    Replace <slot#> with the slot in your jukebox resource

Resolving mismatch in the media database

Follow the steps below to resolve the mismatch in the media database permanently:

  1. Delete the bad volumes from media db:
    # nsrmm -d <volume name>
    If this does not work, run:
    # nsrmm -d -V 
  2. Load the physical tape with the barcode <barcode> into a drive via:
    # nsrjb -nl -S <slot#>
    or
    # sjimm <jukebox-scsi-address> slot <slot#> drive <drive#>
  3. scan the tape in with:
    # scanner -i <tape-drive>
    The above command populates both media db and client file index or use the following command which simply populates the media database making the process faster:
    # scanner -m <tape-drive>