Administrator's Guide


Setting Up Disaster Recovery Manager

This section provides an overview of the DRM set up tasks. Additional details are available in subsequent sections, also you will find a helpful checklist containing implementation considerations, see "Disaster Recovery Manager Checklist".

Set Up for Server Recovery

  1. Register the DRM license.

  2. Optionally define information about the machine that contains the ADSM server.

  3. Create backup copies of the server primary storage pools.

  4. Create a backup copy of the database.

  5. Track the movement of server backup volumes.

  6. Create the disaster recovery plan for the ADSM server.

Set Up for Storage of Client Recovery Information

  1. Identify and prioritize ADSM clients based on application or business needs, and establish automatic schedules for backing up client data.

  2. Define your disaster recovery information for the client machines.

  3. Define the boot media requirements for the client machines.

  4. Associate one or more machines with the recovery media.

Licensing Disaster Recovery Manager


Task Required Privilege Class
Register license for Disaster Recovery Manager System

To add support for DRM you must register the DRM license. You can register the license by entering the following:

register license file=drm.lic
 

For additional information, see "Registering Licensed Features".

Defining Machine Information for the ADSM Server

You can store information about the machine on which an ADSM server resides. This information is later retrieved as input to your disaster recovery plan file. During disaster recovery this information is necessary for rebuilding the replacement machine.

To store information about the machine that contains the ADSM server, issue the DEFINE MACHINE command (see "Defining Machine Information") and set the ADSMSERVER parameter to YES.

You can also include additional details about hardware, software, and boot media information by following the steps in "Defining Machine Information" and "Defining and Tracking Recovery Media".

Backing up the Primary Storage Pools and the Database

Before creating a disaster recovery plan, create backup copies of your primary storage pools and your database. The order in which you create these backups is significant. You should always back up your primary storage pools prior to backing up your database. The following examples show the commands to do these tasks:

  1. Perform a back up the primary storage pools named backuppool and store the backups in a copy storage pool named cstoragepf. Enter:
    backup stgpool backuppool cstoragepf
    

  2. Perform a full database back up using the lib8mm device class, and store the backup on the bk06 volume. Enter:
    backup db devclass=lib8mm type=full volumename=bk06
    

If you are manually sending your backup media offsite, see "Sending Server Backup Volumes Offsite". If you are using virtual volumes and need information about virtual volumes, see Chapter 4. "Storing Data on Another Server".

When your backup media has been marked offsite, you are ready to create a disaster recovery plan. For more information, see "Creating the ADSM Server Disaster Recovery Plan".

Tracking Movement of Server Backup Volumes

If you are manually sending your backup media offsite, see "Sending Server Backup Volumes Offsite". If you are using virtual volumes and need information about virtual volumes, see Chapter 4. "Storing Data on Another Server".

When your backup media is both located offsite and has been marked offsite, you are ready to create a disaster recovery plan.

Creating the ADSM Server Disaster Recovery Plan

When you issue the PREPARE command, DRM automatically queries the ADSM database and generates a disaster recovery plan file.

In the following example, the PREPARE command is issued with the PLANPREFIX parameter to generate the recovery plan file in directory /u/server/recoveryplans/:

prepare planprefix=/u/server/recoveryplans/

The plan file name always includes the date and time (yyyymmdd.hhmmss) when the PREPARE command is issued. For example:

/u/server/recoveryplans/19950925.120532

For details about specifying the location of the disaster recovery plan, see "Prefix for Recovery Plan File", and also refer to the PREPARE command in the ADSM Administrator's Reference.

DRM creates one copy of the disaster recovery plan file. It is recommended that you create multiple copies of your disaster recovery plan for safekeeping. For example, keep copies in print, on diskettes, or on NFS-mounted disk space that is physically located offsite.

Issue the PREPARE command or schedule it to run after the storage pools and database have been backed up and the volumes have been marked offsite. This ensures that your disaster recovery plan is current.

When you issue the PREPARE command any existing files are not deleted. You should periodically delete downlevel recovery plan files.

