How prevent the tapes to be mounted in SCRATCH status?

Document ID : KB000015178
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

Migrated to new VTS tape ranges and tape copy process is going on to copy from OLD VTS to NEW VTS.

How we can prevent to mount the OLD tapes in scratch status ?  and how prevent to write on these OLD tapes ?

Answer:

 

To keep the volumes from being written on we can:

- use the scratchpool READONLY 
example: 
SCRPOOL=READONLY00001,RANGE=100000-199999 

Specifies the name that you assign to the READ ONLY scratch subpool. The name can have up to 13 characters. The nnnnn parameter is an optional user-defined suffix that can be used to qualify the subpool further. The RANGE= keyword is the only valid options for this keyword. All other 
keywords are not allowed. 
 This statement would go into the TMOSCRxx member of CTAPOPTN. To activate  it you would need to run TMSINIT. After it is activated CA 1 will prevent  any type of write to those tapes. 


OR
- we can change the status of these volumes from SCRATCH TO DELETE using the TMSDELET utility. Always CA1 willprevent any writing to the tape.



The way to prevent the mount would be to either delete the tape from the VTS or when it is scratched, put it back into private status in the TCDB so that it won't mount it for a scratch request.