Forum Discussion

Arshad_Khateeb's avatar
8 years ago

Delete multiple tapes from NetBackup Media Database and Relabel multiple tapes

Hello All, I know it's a not big issue but would like to know if you guys have any easy option for my two things.

1. We recently destroyed approx 1000 tapes and i am looking out for an option to delete them all at once from NetBackup Media Database.

2. We have also received approx 200 (images expired) tapes from other site. I want to relabel them all at once. Is there any option to do it all together?

  • Genericus's avatar
    Genericus
    8 years ago

    You do not indicate your operating system, but on my solaris master I have an easy script that does this:

    1. scan the scratch pool - create file scratch.inventory

    (I manually add tapes to the library)

    2. inventory the library - see new tapes!

    3. create file scratch.inventory.new

    4. for each tape in scratch.inventory.new - check to see if it is in the original scratch.inventory

    if so - skip - already labelled

    if not - label it! This will automatically re-label any new tapes added.

    This may be a solution to your problem!

  • You can bulk select unassigned tapes in the GUI and delete.

    To relabel tapes, they need to be loaded into a drive to overwrite the old label.

    In the same way as it is impossible to manually replace the external labels all at once, it is just as impossible to overwrite the internal labels all at once.
    • Arshad_Khateeb's avatar
      Arshad_Khateeb
      Level 5

      thanks for the quick reply Marianne!

      Looks like there is no such option for both things. I'll go with the normal path.

      Congrats for the VIP!

      • Genericus's avatar
        Genericus
        Moderator

        You do not indicate your operating system, but on my solaris master I have an easy script that does this:

        1. scan the scratch pool - create file scratch.inventory

        (I manually add tapes to the library)

        2. inventory the library - see new tapes!

        3. create file scratch.inventory.new

        4. for each tape in scratch.inventory.new - check to see if it is in the original scratch.inventory

        if so - skip - already labelled

        if not - label it! This will automatically re-label any new tapes added.

        This may be a solution to your problem!