Storing Client Recovery Information

DRM allows you to store recovery information for client machines backed up by the ADSM server.
Task Required Privilege Class
Defining machine information

Associating client nodes with machines

Defining and tracking machine recovery media

Associating recovery media with machines

System

Defining Machine Information

Machine information is used to store details about the machine on which a client node resides. In the event of a disaster, this information can help you identify what you need to rebuild or restore the replacement machines.

Define the following information in the ADSM database:

Note:The machine characteristics and machine recovery instructions do not have to be defined during the set up process. You can return to this step later.

  1. Issue the DEFINE MACHINE command and specify the client's location and business priority.

    The following example defines machine mach22 in building 021, 2nd floor, in room 2929, and has a priority value of 1:

    define machine mach22 building=021 floor=2 room=2929 priority=1
    

  2. To associate one or more ADSM client nodes with a machine, issue the DEFINE MACHNODEASSOCIATION command.

    During disaster recovery, this association information is used to determine what ADSM client nodes resided on machines that have been destroyed. The file spaces associated with these client nodes should be restored. The following example associates node CAMPBELL with machine mach22:

    define machnodeassociation mach22 campbell
    

    You can query your machine definitions by issuing the QUERY MACHINE command. For an example, see the query machine output in "Recovering ADSM Clients Scenario".

  3. To insert machine characteristics and recovery instructions into the ADSM database, issue the INSERT MACHINE command. You must first query the operating system to identify the characteristics for your client machine. You can insert the characteristics and instructions manually, or you can create an awk script to do it for you (see Figure 64 for an example).

    Your client recovery information is now saved in the ADSM database.

Defining and Tracking Recovery Media

Use the following commands to save a description of the bootable media required to reinitialize or reinstall an operating system on a client machine, and associate one or more machines with this media. You can also use these commands to associate non-executable media such as application user guides with client machines.

  1. Define your boot media needed for recovering one or more machines by issuing the DEFINE RECOVERYMEDIA command. In the following example, the boot recovery media name is tellerwrkstnimage, the volume list includes aix001, aix002, and aix003, for product AIX 4.1. The location of the recovery media is Building 21.
    define recoverymedia tellerwrkstnimage volumenames=aix001,aix002,aix003
      type=boot product="AIX 4.1" location="Building 21"
    

    This command is usually only needed when a client machine configuration changes. For example, if you install a new level of AIX on the client machine and create a bootable image with mksysb, issue the DEFINE RECOVERYMEDIA command to create a new recovery media definition that can be used to track the new mksysb volumes.

    To query your recovery media definitions, issue the QUERY RECOVERYMEDIA command with the FORMAT=DETAILED parameter.

  2. Use the DEFINE RECMEDMACHASSOCIATION command to associate one or more machines with a recovery media. Before you associate a machine with a recovery media, the specified machine must exist and the recovery media must exist.

    During disaster recovery, this association information can be used to determine what boot media to use in the replacement machines.

    The following example associates machine MACH255 with recovery media tellerwrkstnimage:

    define recmedmachassociation tellerwrkstnimage mach255
    

  3. When the boot media is moved offsite, update the location with the UPDATE RECOVERYMEDIA command.

    The following example updates the location of boot media tellerwrkstnimage to Ironvault:

    update recoverymedia tellerwrkstnimage location=ironvault
    

In a recovery scenario, you may want to have softcopy manuals that are on a CD-ROM. You can define this to DRM with the DEFINE RECOVERYMEDIA command.

The following example defines the AIX 4.1 manuals, a volume identifier of cd0001, and a type of OTHER because this is a manual:

define recoverymedia aix41manuals description="AIX 4.1 Bookshelf" -
  volumes=cd0001 type=other

Customizing Disaster Recovery Manager

DRM provides default settings for the management of the following:

However, you can use the DRM SET commands to override the default settings. If you want to take the defaults or return to this subject later, you can go now to "Customizing the Site-Specific Recovery Instructions". The recovery instructions are flat files containing instructions that you create to guide you in the recovery process of your own site.
Task Required Privilege Class
Use SET commands to customize DRM System

