This section presents a realistic example of using DRM to prepare for and recovery from disaster. The detailed steps are followed by an outline that gives you a brief day-by-day picture of the DRM tasks.
The TSM server named DSMSERV contains the backups for the FileRight Company accounts receivable application. FileRight uses database mirroring and copy storage pools whose volumes are kept onsite. For disaster recovery preparation, FileRight uses database backup and copy storage pool volumes which are immediately moved offsite after creation.
query drmedia * wherestate=mountable
move drmedia * wherestate=mountable
move drmedia * wherestate=notmountable
prepareThe administrator copies the recovery plan file to a diskette to be given to the courier.
The administrator creates a list of tapes that contain data that is no longer valid and that should be returned to the site, by issuing the following command:
query drmedia * wherestate=vaultretrieve
Volume CSP01 is in the list.
move drmedia * wherestate=courierretrieve cmdf=c:\drm\checkin.mac cmd="checkin libvol libauto &vol status=scratch"
The volume records for the tapes that were in the COURIERRETRIEVE state are deleted from the database. The MOVE DRMEDIA command also generates the CHECKIN LIBVOL command for each tape processed in the file c:\drm\checkin.mac. For example:
checkin libvol libauto tape01 status=scratch checkin libvol libauto tape02 status=scratch ...
Note: | An administrator can run the MACRO command by specifying
c:\drm\checkin.mac as the macro name to process the
CHECKIN LIBVOL commands.:
> dsmadmc -id=xxxxx -pa=yyyyyy MACRO c:\drm\checkin.mac |
move drmedia * wherestate=courier
move drmedia * wherestate=vaultretrieve
The following scenario shows how an administrator uses the latest recovery plan file to recover the TSM server. The TSM server in this example does not use virtual volumes. A disaster has destroyed the TSM server, and a complete recovery of the server is required.
For information about updating the device configuration file, see Updating the Device Configuration File.
Note: | Alternatively the administrator could have used the steps in the recovery script as a guide, and manually issued each step. |
The following are the steps run in this recovery script:
Note: | Use this copy of the volume history file unless you have a more recent copy (after the disaster occurred). |
Notes:
Note: | This action is optional at this time because TSM can access the copy storage pool volumes directly to restore client data. Using this feature, the administrator can minimize client recovery time because server primary storage pools do not have to be restored first. However, in this scenario, the client machines were not damaged, so the focus of the administrator is to restore full TSM server operation. |
If client machines are damaged, you may want to delay this action until after all clients are recovered.
Alternatively, the administrator could use the steps in the recovery script as a guide, and manually run each step.
The steps in this recovery script are:
update volhist TPBK50 devcl=lib8mm ormstate=mountable update volhist TPBK51 devcl=lib8mm ormstate=mountable
The copy storage pool volumes used in the recovery already have the correct ORMSTATE.
move drmedia * wherestate=mountable
query drmedia * wherestate=notmountable
move drmedia * wherestate=notmountable
The following scenario demonstrates the recovery of clients. A week after the TSM server was recovered, another water pipe burst in the building that houses distributed systems applications. Many machines that were backed up using clients were destroyed. A disaster is declared.
query machine building=021 format=detailed
TSM displays information similar to the following:
+--------------------------------------------------------------------------------+ | Machine Name: POLARIS | | Machine Priority: 1 | | Building: 21 | | Floor: 2 | | Room: 1 | | Server?: No | | Description: Payroll | | Node Name: POLARIS | | Recovery Media Name: MKSYSB1 | | Characteristics?: Yes | |Recovery Instructions?: Yes | +--------------------------------------------------------------------------------+
query recoverymedia mksysb1
TSM displays the following information:
+--------------------------------------------------------------------------------+ |Recovery Media Name Volume Names Location Machine Name | |-------------------- ----------- ---------- ---------------- | |MKSYSB1 vol1 vol2 IRONVAULT POLARIS | | vol3 | +--------------------------------------------------------------------------------+
query machine polaris format=recoveryinstructions
TSM displays the following:
+--------------------------------------------------------------------------------+ |Recovery Instructions for Polaris. | |Primary Contact: | | Jane Smith (wk 520-000-0000 hm 520-001-0001) | |Secondary Contact: | | John Adams (wk 520-000-0001 hm 520-002-0002) | +--------------------------------------------------------------------------------+
query machine polaris format=characteristics
TSM displays information similar to the following:
+--------------------------------------------------------------------------------+ |devices | |aio0 Defined Asynchronous I/O | |bus0 Available 00-00 Microchannel Bus | |fd0 Available 00-00-0D-00 Diskette Drive | |fda0 Available 00-00-0D Standard I/O Diskette Adapter | |fpa0 Available 00-00 Floating Point Processor | |gda0 Available 00-04 Color Graphics Display Adapter | |hd1 Defined Logical volume | |hd2 Defined Logical volume | |hd3 Defined Logical volume | |hdisk0 Available 00-01-00-00 400 MB SCSI Disk Drive | |hdisk1 Available 00-01-00-40 Other SCSI Disk Drive | |hft0 Available High Function Terminal Subsystem | |inet0 Available Internet Network Extension | |ioplanar0 Available 00-00 I/O Planar | |kbd0 Defined 00-00-0K-00 United States keyboard | |lb0 Available 00-02-00-20 TIVSM Library | |lo0 Available Loopback Network Interface | |loglv00 Defined Logical volume | |lp0 Available 00-00-0P-00 IBM 4201 Model 3 Proprinter III | |lv03 Defined Logical volume | |lv04 Defined Logical volume | |lvdd Available N/A | |mem0 Available 00-0B 8 MB Memory Card | |mem1 Available 00-0C 16 MB Memory Card | |mous0 Defined 00-00-0M-00 3 button mouse | |mt0 Available 00-02-00-40 TIVSM Tape Drive | |ppa0 Available 00-00-0P Standard I/O Parallel Port Adapter | |pty0 Available Asynchronous Pseudo-Terminal | |rootvg Defined Volume group | |sa0 Available 00-00-S1 Standard I/O Serial Port 1 | |sa1 Available 00-00-S2 Standard I/O Serial Port 2 | |scsi0 Available 00-01 SCSI I/O Controller | |scsi1 Available 00-02 SCSI I/O Controller | |sio0 Available 00-00 Standard I/O Planar | |siokb0 Available 00-00-0K Keyboard Adapter | |sioms0 Available 00-00-0M Mouse Adapter | |siotb0 Available 00-00-0T Tablet Adapter | |sys0 Available 00-00 System Object | |sysplanar0 Available 00-00 CPU Planar | |sysunit0 Available 00-00 System Unit | |tok0 Available 00-03 Token-Ring High-Performance Adapter | |tr0 Available Token Ring Network Interface | |tty0 Available 00-00-S1-00 Asynchronous Terminal | |tty1 Available 00-00-S2-00 Asynchronous Terminal | |usrvice Defined Logical volume | |veggie2 Defined Volume group | |logical volumes by volume group | |veggie2: | |LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT | |hd2 jfs 103 103 1 open/syncd /usr | |hd1 jfs 1 1 1 open/syncd /home | |hd3 jfs 3 3 1 open/syncd /tmp | |hd9var jfs 1 1 1 open/syncd /var | |file systems | |Filesystem Total KB free %used iused %iused Mounted on | |/dev/hd4 8192 420 94% 909 44% / | |/dev/hd9var 4096 2972 27% 87 8% /var | |/dev/hd2 421888 10964 97% 17435 16% /usr | |/dev/hd3 12288 11588 5% 49 1% /tmp | |/dev/hd1 4096 3896 4% 26 2% /home | +--------------------------------------------------------------------------------+
This section summarizes the use of DRM during routine operations and during disaster recovery:
Day 2
Day 3
The following checklist can help you set up Tivoli Disaster Recovery
Manager.
Table 27. Tivoli Disaster Recovery Manager Checklist
Activity | Start Date | End Date | Status | Person Resp. | Backup Person |
---|---|---|---|---|---|
Plan for DRM |
|
|
|
|
|
Evaluate your disaster recovery requirements
|
|
|
|
|
|
Evaluate the current storage pool backup implementation
|
|
|
|
|
|
Evaluate the current database backup implementation
|
|
|
|
|
|
Determine which primary storage pools are to be managed by DRM |
|
|
|
|
|
Determine which copy storage pools are to be managed by DRM
|
|
|
|
|
|
Where to Save the Recovery Plan File
Stored Locally:
Stored on Another Server:
|
|
|
|
|
|
Determine where you want to create the user-specified recovery
instructions
What is the prefix of the instructions pathname? |
|
|
|
|
|
Analyze the sequence of steps related to the PREPARE command backup
movement
Document the flow of activities and timings
|
|
|
|
|
|
Installation |
|
|
|
|
|
Receive and Install the TSM code |
|
|
|
|
|
License DRM
|
|
|
|
|
|
Customize DRM
|
|
|
|
|
|
Define the site-specific recovery instructions
Identify:
Create:
|
|
|
|
|
|
Test Tivoli Disaster Recovery Manager |
|
|
|
|
|
Test the installation and customization
|
|
|
|
|
|
Examine the recovery plan file created |
|
|
|
|
|
Test the recovery plan file break out
|
|
|
|
|
|
Put DRM into Production |
|
|
|
|
|
Set up the schedules for automated functions |
|
|
|
|
|
Implement the DRM procedures |
|
|
|
|
|