Forum Discussion

JustN's avatar
JustN
Level 4
12 years ago
Solved

Find policy schedule by media ID

Good Morning-

I have built a custom vault report that will email a list of ejectable media for a particular vault to our backup operators -- this allows me to expand the basic NBU vault reports to include my custom text and directions.

Looking to enhance this slightly to include the 'schedule' that was written to the tape, but not sure how to locate that information.

All of my backup jobs run twice a week through two schedules (i.e. FULL-MONDAY and FULL-THUR, FULL-TUESDAY and FULL-FRIDAY, etc...) and all schedules use the same retention period of 3 months.

So when the report runs I have a list of all media that needs to be ejected, but no way to know which media belongs to what set... What media belongs to FULL-MONDAY, versus FULL-THUR, and so forth. In our configuration, each of the sets is sent to a different staging area.

Maybe I am going about this wrong? Is there a better way to identify the media used by a schedule?

What say you?

JP

  • Okay.. what my understanding is, you would like to know what all the schedules resides on each media. if that is correct... you can run the script against the ejected medias to get that info

    below command should give you the output.. just use this in script.

    bpimmedia -mediaid <mediaid> -l | grep '^IMAGE' | awk '{print$7}'

5 Replies

  • you can try using the Different volume pools for each scheudle.

    for example:-

    for schedule FULL-MONDAY   create a volume pool FULL-MONDAY-Pool

    FULL-THUR create a volume pool FULL-THUR-Pool

    like wise...

    once you do that you can easily identify the what media belongs to what schedule by seeing the volume pools.

    but seeing the same info in the Vault report is not by default.. not sure how you did customise this... 

  • The volume pool idea doesn't help me much, all of our media stays in a single scratch pool and is moved to a vault container once ejected... But thanks for the idea.

    As for seeing the same information as the vault report...

    I am running an immediate vault eject every hour (to make sure that backup tapes contain only one set and are not reused)... Then once a week, run the command:

    /usr/openv/netbackup/bin/vlteject -preview -vault <vault name>

    This command generates a list of all tapes ready to be ejected.

    I simply wrote a shell script to output that command to an e-mail, with a set of instructions in the body of the message.

    For me, the information in the default Vault report is mostly useless -- my backup operators simply need a list of tapes to eject and nothing more.

     

  • all of our media stays in a single scratch pool and is moved to a vault container once ejected..

    this is hard to believe for me...

    scratch pool only holds the empty media.. if the media have the valid data that should be in another volume pool.

    and if the tape is in scratch Vault should not eject them, as scratch tapes does not have any valid images.

  • Sorry, I may have not explained my configuration clearly...

    Each library has a Volume Pool (26 volume pools/libraries right now) and all of the media (scratch, vaulted, etc...) is located there. My jobs are configured to pull from those Volume Pools for scratch media.

    I then use Volume Groups to segregate the media -- a Volume Group for what is currently in the library (inventoried) and a Volume Group for media that have been vaulted and ejected (to represent what is offsite).

    These 26 libraries are located at 26 different locations across the globe and only service 3-6tb per location.

    Does that make any sense?

  • Okay.. what my understanding is, you would like to know what all the schedules resides on each media. if that is correct... you can run the script against the ejected medias to get that info

    below command should give you the output.. just use this in script.

    bpimmedia -mediaid <mediaid> -l | grep '^IMAGE' | awk '{print$7}'