Customizing the Management of Disaster Recovery Plan Files

This section describes the SET commands to configure DRM. For more information, refer to ADSM Administrator's Reference.

Primary Storage Pools

At installation, all primary storage pools are eligible for processing by the PREPARE command. Volumes in these storage pools are included in the plan file stanzas. You can use the SET DRMPRIMSTGPOOL command to specify the eligible primary storage pools. For example, to specify that primary storage pools PRIM1 and PRIM2 are eligible for processing, enter:

set drmprimstgpool prim1,prim2

To override this setting, use the PRIMSTGPOOL parameter of the PREPARE command.

Copy Storage Pools

By default, all copy storage pools are eligible to be managed by DRM. To limit which copy storage pools are managed by DRM you can use theSET DRMCOPYSTGPOOL command. This command generates a copy storage pools list that is used during PREPARE command processing.

Copy storage pools that you do not want DRM to manage can include onsite copy storage pools used for recovery from media failures. For example, specify that DRM manages copy storage pools with the pattern-matching expression of ONSITECOPY:

set drmcopystgpool onsitecopy*

To override this setting, use the COPYSTGPOOL parameter of the PREPARE command.

Character Identification for Replacement Volume Names

If the situation occurs when you need to restore an entire volume, the replacement volume must have a different name. The procedure for restoring a primary storage pool volume requires the original volume to be marked destroyed and a replacement volume created with a unique name. To meet the requirement of a different name, by default, DRM attaches the @ to the end of the replacement volumes names in the disaster recovery plan. For additional information about the restore process, see "How Restore Processing Works".

If you prefer or require a character other than @, you can change the character to be attached to the replacement volume names by issuing the SET DRMPLANVPOSTFIX command. When you are attempting to locate replacement volume names within the disaster recovery plan, the attached character makes the replacement volume names easily identifiable.

The following example defines the character identification as r:

set drmplanvpostfix r

Prefix for Recovery Instructions

Issue the SET DRMINSTRPREFIX command to specify the prefix portion of the path name for the recovery instructions source files.

The following example specifies the prefix as /u/recovery/plans/rpp:

set drminstrprefix /u/recovery/plans/rpp

The disaster recovery plan file will include the information from the following files:

   /u/recovery/plans/rpp.RECOVERY.INSTRUCTIONS.GENERAL
   /u/recovery/plans/rpp.RECOVERY.INSTRUCTIONS.OFFSITE
   /u/recovery/plans/rpp.RECOVERY.INSTRUCTIONS.INSTALL
   /u/recovery/plans/rpp.RECOVERY.INSTRUCTIONS.DATABASE
   /u/recovery/plans/rpp.RECOVERY.INSTRUCTIONS.STGPOOL

You can override this SET command using the INSTRPREFIX parameter with the PREPARE command. For more information refer to ADSM Administrator's Reference.

Prefix for Recovery Plan File

Issue the SET DRMPLANPREFIX command to specify the prefix portion of the path name for the generated recovery plan file. This prefix is used by ADSM to identify the location of the recovery plan file. The plan prefix is also used to generate the ADSM macros and script file names included in the RECOVERY.SCRIPT.DISASTER.RECOVERY.MODE and RECOVERY.SCRIPT.NORMAL.MODE.

The following example specifies the prefix as /u/server/recoveryplans/:

set drmplanprefix /u/server/recoveryplans/

The disaster recovery plan file name created by PREPARE processing will be in the following format:

   /u/server/recoveryplans/19950603.013030

You can override this SET command using the PLANPREFIX parameter with the PREPARE command, for more information refer to ADSM Administrator's Reference.

Customizing the Management of Offsite Recovery Media

This section describes how to configure DRM for offsite recovery media management.
Note:ADSM provides defaults for the information specified in the SET commands described in this section. You can take these defaults at this point, continue on to "Querying the Disaster Recovery Manager System Parameters", and return to this customization later if you wish.

