Use this command to create a recovery plan file, which contains the information that is needed to recover a Tivoli® Storage Manager server. You can store a recovery plan file on a file system that is accessible to the source Tivoli Storage Manager server or on a target Tivoli Storage Manager server.
You can use the QUERY ACTLOG command to view whether the PREPARE command was successful.
You can also view this information from the server console or, if the WAIT parameter equals YES, an administrative client session.
To issue this command, you must have system privilege.
.-Source--=--DBBackup-------. >>-Prepare--+---------------------------+-----------------------> '-Source--=--+-DBBackup---+-' '-DBSnapshot-' >--+--------------------------------+---------------------------> '-DEVclass--=--device_class_name-' >--+-----------------------+--+------------------------+--------> '-PLANPrefix--=--prefix-' '-INSTRPrefix--=--prefix-' >--+-------------------------------+----------------------------> | .-,---------. | | V | | '-COPYstgpool--=----pool_name-+-' >--+-------------------------------------+----------------------> | .-,---------. | | V | | '-ACTIVEDatastgpool--=----pool_name-+-' .-Wait--=--No------. >--+-------------------------------+--+------------------+----->< | .-,---------. | '-Wait--=--+-No--+-' | V | | '-Yes-' '-PRIMstgpool--=----pool_name-+-'
If the DEVCLASS parameter is not specified, the recovery plan file is written to a file based on the plan prefix.
If SOURCE=DBBACKUP is specified or is defaulted to, the volume history entry for the recovery plan file object specifies a volume type of RPFILE. If SOURCE=DBSNAPSHOT is specified, the volume history entry specifies a volume type of RPFSNAPSHOT.
Tivoli Storage Manager appends to the prefix the sortable date and time format yyyymmdd.hhmmss. For example: 20081115.051421.
PLANPREFIX=/adsmsrv/recplans/
The
resulting file name would look like this: /adsmsrv/recplans/20081115.051421
PLANPREFIX=/adsmsrv/recplans/accounting
The
resulting file name looks like this: /adsmsrv/recplans/accounting.20081115.051421
Note
the period before the date and time.PLANPREFIX=shipping
The
resulting file name looks like this: /opt/tivoli/tsm/server/bin/shipping.20081115.051421
Note
the period before the date and time. PLANPREFIX=c:\adsmsrv\recplans\
The
resulting file name looks like this: c:\adsmsrv\recplans\20081115.051421
PLANPREFIX="c:\adsmsrv\recplans\"
PLANPREFIX=c:\adsmsrv\recplans\accounting
The
resulting file name looks like this: c:\adsmsrv\recplans\accounting.20081115.051421
Note
the period before the date and time.PLANPREFIX=shipping
The resulting
recovery plan filename is: c:\Program Files\Tivoli\TSM;\server2\shipping.20081115.051421
c:\Program Files\Tivoli\TSM;\server2
c:\Program Files\Tivoli\TSM;\server2\2008115.051421
/opt/tivoli/tsm/server/bin
The
resulting file name looks like this: /opt/tivoli/txm/server/bin/20081115.051421
INSTRPREFIX=/adsmsrv/recinstr/
/adsmsrv/recinstr/RECOVERY.INSTRUCTIONS.GENERAL
INSTRPREFIX=/adsmsrv/recinstr/accounts
Tivoli Storage
Manager appends
the appropriate recovery plan file stanza name. For the RECOVERY.INSTRUCTIONS.GENERAL
file, the resulting file name is: /adsmsrv/recinstr/accounts.RECOVERY.INSTRUCTIONS.GENERAL
INSTRPREFIX=shipping
For
the RECOVERY.INSTRUCTIONS.GENERAL file, the resulting file name looks
like this: /opt/tivoli/tsm/server/bin/shipping.RECOVERY.INSTRUCTIONS.GENERAL
INSTRPREFIX=c:\adsmsrv\recinstr\
Tivoli Storage
Manager appends
the appropriate recovery plan file stanza name. For the RECOVERY.INSTRUCTIONS.GENERAL
file, the resulting file name is: c:\adsmsrv\recinstr\RECOVERY.INSTRUCTIONS.GENERAL
INSTRPREFIX="c:\adsmserv\recinstr\"
INSTRPREFIX=c:\adsmsrv\recinstr\accounts
Tivoli Storage
Manager appends
the appropriate recovery plan file stanza name. For the RECOVERY.INSTRUCTIONS.GENERAL
file, the resulting file name is: c:\adsmsrv\recinstr\accounts.RECOVERY.INSTRUCTIONS.GENERAL
INSTRPREFIX=dock
The resulting recovery
plan filename is: c:\Program Files\Tivoli\TSM;\server2\shipping.20081115.051421
c:\Program Files\Tivoli\TSM;\server2
c:\Program Files\Tivoli\TSM;\server2\RECOVERY.INSTRUCTIONS.GENERAL
/opt/tivoli/tsm/server/bin/RECOVERY.INSTRUCTIONS.GENERAL
You cannot specify YES from the server console.
prepare
query actlog search=prepare
05/03/2008 12:01:13 ANR0984I Process 3 for PREPARE started in the
BACKGROUND at 12:01:13.
05/03/2008 12:01:13 ANR6918W PREPARE: Recovery instructions file
/home/guest/drmtest/prepare/tservr/DSM1509/
RECOVERY.INSTRUCTIONS.DATABASE not found.
05/03/2008 12:01:13 ANR6918W PREPARE: Recovery instructions file
/home/guest/drmtest/prepare/tservr/DSM1509/
RECOVERY.INSTRUCTIONS.STGPOOL not found.
05/03/2008 12:01:13 ANR6913W PREPARE: No volumes with backup data
exist in copy storage pool CSTORAGEP.
05/03/2008 12:01:13 ANR6913W PREPARE: No volumes with backup data
exist in copy storage pool CSTORAGEPSM.
05/03/2008 12:01:14 ANR6920W PREPARE: Generated replacement volume
name BACK4X@ is not valid for device type
8MM. Original volume name: BACK4X. Stanza is
PRIMARY.VOLUMES.REPLACEMENT macro.
05/03/2008 12:01:14 ANR6900I PREPARE: The recovery plan file
/home/guest/drmtest/prepare/plandir/DSM1509/
r.p.20080503.120113 was created.
05/03/2008 12:01:14 ANR0985I Process 3 for PREPARE running in the
BACKGROUND completed with completion state
SUCCESS at 12:01:14.
05/03/2008 12:01:13 ANR0984I Process 3 for PREPARE started in the
BACKGROUND at 12:01:13.
05/03/2008 12:01:13 ANR6918W PREPARE: Recovery instructions file
c:\drmtest\prepare\RECOVERY.INSTRUCTIONS.DATABASE
not found.
05/03/2008 12:01:13 ANR6918W PREPARE: Recovery instructions file
c:\drmtest\prepare\RECOVERY.INSTRUCTIONS.STGPOOL
not found.
05/03/2008 12:01:13 ANR6913W PREPARE: No volumes with backup data
exist in copy storage pool CSTORAGEP.
05/03/2008 12:01:13 ANR6913W PREPARE: No volumes with backup data
exist in copy storage pool CSTORAGEPSM.
05/03/2008 12:01:14 ANR6920W PREPARE: Generated replacement volume
name BACK4X@ is not valid for device class 8MM.
Original volume name: BACK4X. Stanza is
PRIMARY.VOLUMES.REPLACEMENT macro.
05/03/2008 12:01:14 ANR6900I PREPARE: The recovery plan file
c:\drmtest\prepare\r.p.20080503.120113
was created.
05/03/2008 12:01:14 ANR0985I Process 3 for PREPARE running in the
BACKGROUND completed with completion state
SUCCESS at 12:01:14.
Command | Description |
---|---|
DELETE VOLHISTORY | Removes sequential volume history information from the volume history file. |
QUERY DRMSTATUS | Displays DRM system parameters. |
QUERY RPFCONTENT | Displays the contents of a recovery plan file. |
QUERY RPFILE | Displays information about recovery plan files. |
QUERY SERVER | Displays information about servers. |
QUERY VOLHISTORY | Displays sequential volume history information that has been collected by the server. |
SET DRMACTIVEDATASTGPOOL | Specifies that active-data storage pools are managed by DRM. |
SET DRMCOPYSTGPOOL | Specifies that copy storage pools are managed by DRM. |
SET DRMINSTRPREFIX | Specifies the prefix portion of the path name for the recovery plan instructions. |
SET DRMPLANVPOSTFIX | Specifies the replacement volume names in the recovery plan file. |
SET DRMPLANPREFIX | Specifies the prefix portion of the path name for the recovery plan. |
SET DRMPRIMSTGPOOL | Specifies that primary storage pools are managed by DRM. |
SET DRMRPFEXPIREDAYS | Set criteria for recovery plan file expiration. |
UPDATE VOLHISTORY | Adds or changes location information for a volume in the volume history file. |