Administrator's Reference

RESTORE STGPOOL (Restore Storage Pool Data from a Copy Pool)

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:

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

primarypool

Specifies the name of the primary storage pool that is being restored. This parameter is required.

COPYstgpool=copypool

Specifies the name of the copy storage pool from which the files are to be restored. This parameter is optional. If this parameter is not specified, files are restored from any copy pool in which copies can be located.

NEWstgpool=newprimarypool

Specifies the name of the new storage pool to which to restore the files. This parameter is optional. If this parameter is not specified, files are restored to the original primary storage pool (the pool being restored).

MAXPRocess=numprocesses

Specifies the maximum number of parallel processes that are used for restoring files. By using multiple, parallel processes, you may be able to improve throughput for the restore operation. This parameter is optional. You can specify a value from 1-999, inclusive. The default value is 1.

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.

Preview=value

Specifies whether you only want to preview the restore operation without actually performing it. This parameter is optional. The default value is NO. Possible values are:

No

Specifies that you want to perform the restore operation.

Yes

Specifies that you only want to preview the restore operation, without actually restoring the data. This option can be used to identify offsite volumes that would be required to restore a storage pool. This option displays:

  • A list of volumes in the specified primary storage pool that contain damaged, primary files.

  • The number of files and the number of bytes that will be restored, assuming that the access mode of the required copy storage pool volumes is READWRITE or READONLY when the restore operation is performed.

  • A list of copy storage pool volumes containing files that will be restored. These volumes must be mounted if you actually perform the restore operation.

  • A list of any volumes containing files that cannot be restored.

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.

Wait=waitvalue

Specifies whether to wait for the server to complete processing this command in the foreground. This parameter is optional. The default value is No.
Note:You cannot specify Wait=Yes from the server console.
Possible values are:

No

Specifies that the server processes this command in the background. You can continue with other tasks while the command is being processed. Messages created from the background process are displayed either in the activity log or the server console, depending on where messages are logged.

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.

Yes

Specifies that the server processes this command in the foreground. You wait for the command to complete before continuing with other tasks. The server then displays the output messages to the administrative client when the command completes.

Examples

Task

Restore files from any copy storage pool to the primary storage pool, PRIMARY_POOL.

Command:
restore stgpool 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.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]