Simultaneous-write function as part of a backup strategy: Example

The simultaneous-write function is used to create on-site backups of a storage pool for easy availability. The BACKUP STGPOOL command is used to create storage pool backups and database backups that are moved off-site to provide data protection in case a disaster occurs.

About this task

This example also shows how to use the COPY ACTIVEDATA command to copy active data from primary storage pools to an on-site sequential-access disk (FILE) active-data pool. When designing a backup strategy, carefully consider your own system, data storage, and disaster-recovery requirements.

Procedure

  1. Define the following storage pools:
    • Two copy storage pools, ONSITECOPYPOOL and DRCOPYPOOL
    • One active-data pool, ACTIVEDATAPOOL
    • Two primary storage pools, DISKPOOL and TAPEPOOL

    As part of the storage pool definition for DISKPOOL, specify TAPEPOOL as the next storage pool, ONSITECOPYPOOL as the copy storage pool, and ACTIVEDATAPOOL as the active-data pool. Set the copy continue parameter for copy storage pools to YES. If an error occurs writing to a copy storage pool, the operation will continue storing data into the primary pool, the remaining copy storage pool, and the active-data pool.

    define stgpool tapepool mytapedevice
    define stgpool onnsitepool mytapedevice
    define stgpool drcopypoool mytapedevice
    define stgpool activedatapool mydiskdevice
    define stgpool diskpool mydiskdevice nextstgpool=tapepool
        copystgpool=onsitecopypool copycontinue=yes activedatapools=
        activedatapool
    This basic configuration is like the configuration that is shown in Figure 1.
  2. Schedule or issue the following commands to ensure that all the files are backed up:
    backup stgpool diskpool onsitecopypool
    backup stgpool tapepool onsitecopypool
    copy activedata diskpool activedatapool
    copy activedata tapepool activedatapool
  3. To create the storage-pool backup volumes that to be moved off-site, schedule the following two commands to run every night:
    backup stgpool diskpool drcopypool
    backup stgpool tapepool drcopypool
  4. Every night, after the storage pool backups have completed, back up the database.
  5. To process the database and storage pool backups for off-site storage, issue the following command every night:
    move drmedia copystgpool=drcopypool wherestate=mountable tostate=vault wait=yes
  6. Start migration of the files in the DISKPOOL to ensure that sufficient space is available in DISKPOOL in preparation for the next storage operations:
    migrate stgpool diskpool