Copy Storage Pools

The MOVE DRMEDIA or QUERY DRMEDIA command processes the volumes in the MOUNTABLE state that are associated with the list of copy storage pool names specified by the SET DRMCOPYSTGPOOL command. If the COPYSTGPOOL parameter is specified with the MOVE DRMEDIA or QUERY DRMEDIA command, the copy storage pool names specified with the command will override those specified with the SET DRMCOPYSTGPOOL command.

Not Mountable Location Name

Issue the SET DRMNOTMOUNTABLENAME command to specify the location name for storing media that are ejected from the library and to be shipped to an offsite location. At installation, the name of this location is set to NOTMOUNTABLE. After installation, you can use this command to modify the name of the location. The location name is used by the MOVE DRMEDIA command to set the location of volumes that are updated to the NOTMOUNTABLE state.

The following example specifies the location name as Local.

set drmnotmountablename Local

Courier Name

At installation, the name of the courier is set to COURIER. After installation, you can change the name of the courier. The MOVE DRMEDIA command uses the courier name to set the location of volumes that are changing from the NOTMOUNTABLE state to the COURIER state.

The following example specifies the courier name as Joe's Courier Service:

set drmcouriername "Joe's Courier Service"

Sequential Media Labels for Checked Out Volumes

Issue the SET DRMCHECKLABEL command to specify whether ADSM should read sequential media labels of volumes checked out with the MOVE DRMEDIA command. At installation, the value is set to YES. After installation, use this command to modify the value. This command does not apply to 349X library types.

The following example specifies that DRM should not read the volume labels:

set drmchecklabel no

Expiration of a Database Series

A database series is eligible for expiration if all of the following conditions are true:

To set the expiration value to 30 days, issue the following command:

set drmdbbackupexpiredays 30

Processing Backup Volumes of the FILE Device Type

Issue the SET DRMFILEPROCESS command to specify whether the MOVE DRMEDIA or QUERY DRMEDIA commands should process backup volumes that are associated with a device class with a device type of FILE. You can use this command to test the DRM environment. At installation, the value is set to No.

set drmfileprocess yes

Vault Name

At installation, the vault name is set to VAULT. Use the SET DRMVAULTNAME command to change the vault name. The MOVE DRMEDIA command uses the vault name to set the location of volumes that are moving from the COURIER state to the VAULT state.

To specify the vault name the IRONVAULT, the contact name of J. SMITH, and the telephone number 1-555-000-0000 enter:

set drmvaultname "Ironvault, J. Smith, 1-555-000-0000"

Name of Executable Commands File

You can use the MOVE DRMEDIA or QUERY DRMEDIA command to generate executable commands that are contained in a file. You can specify the name of that file with the SET DRMCMDFILENAME command. There is no default file name.

To set the file name as '/drm/orm/exec.cmds', issue the following command:

set drmcmdfilename /drm/orm/exec.cmds

Querying the Disaster Recovery Manager System Parameters

To query the settings defined for DRM, issue the QUERY DRMSTATUS command. For example:

query drmstatus

ADSM displays information similar to the following:

+--------------------------------------------------------------------------------+
|            Recovery Plan Prefix: /u/recovery/plans/rpp                         |
|        Plan Instructions Prefix: /u/recovery/plans/source/                     |
|      Replacement Volume Postfix: @                                             |
|           Primary Storage Pools: PRIM1 PRIM2                                   |
|              Copy Storage Pools: COPY*                                         |
|     Not Mountable Location Name: Local                                         |
|                    Courier Name: Joe's Courier Service                         |
|                 Vault Site Name: Ironvault, D. Lastname, 1-000-000-0000        |
|DB Backup Series Expiration Days: 30 Day(s)                                     |
|                    Check Label?: Yes                                           |
|       Process FILE Device Type?: No                                            |
|               Command File Name: /drm/orm/exec.cmds                            |
+--------------------------------------------------------------------------------+

