This section presents scenarios for protecting and recovering an ADSM
server. You can modify the procedures to meet your needs.
| DRM can help you track your onsite and offsite volumes and query the ADSM
server and generate a current, detailed disaster recovery plan for your
installation.
|
These scenarios assume a storage hierarchy consisting of:
A company's standard procedures include the following:
Note: | In a copy storage pool definition, the REUSEDELAY parameter delays volumes from being returned to scratch or being reused. The value should be set high enough to ensure that the database can be restored to an earlier point in time and that the database references to files in the storage pool is still valid. For example, a user may want to retain database backups for seven days and, therefore, sets REUSEDELAY to 7. |
To protect client data, the administrator does the following:
define stgpool disaster-recovery tapeclass pooltype=copy maxscratch=100
Note: | The first backup of a primary storage pool is a full backup and, depending on the size of the storage pool, could take a long time. |
backup stgpool backuppool disaster-recovery maxprocess=2
backup stgpool archivepool disaster-recovery maxprocess=2
backup stgpool spacemgpool disaster-recovery maxprocess=2
backup stgpool tapepool disaster-recovery maxprocess=2
These commands use multiple, parallel processes to perform an incremental backup of each primary storage pool to the copy pool. Only those files for which a copy does not already exist in the copy pool are backed up.
Note: | Migration should be turned off during the rest of the day. You could add a schedule to migrate from disk to tape at this point. In this way, the backups are done while the files are still on disk. |
update volume * access=offsite location='vault site info' wherestgpool=disaster-recovery whereaccess=readwrite,readonly wherestatus=filling,full
backup db type=incremental devclass=tapeclass scratch=yes
query volume stgpool=disaster-recovery access=offsite status=empty
These volumes, which have become empty through expiration, reclamation, and file space deletion, have waited the delay time specified by the REUSEDELAY parameter. The administrator periodically returns outdated backup database volumes. These volumes are displayed with the QUERY VOLHISTORY command and can be released for reuse with the DELETE VOLHISTORY command.
In this scenario, the processor on which ADSM resides, the database, and
all onsite storage pool volumes are destroyed by fire. An administrator
restores the server to the point in time of the last backup.
| DRM can help you do these steps.
|
Do the following:
> dsmserv format 1 log1 1 dbvol1
Note: | Do not change the access mode of these volumes until after you have completed step 7. |
update volume * access=destroyed wherestgpool=backuppool
update volume * access=destroyed wherestgpool=archivepool
update volume * access=destroyed wherestgpool=spacemgpool
update volume * access=destroyed wherestgpool=tapepool
update volume * access=readwrite wherestgpool=disaster-recovery
Note: | Clients can get files from ADSM at this point. If a client tries to get a file that was stored on a destroyed volume, the retrieval request goes to the copy storage pool. In this way, clients can access their files without waiting for the primary storage pool to be restored. When you update volumes brought from offsite to change their access, you greatly speed recovery time. |
restore stgpool backuppool maxprocess=2
restore stgpool archivepool maxprocess=2
restore stgpool spacemgpool maxprocess=2
restore stgpool tapepool maxprocess=2
These commands use multiple parallel processes to restore files to primary storage pools. After all the files have been restored for a destroyed volume, that volume is automatically deleted from the database. See "When a Storage Pool Restoration Is Incomplete" for what to do if one or more volumes cannot be fully restored.
If a company makes the preparations described in "Protecting Your Database and Storage Pool" it can recover from a media loss by using ADSM features.
In this scenario, an operator inadvertently destroys a tape volume (DSM087) belonging to the TAPEPOOL storage pool. An administrator performs the following actions to recover the data stored on the destroyed volume by using the offsite copy storage pool:
restore volume dsm087 preview=volumesonly
This command produces a list of offsite volumes that contain the backed up copies of the files that were on tape volume DSM087.
Note: | This precaution prevents the movement of files stored on these volumes until volume DSM087 is restored. |
restore volume dsm087
This command sets the access mode of the DSM087 to DESTROYED and attempts to restore all the files that were stored on volume DSM087. The files are not actually restored to volume DSM087, but to another volume in the TAPEPOOL storage pool. All references to the files on DSM087 are deleted from the database and the volume itself is deleted from the database.