Use the RESTORE STGPOOL command to restore files from one or more copy storage pools to a primary storage pool. The files must have been copied to the copy storage pools by using the BACKUP STGPOOL command.
When you use this command, ADSM restores all files that belong to the specified primary storage pool and that meet one of the following criteria:
After the files are restored, the old references to these files in the primary storage pool are deleted from the database. ADSM now locates these files on the volumes to which they were restored, rather than on the volumes on which they were previously stored. If a destroyed volume becomes empty because all files have been restored to other locations, the destroyed volume is automatically deleted from the database.
| Note: | Cached copies of files are never restored. Any cached files that have data-integrity errors or that reside on a destroyed volume are removed from the database during restore processing. |
The restoration may be incomplete for one or more of the following reasons:
Also, you can prevent reclamation processing for your copy storage pools by setting the RECLAIM parameter to 100 with the UPDATE STGPOOL command.
This command can be used to identify volumes that contain damaged, primary files. During restore processing, a message is issued for every volume in the restored storage pool that contains damaged, non-cached files. Use the QUERY CONTENT command to identify damaged, primary files on a specific volume.
Privilege Class
To issue this command, you must have system privilege, unrestricted storage privilege, or restricted storage privilege for the primary storage pool for which files are to be restored. If you are a restricted storage administrator and you want to restore files to a new primary storage pool, you must also have authority for the new storage pool.
Syntax
>>-RESTORE STGpool--primarypool---+---------------------------+->
'-COPYstgpool--=--copypool--'
>---+--------------------------------+-------------------------->
'-NEWstgpool--=--newprimarypool--'
.-MAXPRocess--=--1--------------. .-Preview--=--No-------.
>---+-------------------------------+--+----------------------+->
'-MAXPRocess--=--numprocesses---' '-Preview--=--+-No--+--'
'-Yes-'
.-Wait--=--No-------.
>----+-------------------+-------------------------------------><
'-Wait--=--+-No--+--'
'-Yes-'
Parameters
When determining the number of processes to use, consider the number of mount points and drives that can be dedicated to this operation. To access a volume in a sequential access device class, ADSM uses a mount point (a logical drive), and, if the sequential device class is not FILE, a physical drive. The number of mount points and drives available depends on other ADSM and system activity, and on the mount limits of the device classes for the storage pools that are involved in the restore operation. The maximum number of mount points for a device class is specified with the mount limit parameter, which is the number of logical drives that ADSM can use at one time to access volumes in that device class.
Each process needs a mount point for copy storage pool volumes, and, if the device class is not FILE, each process also needs a drive. If the storage pool to which you are restoring files is a sequential storage pool, each process needs an additional mount point for primary storage pool volumes, and, if the device class is not FILE, an additional drive.
For example, suppose you specify MAXPROCESS=3 to restore files to a primary sequential storage pool from a copy storage pool, both assigned to the same 8MM device class. Each of the three processes requires two mount points and two drives. For all three processes to run, the 8MM device class must have a mount limit of no less than 6, and there must be at least 6 mount points and 6 drives currently available.
If you specify PREVIEW=YES, only one process is used, regardless of the value specified for the MAXPROCESS parameter. No mount points or drives are required when you specify PREVIEW=YES.
| Note: | If you preview a restore operation to obtain a list of offsite copy pool volumes that must be mounted, it is recommended that you change the access mode of the identified copy pool volumes to UNAVAILABLE. This prevents reclamation and MOVE DATA processing for these volumes until they have been transported to the onsite location for use in restore processing. |
| Note: | You cannot specify Wait=Yes from the server console. |
To cancel a background process, use the CANCEL PROCESS command. If a background process is canceled, some files may have already been restored prior to the cancellation.
Examples
Task
Restore files from any copy storage pool to the primary storage pool, PRIMARY_POOL.
Related Commands
Table 181. Commands Related to RESTORE STGPOOL
| Command | Description |
|---|---|
| BACKUP STGPOOL | Backs up a primary storage pool to a copy storage pool. |
| CANCEL PROCESS | Cancels a background server process. |
| QUERY CONTENT | Displays information about one or more files currently residing in a storage pool volume. |
| QUERY PROCESS | Displays information about one or all background server processes. |
| RESTORE VOLUME | Restores files stored on specified volumes in a primary storage pool from copy storage pools. |
| UPDATE STGPOOL | Changes the attributes of a storage pool. |