Customizing the Site-Specific Recovery Instructions

The PREPARE command includes recovery instructions for your site in the disaster recovery plan. Create files having the following names and add your recovery instructions to them:

The PREPARE command includes the information in these files in the disaster recovery plan.

instructionsprefixRECOVERY.INSTRUCTIONS.GENERAL
Include information such as administrator names, telephone numbers, and location of passwords. For example:

+--------------------------------------------------------------------------------+
| Recovery Instructions for ADSM Server ACMESRV on system ZEUS.                  |
| Joe Smith  (wk 002-000-1111 hm 002-003-0000)is the primary system programmer.  |
| Salley Doe (wk 002-000-1112 hm 002-005-0000) is primary recovery administrator.|
| Jane Smith (wk 002-000-1113 hm 002-004-0000) is the responsible manager.       |
| Security Considerations:                                                       |
|  Joe Smith has the password for the Admin ID ACMEADM.  If Joe is unavailable,  |
|  you will need to either issue SET AUTHENTICATION OFF or define a new          |
|  administrative user ID at the replacement ADSM server console.                |
+--------------------------------------------------------------------------------+

instructionsprefixRECOVERY.INSTRUCTIONS.OFFSITE
Include information such as the offsite vault location, courier's name, and telephone numbers. For example:

+--------------------------------------------------------------------------------+
| Our offsite vault location is Ironvault, Safetown, Az.                         |
| The phone number is 1-800-000-0008. You need to contact them directly          |
| to authorize release of the tapes to the courier.                              |
| Our courier's name is Fred Harvey.  You can contact him at 1-800-444-0000.     |
| Since our vault is so far away, be sure to give the courier a list             |
| of both the database backup and copy storage pool volumes required. Fred       |
| is committed to returning these volumes to us in less than 12 hours.           |
+--------------------------------------------------------------------------------+

instructionsprefixRECOVERY.INSTRUCTIONS.INSTALL
Include information about how to restore the base server system from boot media or, if boot media is unavailable, how to install the ADSM server and where the installation volumes are located.

The disaster recovery plan file issues commands using the administrative client, for example, dsmadmc. Ensure the proper path to the administrative client is established prior to executing the scripts RECOVERY.SCRIPT.DISASTER.RECOVERY.MODE and RECOVERY.SCRIPT.NORMAL.MODE. For example, set the shell variable PATH or update the scripts with the appropriate path specification to find the ADSM administrative client. The following is example text for this file:

+--------------------------------------------------------------------------------+
| Most likely you will not need to reinstall the ADSM server and                 |
| administrative clients because we use                                          |
| mksysb to backup the rootvg volume group, and the ADSM server code and         |
| configuration files exist in this group.                                       |
| However, if you cannot do a mksysb restore of the base server system,          |
| and instead have to start with a fresh AIX build, you may need                 |
| to add ADSM server code to that AIX system.                                    |
| The install volume for the ADSM server is INS001. If that is lost, you         |
| will need to contact Copy4You Software, at 1-800-000-0000, and obtain          |
| a new copy. Another possibility is the local IBM Branch office                 |
| at 555-7777.                                                                   |
+--------------------------------------------------------------------------------+

instructionsprefixRECOVERY.INSTRUCTIONS.DATABASE
Include information about how to recover the database along with how much hardware space is needed.

The following is example text for this file:

+--------------------------------------------------------------------------------+
| You will need to find replacement disk space for the server database.  We have |
| an agreement with Joe Replace that in the event of a disaster, he will         |
| provide us with disk space.                                                    |
+--------------------------------------------------------------------------------+

instructionsprefixRECOVERY.INSTRUCTIONS.STGPOOL
Include information on primary storage pool recovery instructions.

The following is example text for this file:

+--------------------------------------------------------------------------------+
| Do not worry about the archive storage pools during this disaster recovery.    |
| Focus on migration and backup storage pools.                                   |
| The most important storage pool is XYZZZZ.                                     |
+--------------------------------------------------------------------------------+


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