Hi folks
Sorry to take up an opposing view, but ...
If you perform a full-library checkin with
checkin libv $libname search=yes checkl=barc stat=pri
then you will lose all your scratch tapes.
The procedure to follow is this:
1. audit libr $libname checkl=barc
2. checkin libv $libname search=yes stat=scr checkl=barc
3. checkin libv $libname search=yes stat=pri checkl=barc
Rationale:
1. "AUDIT LIBR" is *only* capable of verifying existing entries in the library volumes table. It will not create any additional entries, or update any existing ones. For each entry in the table, the command will either do nothing, because the physical contents of the slot matches the entry in the table, or it will delete the entry from the table because the physical content that was expected could not be found.
2. "CHECKIN LIBV" -> any volume that is not a database backup of some sort can be checked in as a private volume. Volumes that are active within an existing storage pool *cannot* be checked in as a scratch volume.
There is a common confusion with TSM and scratch volumes. There is no such thing as a scratch volume if the volume is not checked in to the library. "SCRATCH" status is a flag that is used within the library volumes table only. An empty tape that is to be checked in as a scratch tape should be thought of as being "elligible to be checked in as scratch" - this helps to avoid the confusion.
HTH
Kind Regards,
Matthew Bourne
"Find a job you love and never do a day's work in your life.