NetBackup Vault

From World History Wiki
Jump to: navigation, search
World History Wiki is Brought to you by:
S.J.'s Adventures

Vault actually isn't that great. It was popular when tape targets were used extensively, but has only had minor changes made to it since MSDP's and OST have become widely used.

I'd suggest using SLPs for duplication

And write your own scripts for ejecting tapes, which really isn't that difficult if you know how to do shell scripting.

Here are some of the key points you need to make a tape eject script:

For each robot you'll want to do the following:

  1. Get the number of empty I/E slots you have
    • /usr/openv/volmgr/bin/vmchange -res -robot_info -verbose -rn $rob_num -rt $rob_type -rh $rob_host | grep "Number of Mailslots" | tr -d '(' | awk '{print $6}'
  2. Get a list of all tapes in the robot
    • "/usr/openv/volmgr/bin/vmquery -a -l | grep ${rob_num}_${rob_type} | grep -v Scratch | awk '{print $4" "$11" "$12}'
  3. Go through each tape to see if it's full (until you find enough full tapes to fill up your I/E ports).
    • /usr/openv/netbackup/bin/admincmd/bpmedialist -m $media_id | grep FULL
    • You may also want to have an exclude list incase you have any full tapes that shouldn't be ejected.
    • You can also filter to target specific pools
  4. Get the expiration date for each full tape you found, so you know when they should be returned
    • ctime=`/usr/openv/netbackup/bin/admincmd/bpmedialist -m $media_id -l | awk '{print $7}'`
    • bpdbm -ctime $ctime | awk '{print $4" "$5" "$6}'
  5. Eject the tapes
    • /usr/openv/volmgr/bin/vmchange -res -multi_eject -h $Master_Server -verbose -rn $rob_num -rt $rob_type -rh $rob_host -v $Offsite_Volume_Group -ml $Media_IDs_Colon_Seperatred -single_cycle
  6. Send an e-mail to your team with the results of what was ejected, and their experation dates