When ARCHIVE processes a request under HSMS, it issues a SECURE-RESOURCE-ALLOCATION command either for the volume to be read or written to, or for the device which is to be used.
A SECURE-RESOURCE-ALLOCATION command is issued with the wait time defined by the HSMS administrator for the acceptance and the start of requests (HSMS parameter DIALOG-REQUEST-TIME or BATCH-REQUEST-TIME).
The minimum wait time is 200 seconds. If a wait time of 99999 seconds is specified, the secure wait time is increased to 7 days.
If device reservation is not executed within the wait time, either the operation aborts (in the case of outputs), or further attempts are made to open the input volume (in the case of inputs).
Note
ISECURE-RESOURCE-ALLOCATION commands for devices (DEVICE operand) should not be issued in the user task, since they stay reserved in the user task and are not made available to HSMS, which impedes the execution of the request.
When save versions are duplicated, a deadlock can occur if insufficient tape units are available. This is also possible during BACKUP, ARCHIVAL or EXPORT of migrated files. The deadlock ends automatically with the expiration of the wait time set by REQUEST-WAIT-LIMITS in the HSMS operands.
The user can avoid this situation by
setting DIALOG-REQUEST-TIME resp. BATCH-REQUEST-TIME to a suitably short time in order to preclude an excessive deadlock, but long enough to permit execution to be terminated normally;
ensuring that the number of tape units available is sufficient for all parallel runs.
The following procedure is provided to rectify deadlock situations:
When a deadlock situation is detected, the message ARC0840 resp. ARC0861 is output and removal is started automatically. The task that encountered the deadlock situation is closed and the volumes currently opened for it are released and re-requested. If the deadlock situation is eliminated correctly and the run is resumed as normal, message ARC0862 will be output.
Otherwise message ARC0707 is output and the task is aborted.
Note
Deadlock cannot occur in the case of RESTORE and IMPORT and when jobs are restarted.