Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show Expired Media 1

Status
Not open for further replies.

mrn

MIS
Apr 27, 2001
3,993
GB
Does anyone have a script "Solaris" to show expired media?

I use bpmedialist -summary to show when they expire but I can't get it to show me what has expired.

Thanks in Advance --
| Mike Nixon
| Unix Admin
| ----------------------------
 
Have you tried the available_media command this shows you all your media status.
 
I have a Perl script that uses this command, /usr/openv/volmgr/bin/vmquery -w -a , and looks at the 19th element in the record. If it has the string "00/00/0000" (for v3.4), the tape has expired and available to be used in other pools or whatever. My script runs each day and finds these tapes and vmchanges them to the SCRATCH pool. For tapes stored outside the robot, but still onsite, it generates a report that tells me these tapes are available to be reloaded again if I need them.

Note that the "available_media" report is not totally reliable for locating expired tapes.

Been using the above scheme for several years now for three different libraries/media servers with no issues. It is part of a scheme I built that manages the moving of full tapes out of the robots to free up slots for more tapes and then their recycling to the scratch pool.

Let me know if you or anyone needs more details.
 
Dannyfixit - good info, however available_media is indeed reliable provided the fixes from following technote are implemented. Basically i was bitten by these bugs back in 2002, and the same problem(s) still exist at least as recently as 4.5FP6. The workaround is exactly the same as in 2002.

4.5FP6 retail shipped version of available_media script was taking upwards of 4mins; now the script takes 20seconds, and contents are 100% reliable.


TechNote ID: 199300 - Last Updated: March 30 2004 05:47 AM GMT

Symptom:
The available_media script incorrectly lists a volume's status as DBBACKUP and script execution time is slow when many tapes exist in the mediaDB.


Rich
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top