Some
Terms:
To View the session information like the server name, node name (client)
etc…
Node Name: Name assigned to TSM client while registering in
TSM server
Backup: It’s a backup, which can have 2 or more versions in
TSM Server
- Active
version of backup which is the latest backup
- Inactive
version of backup which is older than the latest backup
Archive: It’s a backup, which can have any no. of versions
depends upon the expiry date defined in the management class(no. of days of
archive stored in tsm server)
You can open a TSM client software using
- dsm –
GUI based tool
- dsmc –
Text based tool
Lets get into some basic commands:
To View the session information like the server name, node name (client)
etc…
$ dsmc query session
IBM Tivoli Storage Manager
Command Line Backup/Archive Client Interface
Client Version 5,
Release 3, Level 0.12
Client date/time:
02/11/06 01:15:11
(c) Copyright by IBM Corporation and other(s) 1990, 2005.
All Rights Reserved.
Node Name: DDADB350
Session established with server DDTSM05: AIX-RS/6000
Server Version 5,
Release 2, Level 3.0
Data compression
forced on by the server
Server date/time:
02/11/06 01:15:12 Last access: 02/11/06 00:54:26
TSM Server Connection Information
Server Name.............: DDTSM05
Server Type.............: AIX-RS/6000
Server Version..........: Ver. 5, Rel. 2, Lev. 3.0
Last Access Date........: 02/11/06 00:54:26
Delete Backup Files.....: "Yes"
Delete Archive Files....: "Yes"
Node Name...............: DDADB350
User Name...............: root
This shows that
client name is DDADB350
TSM server name is DDTSM05.
TSM Server version is 5.2
TSM Client version is 5.3
How to take a backup:
To take selective files:
$ dsmc selective /opt/oracle/archive/* -subdir=yes
To take incremental:
$ dsmc incremental /opt/oracle/archive/* -subdir=yes
How to archive:
$ dsmc archive /opt/oracle/archive/* -archmc=arch0365
–subdir=yes
Here archmc is the term for management class and arch0365 is
a customized management class, which will keep the data in tape for 365 days.
We can create customized MC in TSM Server.
How to check the active backup:
$ dsmc query backup /opt/oracle/archive/* -subdir=yes
How to check the inactive backup:
$ dsmc query backup /opt/oracle/archive/* -inactive
–subdir=yes
How to check for archived data:
$ dsmc query archive /opt/oracle/archive/* -subdir=yes
This will list the files archived, which can be on different
dates:
You can use from date option to get a list of archive from
that particular date:
$ dsmc query archive /opt/oracle/archive/*
-fromdate=11/02/06 –subdir=yes
How to check the latest backup date and time:
$ dsmc query filespace
here fs means the file space. File space is the space kept
in TSM server for each file system. This command will list the backup
information with last backup date.
$ root dsmc query filespace
IBM Tivoli Storage Manager
Command Line Backup/Archive Client Interface
Client Version 5,
Release 3, Level 0.12
Client date/time:
02/11/06 01:25:50
(c) Copyright by IBM Corporation and other(s) 1990, 2005.
All Rights Reserved.
Node Name: DDADB350
Session established with server DDTSM05: AIX-RS/6000
Server Version 5,
Release 2, Level 3.0
Data compression
forced on by the server
Server date/time:
02/11/06 01:25:50 Last access: 02/11/06 01:15:12
TSM Scrollable Window - Query Filespace
#
Last Incr Date Type File Space Name
---------------------------------------------------------------------------------------------------------------------
1. |
02/10/06 22:01:45 JFS
/
2. |
02/10/06 22:04:46 JFS2
/db2/RVI/db2dump
3. |
02/11/06 00:54:17 JFS2
/db2/RVI/dbs
4. |
02/10/06 22:04:46 JFS2
/db2/RVI/sapdata
5. |
02/10/06 22:04:46 JFS2
/db2/RVI/sapdatat
6. |
02/10/06 22:04:47 JFS2
/db2/db2as
7. | 02/10/06 22:04:54
JFS2 /db2/db2rvi
8. |
02/10/06 22:04:07 JFS
/home
9. |
00/00/00 00:00:00 API:archive
/mksysb_apitsm
10. |
02/10/06 22:04:18 JFS
/opt
11. |
02/10/06 22:05:19 JFS2
/opt/TWS
12. | 02/11/06 00:54:10
JFS2 /sapmnt/RVI
13. |
02/11/06 00:54:25 JFS2
/sapwork/RVI
14. |
00/00/00 00:00:00 JFS
/snap
15. |
02/10/06 22:03:41 JFS
/usr
16. |
02/10/06 22:04:27 JFS
/usr/local
17. |
02/10/06 22:04:36 JFS
/usr/local/Tivoli/lcf/ddadb350
18. |
02/11/06 00:54:14 JFS2
/usr/sap/RVI
19. |
02/10/06 22:04:01 JFS
/var
20. |
02/10/06 22:04:41 JFS
/var/local
0---------10--------20--------30--------40--------50--------60--------70--------80--------90--------100-------110----
<U>=Up
<D>=Down
<R>=Right
<L>=Left <Q>=Quit
query filespace> Q
How to restore active backup:
$ dsmc restore /opt/oracle/archive/* -subdir=yes
You have to use “subdir” option to restore subdirectories.
How to restore inactive backups:
$ dsmc restore /opt/oracle/archive/* - inactive –subdir=yes
How to restore archive:
$ dsmc retrieve
/opt/oracle/archive/* -subdir=yes
You can retrieve a archive from a particular date using
“fromdate” option.
$ dsmc retrieve
/opt/oracle/archive/* -fromdate=11/02/06 –subdir=yes
To get the scheduled backup information on a client:
$ dsmc
tsm> q schedule
Schedule Name:
AIX_05_DDADB_04
Description:
Incr backups
Schedule Style:
Classic
Action: Incremental
Options:
Objects:
Priority: 5
Next Execution: 20
Hours and 27 Minutes
Duration: 1
Hour
Period: 1
Day
Day of Week: Any
Month:
Day of Month:
Week of Month:
Expire: Never
Schedule Name:
AIX_05_MKSYSB_19
Description:
Monthly System Backup
Schedule Style:
Classic
Action:
Command
Options:
Objects:
/usr/local/bin/mksysb_apitsm
Priority: 5
Next Execution: 190
Hours and 27 Minutes
Duration: 1
Hour
Period: 1
Month
Day of Week: Any
Month:
Day of Month:
Week of Month:
Expire:
Never
Here we have 2 schedules for this client.
For help:
$ dsmc
Ø help
To search the IBM Tivoli Storage
Manager technical support Web site to find
technical solutions and answers to
frequently asked questions, refer to
http://www.ibm.com/software/sysmgmt/products/support/IBMTivoliStorageManager.html.
The following help topics are
available.
Enter the number of the desired
help topic or 'q' to quit,
'd' to scroll down, 'u' to scroll
up.
0 - Summary of Changes for TSM
Version 5.3
1 - Using Commands
2 - Select from the commands
listed below:
3 - ARCHIVE
4 - BACKUP GROUP
5 - BACKUP IMAGE
6 - BACKUP NAS
7 - BACKUP WAS
8 - CANCEL PROCESS
9 - CANCEL RESTORE
10 - DELETE ACCESS
11 -
DELETE ARCHIVE
12 - DELETE BACKUP
13 - DELETE FILESPACE
14 - DELETE GROUP
15 - EXPIRE
16 - HELP
17 - INCREMENTAL
18 - LOOP
19 - MACRO
20 -
MONITOR PROCESS
21 - PREVIEW
22 - QUERY ACCESS
23 - QUERY ARCHIVE
24 - QUERY BACKUP
25 - QUERY BACKUPSET
26 - QUERY FILESPACE
27 - QUERY GROUP
28 - QUERY IMAGE
29 - QUERY INCLEXCL
30 - QUERY MGMTCLASS
31 - QUERY NODE
32 - QUERY OPTIONS
33 - QUERY RESTORE
You can get the syntax of any
command here.
No comments:
Post a Comment