02-24-2015 05:54 PM
Hi,
The previous admin has all media with data put in the Netbackup pool. Consequently all media have mixed full and non-full images. I am trying to find a way to identify any media that has only non-full images and are older than 6 months from today. Once identified, I can recycle them for future backups. I've attempted on using vmquery and bpimmedia in my script to sort it out but it does not work quite right. Is there a simpler way to achieve this?
On a related note, to be more efficient, I am hoping to filter out media that are older than 6 months prior to examining the images on them. What's the best way to do this? One criteria I can think of is to use the last mount date/time for the media. Is there a better way to do so?
Thanks!
Solved! Go to Solution.
02-24-2015 11:09 PM
Have you tried running the available_media script in netbackup/bin/goodies
02-24-2015 11:09 PM
Have you tried running the available_media script in netbackup/bin/goodies
02-24-2015 11:18 PM
Another good report is 'Media Summary' with verbose option selected.
It will give a report of when media is due to expire.
'vmquery -a -bx' will show Assigned column.
These commands/reports along with available_media and 'Media Written' report are excellent for DIY media management.
02-26-2015 06:08 AM
This command will show images for Incremental backups from Jan 1, 2014 to Aug 26,2014 (six months ago)
bpverify -PD -X -s 1388584332 -e 1409111999 -st INCR
the output includes unixdate policy schedule imagename masterserver mediaid
if you want just the mediaid (barcodes) add this to the command
| awk '{print $6}' | sort | uniq