Automatically Restoring Missing Disk Files

If your site uses the archiving subsystem to perform system backups, you can use the AUTORESTORE task attribute to reduce the likelihood that a process will be suspended for attempting to open a nonresident disk file.

The system checks to see if there is an archive record specifying the location of a backup copy of a file if a process attempts to open the file and all the following conditions are true:

  • The process has an AUTORESTORE value of TRUE.

  • The file title is under the usercode of the process.

  • The disk file is not present on the requested family because the file was removed by one of the following WFL statements: ARCHIVE RELEASE or ARCHIVE ROLLOUT.

If there is an archive record for the file, the system issues a request for an operator to mount the necessary tape. When the tape is mounted, the system copies the file back onto disk. At this point, the process that was attempting to use the tape resumes execution.

If the system is unable to restore the file for any reason, the process becomes suspended and appears in the W (Waiting Entries) system command display with a “NO FILE” RSVP message.

For an overview of the system archiving and AUTORESTORE features, refer to the System Administration Guide.