DSM/Tape Catalog Operator Interface (MEDIACOM) Manual

MEDIACOM Commands
DSM/Tape Catalog Operator Interface (MEDIACOM) Manual429828-010
2-82
DELETE TAPEFILE Command (Super Group or
SECURITY-MEDIA-ADMIN Only)
because you cannot re-create these types of entries once all of them are deleted.
For more information, see Considerations.
Considerations
Returned messages from DELETE TAPEFILE
At the normal completion of DELETE TAPEFILE, two types of messages are
returned. One message tells you how many tape file entries were deleted, and the
other tells you how many volume catalog entries required a status change because
of the deleted tape file entries.
Restoring deleted file entry
If you accidentally delete the wrong tape file entry with DELETE TAPEFILE, there
are two ways to restore the entry. Which method you choose depends on how
many files were written to the tape set:
1. The entry represented a single file on a tape set.
DELETE TAPEFILE permanently erases the entry. If you accidentally delete
the wrong tape file entry with DELETE TAPEFILE, the only way to restore the
entry is by manually cataloging the tape file with ADD TAPEFILE.
2. The entry represented a file in a multifile tape set.
DELETE TAPEFILE marks this type of entry invalid as long as one unexpired
file is left on the tape set. An invalid entry remains in the catalog until
permanently erased by the clean-up process. As long as the invalid entry
exists in the catalog, you can restore it by changing its status to valid with an
ALTER TAPEFILE command.
If you accidentally delete all the entries of a tape set by using the
VOLUMESET option, you cannot restore all the entries. You can only recatalog
an entry for the first file on the tape set with ADD TAPEFILE.
Examples
A file catalog has eight entries for the tape file ID DEPT_STATS. This DELETE
TAPEFILE command erases all of them:
MC> DELETE TAPEFILE DEPT_STATS, GEN ALL
The second generation of the backup tape file ID FRIDAY_BACKUP contains six
tape sets. These tape sets were created as follows:
An identical pair of tape sets from one parallel BACKUP run
Two copied tapes sets from separate BACKCOPY runs
An identical pair of tape sets from one parallel BACKCOPY run