cancel
Showing results for 
Search instead for 
Did you mean: 

How to identify media that can be re-used?

NB-OPS
Level 4

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!

1 ACCEPTED SOLUTION

Accepted Solutions

mph999
Level 6
Employee Accredited

Have you tried running the available_media script in netbackup/bin/goodies

View solution in original post

3 REPLIES 3

mph999
Level 6
Employee Accredited

Have you tried running the available_media script in netbackup/bin/goodies

Marianne
Level 6
Partner    VIP    Accredited Certified

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.

Will_Restore
Level 6

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