This section provides a real life example of using DRM to prepare for disaster recovery, recover the server, and recover the clients. The detailed steps are followed by an outline that gives you a brief day-by-day picture of the DRM tasks.
The ADSM server named ADSMSERV contains the backups for the FileRight Company accounts receivable application. FileRight uses ADSM server database mirroring and copy storage pools whose volumes are kept onsite. For disaster recovery preparation, FileRight uses ADSM server database backup and copy storage pool volumes which are immediately moved offsite after creation. FileRight also uses the AIX mksysb function to create a bootable image of the base operating system and ADSM code.
query drmedia * wherestate=mountable
move drmedia * wherestate=mountable
move drmedia * wherestate=notmountable
prepare
The 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=/drm/checkin.libvol 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 /drm/checkin.libvol:
checkin libvol libauto tape01 status=scratch checkin libvol libauto tape02 status=scratch . . .
Note: | An administrator can run the ADSM MACRO command by specifying
/drm/checkin.libvol
> dsmadmc -id=xxxxx -pa=yyyyyy MACRO /drm/checkin.libvol |
move drmedia * wherestate=courier
move drmedia * wherestate=vaultretrieve
The following scenario shows how an administrator uses the recovery plan file to recover the ADSM server. The ADSM server in this example does not use virtual volumes. A disaster has destroyed the ADSM server and a complete recovery of the server is required. The administrator has the latest recovery plan file.
Restoring from the mksysb tapes include:
Note: | Alternatively the administrator could have used the steps in the recovery script as a guide, and manually executed each step. |
The following are the steps executed in this recovery script:
Note: | Use this copy of the volume history file unless you have a more recent copy (after the disaster occurred). |
Note: | This action is optional at this time because ADSM 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 ADSM server operation. |
If client machines are damaged, you may want to delay this action until after all clients are recovered.
Alternatively, the administrator could have used the steps in the recovery script as a guide, and manually executed each step.
The steps executed in this recovery script are as follows:
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.
The following scenario demonstrates the recovery of ADSM clients. A week after the ADSM server was recovered, another water pipe burst in the building that houses distributed systems applications. Many machines that were backed up using ADSM clients are destroyed. A disaster is declared.
query machine building=021 format=detailed
ADSM displays information similar to the following:
+--------------------------------------------------------------------------------+ | Machine Name: POLARIS | | Machine Priority: 1 | | Building: 21 | | Floor: 2 | | Room: 1 | | ADSM Server?: No | | Description: Payroll | | Node Name: POLARIS | | Recovery Media Name: MKSYSB1 | | Characteristics?: Yes | |Recovery Instructions?: Yes | +--------------------------------------------------------------------------------+
query recoverymedia mksysb1
ADSM displays the following information:
+--------------------------------------------------------------------------------+ |Recovery Media Name Volume Names Location Machine Name | |-------------------- ----------- ---------- ---------------- | |MKSYSB1 vol1 vol2 IRONVAULT POLARIS | | vol3 | +--------------------------------------------------------------------------------+
query machine polaris format=recoveryinstructions
ADSM 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
ADSM 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 ADSM 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 ADSM 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 presents a sample overview of DRM use in normal routine processing and during disaster recovery.
Day 2
Day 3
The following checklist can help you plan the tasks required for DRM
implementation.
Activity | Start Date | End Date | Status | Person Resp. | Backup Person |
---|---|---|---|---|---|
DRM Planning |
|
|
|
|
|
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
|
|
|
|
|
|
Plan for the Recovery Plan File (RPF)
|
|
|
|
|
|
Determine where you want to create the user-specified recovery
instructions
What is the instructions pathname prefix? |
|
|
|
|
|
Analyze the sequence of steps related to the PREPARE command backup
movement
|
|
|
|
|
|
DRM Installation |
|
|
|
|
|
Receive the ADSM code |
|
|
|
|
|
Install the ADSM code |
|
|
|
|
|
Get licensed for DRM
|
|
|
|
|
|
Customize the DRM options
The administrator with system authority issues:
|
|
|
|
|
|
Define the site-specific recovery instructions
Identify:
Create:
|
|
|
|
|
|
DRM Test |
|
|
|
|
|
Test the DRM installation and customization
|
|
|
|
|
|
Examine the RPF created |
|
|
|
|
|
Test the RPF break out
|
|
|
|
|
|
DRM Production |
|
|
|
|
|
Set up the schedules for automated functions |
|
|
|
|
|
Implement the DRM procedures |
|
|
|
|
|