Chapter 7. Protecting and maintaining Tivoli Storage Resource Manager 387
7.4 Restore procedures
Figure 7-5 Tivoli Storage Resource Manager restore procedures
We describe now the procedures we have used to recover from:
򐂰 A loss of major Agent files
򐂰 A loss of major Manager files
򐂰 A loss of the Tivoli Storage Resource Manager database
7.4.1 Restore Agent files
In this restore procedure, we have:
򐂰 Stopped the Agent
򐂰 Deleted some files including the Agent executable and configuration file
򐂰 Tried to start the Agent, which failed
򐂰 Restored all of the deleted files
򐂰 Successfully started the Agent
You can see in Example 7-18, all the steps executed to destroy and recover the Agent files.
Example 7-18 Agent restore procedure output
linux:/etc/init.d # ps -ef | grep java
root 4367 4350 0 08:11 pts/0 00:10:04 /opt/tivoli/TSRM/java/bin/exe/java -cp
/opt/tivoli/TSRM/agent/lib/TSRMagt.zip:/opt/tivoli/TSRM/agent/lib/Sprinta2000.jar:/opt/tivo
li/TSRM/agent/lib/ibmjcefw.jar:/opt/tivoli/TSRM/agent/lib/TSRMRequest.jar:/opt/tivoli/TSRM/
agent/lib/ibmpkcs.jar:/opt/tivoli/TSRM/agent/lib/ibmjceprovider.jar:/opt/tivoli/TSRM/agent/
ibm.com/redbooks
Tivoli Storage Resource Manager restore procedures
Tivoli Storage Resource Manager restore procedures
Tivoli Storage Resource Manager Agents
Restore of lost files
Tivoli Storage Resource Manager Server
Restore of lost files
Tivoli Storage Resource Manager database
Database restore command
388 IBM Tivoli Storage Resource Manager: A Practical Introduction
lib/US_export_policy.jar:/opt/tivoli/TSRM/agent/lib/local_policy.jar
com.tivoli.itsrm.agent.svp.Agent
.
.
root 4367 4380 0 08:11 pts/0 00:10:00 /opt/tivoli/TSRM/java/bin/exe/java -cp
/opt/tivoli/TSRM/agent/lib/TSRMagt.zip:/opt/tivoli/TSRM/agent/lib/Sprinta2000.jar:/opt/tivo
li/TSRM/agent/lib/ibmjcefw.jar:/opt/tivoli/TSRM/agent/lib/TSRMRequest.jar:/opt/tivoli/TSRM/
agent/lib/ibmpkcs.jar:/opt/tivoli/TSRM/agent/lib/ibmjceprovider.jar:/opt/tivoli/TSRM/agent/
lib/US_export_policy.jar:/opt/tivoli/TSRM/agent/lib/local_policy.jar
com.tivoli.itsrm.agent.svp.Agent
linux:/etc/init.d # ./tsrmagt1 stop
linux:/etc/init.d #
linux:/etc/init.d # ps -ef | grep TSRMagt1
linux:/etc/init.d #
linux:/etc/init.d # cd /opt/tivoli/TSRM
linux:/opt/tivoli/TSRM #
linux:/opt/tivoli/TSRM # rm config/*
linux:/opt/tivoli/TSRM # rm agent/bin/linux_i386/*
linux:/opt/tivoli/TSRM # cd /etc/init.d
linux:/etc/init.d # ./tsrmagt1 start
linux:/etc/init.d # 06-11 08:49:09 GEN0198I: Agent starting
Exception in thread "main"
linux:/etc/init.d # dsmc restore /opt/tivoli/TSRM/ -subdir=yes -replace=yes
IBM Tivoli Storage Manager
Command Line Backup/Archive Client Interface - Version 5, Release 2, Level 0.0
(c) Copyright by IBM Corporation and other(s) 1990, 2003. All Rights Reserved.
Restore function invoked.
Node Name: SUSE82-1
Session established with server BANDA: AIX-RS/6000
Server Version 5, Release 2, Level 0.0
Server date/time: 06/11/03 16:05:10 Last access: 06/11/03 16:03:04
ANS1247I Waiting for files from the server...
Restoring 176 /opt/tivoli/TSRM/agent [Done]
Restoring 80 /opt/tivoli/TSRM/config [Done]
Restoring 432 /opt/tivoli/TSRM/install [Done]
Restoring 160 /opt/tivoli/TSRM/java [Done]
Restoring 72 /opt/tivoli/TSRM/log [Done]
Restoring 48 /opt/tivoli/TSRM/scripts [Done]
Restoring 80 /opt/tivoli/TSRM/agent/bin [Done]
Restoring 112 /opt/tivoli/TSRM/agent/guid [Done]
Restoring 320 /opt/tivoli/TSRM/agent/lib [Done]
Restoring 168 /opt/tivoli/TSRM/agent/bin/linux_i386 [Done]
...
Restoring 1,025 /opt/tivoli/TSRM/log/suse82-1/Tivoli.Default
Scan.0010_scan.00000413.log [Done]
Restoring 199
/opt/tivoli/TSRM/log/suse82-1/Tivoli.Discovery.0004_discovery.00000371.log [Done]
Restoring 1,930 /opt/tivoli/TSRM/log/suse82-1/agent_000001.log [Done]
Restoring 163 /opt/tivoli/TSRM/log/suse82-1/agent_000002.log [Done]
Restoring 1,069
/opt/tivoli/TSRM/log/suse82-1/db2admin.filling_the_DB_with_scan.0011_scan.00000503.log
[Done]
Restore processing finished.
Chapter 7. Protecting and maintaining Tivoli Storage Resource Manager 389
Total number of objects restored: 281
Total number of objects failed: 0
Total number of bytes transferred: 41.70 MB
Data transfer time: 3.11 sec
Network data transfer rate: 13,716.17 KB/sec
Aggregate data transfer rate: 4,730.41 KB/sec
Elapsed processing time: 00:00:09
linux:/etc/init.d # ./tsrmagt1 start
linux:/etc/init.d # 06-11 09:05:31 GEN0198I: Agent starting
linux:/etc/init.d # ps -ef | grep java
root 4366 1 13 09:10 pts/0 00:00:04 /opt/tivoli/TSRM/java/bin/exe/java -cp
/opt/tivoli/TSRM/agent/lib/TSRMagt.zip:/opt/tivoli/TSRM/agent/lib/Sprinta2000.jar:/opt/tivo
li/TSRM/agent/lib/ibmjcefw.jar:/opt/tivoli/TSRM/agent/lib/TSRMRequest.jar:/opt/tivoli/TSRM/
agent/lib/ibmpkcs.jar:/opt/tivoli/TSRM/agent/lib/ibmjceprovider.jar:/opt/tivoli/TSRM/agent/
lib/US_export_policy.jar:/opt/tivoli/TSRM/agent/lib/local_policy.jar
com.tivoli.itsrm.agent.svp.Agent
.
.
root 4387 4380 0 09:11 pts/0 00:00:00 /opt/tivoli/TSRM/java/bin/exe/java -cp
/opt/tivoli/TSRM/agent/lib/TSRMagt.zip:/opt/tivoli/TSRM/agent/lib/Sprinta2000.jar:/opt/tivo
li/TSRM/agent/lib/ibmjcefw.jar:/opt/tivoli/TSRM/agent/lib/TSRMRequest.jar:/opt/tivoli/TSRM/
agent/lib/ibmpkcs.jar:/opt/tivoli/TSRM/agent/lib/ibmjceprovider.jar:/opt/tivoli/TSRM/agent/
lib/US_export_policy.jar:/opt/tivoli/TSRM/agent/lib/local_policy.jar
com.tivoli.itsrm.agent.svp.Agent
root 4389 4050 0 09:11 pts/0 00:00:00 grep java
From the Tivoli Storage Resource Manager: Administrative GUI we checked to ensure that
the Agent had started successfully (
IBM Tivoli SRM -> Administrative Services -> Agents),
right-click SUSE82-1 and chose Check. Figure 7-5 shows that the Agent on SUSE82-1 did
start.
Figure 7-6 Agent is connected to the server after restore
390 IBM Tivoli Storage Resource Manager: A Practical Introduction
7.4.2 IBM Tivoli Storage Resource Manager Server files
Since our Tivoli Storage Resource Manager Server system also has an Agent running on it,
and the Server and Agent files are stored in the same directory structure, in this restore test
we will be recovering both the Server and Agent.
The restore procedure has the following steps:
1. Stop the Tivoli Storage Resource Manager Server and Agent.
2. Delete Tivoli Storage Resource Manager directories.
3. Try to start the Server - fails.
4. Restore all deleted directories.
5. Successfully start the Tivoli Storage Resource Manager Server and Agent.
Example 7-19 shows the Server and Agent being stopped, the files being deleted, and the
Server and Agent failing to start.
Example 7-19 Stop server and Agent and delete commands
C:\Program Files\Tivoli\TSRM>net stop "IBM Tivoli SRM Server"
The IBM Tivoli SRM Server service is stopping.
The IBM Tivoli SRM Server service was stopped successfully.
C:\Program Files\Tivoli\TSRM>del *.* /s /q >
Deleted file - C:\Program Files\Tivoli\TSRM\autorun.inf
Deleted file - C:\Program Files\Tivoli\TSRM\ibmchanges.txt
Deleted file - C:\Program Files\Tivoli\TSRM\ibmchanges.zip
Deleted file - C:\Program Files\Tivoli\TSRM\INSTANCE1.DAT
Deleted file - C:\Program Files\Tivoli\TSRM\ITSRM_1.2.2.07_windows.zip
Deleted file - C:\Program Files\Tivoli\TSRM\license_key.txt
Deleted file - C:\Program Files\Tivoli\TSRM\license_srm.txt
Deleted file - C:\Program Files\Tivoli\TSRM\SERVER.ID
Deleted file - C:\Program Files\Tivoli\TSRM\setup.exe
Deleted file - C:\Program Files\Tivoli\TSRM\UPTIME.bonnie
Deleted file - C:\Program Files\Tivoli\TSRM\version.txt
Deleted file - C:\Program Files\Tivoli\TSRM\agent\bin\WIN32_I386\TSRMagt.dll
...
C:\Program Files\Tivoli\TSRM>cd ..
C:\Program Files\Tivoli>rmdir tsrm /s
tsrm, Are you sure (Y/N)? y
C:\Program Files\Tivoli>net start "IBM Tivoli SRM Server"
System error 2 has occurred.
The system cannot find the file specified.
C:\Program Files\Tivoli>net start "IBM Tivoli SRM Agent"
System error 2 has occurred.
The system cannot find the file specified.
We launched the Tivoli Storage Manager Backup/Archive client interface and started the
restore of the deleted directories, shown in Figure 7-7.

Get IBM Tivoli Storage Resource Manager: A Practical Introduction now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.