一、安装
Server端
Client端
tivoli.tsm.devices.aix5.rte
tivoli.tsm.client.api.aix51.64bit(备份数据库要用,oracle和db2和was等其他应用程序)
tivoli.tsm.license.cert
tivoli.tsm.client.ba.aix51.64bit
tivoli.tsm.msg.en_US.devices
 
tivoli.tsm.msg.en_US.server
 
tivoli.tsm.server.com
 
tivoli.tsm.server.webadmin
 
tivoli.tsm.msg.en_US.webhelp
 
二、修改server端和client端环境变量
在TSM Server的.profile文件增加如下内容:
export DSMSERV_DIR=/usr/tivoli/tsm/server/bin
export DSMSERV_CONFIG=/usr/tivoli/tsm/server/bin/dmserv.opt
在TSM Client的.profile文件增加如下内容:
export DSM_DIR=/usr/tivoli/tsm/client/ba/bin
export DSM_CONFIG=/usr/tivoli/tsm/client/ba/bin/dsm.opt
export DSM_LOG=/usr/tivoli/tsm/client/ba/bin
三、配置文件修改
Server端
修改/usr/tivoli/tsm/server/bin/dmserv.opt文件,内容如下:
COMMmethod TCPIP
TCPPort 1500
COMMmethod HTTP
Devconfig /usr/Tivoli/tsm/devconfig.out
Volhistory /usr/Tivoli/tsm/volhistory.txt
HTTPPort 1580
Commtimeout 200
Client端
修改/usr/tivoli/tsm/client/ba/bin/dsm.opt文件,内容如下:
Servername tsmtest
修改/usr/tivoli/tsm/client/ba/bin/dsm.sys文件,内容如下:
SErvername tsmtest
COMMMethod TCPip
TCPPort 1500
TCPServeraddress xxx.xxx.xxx.xxx
Passwordaccess generate
四、TSM进程管理
Server端
Client端
启动TSM Server
#cd /usr/tivoli/tsm/server/bin
#./dsmserv &
启动TSM client
#cd /usr/tivoli/tsm/client/ba/bin
#./ dsmcad
停止TSM Server
# cd /usr/tivoli/tsm/server/bin
#./dsmadmc (默认口令和密码admin)
停止TSM client
#ps –ef | grep dsmcad
Kill -9 PID
dsmadmv>halt
 
五、配置
1、set servername tsmserv
set serverpassword admin
set serverhladdress xxx.xxx.xxx.xxx
set serverlladdress 1500
2、定义带库: define library 3583lib libtype=scsi
3、定义带库路径: define path tsmserv 3583lib srctype=server desttype=library device=/dev/smc0 online=yes
3、定义驱动器: define drive 3583lib 3583drive01 online=yes
4、定义驱动器路径:define path tsmserv 3583drive01 srctype=server desttype=drive library=3583lib device=/dev/rmt0 online=yes
5、定义设备类: define devclass lto devtype=lto mountwait=60 mountretention=60
library=3583lib
6、检查带库配置: query library、query drive、query path、query devclasses
7、定义磁带存储池:define stgpool testpool lto pooltype=primary
8、查看stgpool: q stgpool
9、调整TSM DB和LOG文件
# define dbvolume /usr/tivoli/tsm/server/bin/dbvol01.dsm formatsize=1024
# define logvolume /usr/tivoli/tsm/server/bin/logvol01.dsm formatsize=1024
#define volume backuppool /usr/tivoli/tsm/server/bin/backuppool01.dsm formatsize=1024
#define volume archivepool /usr/tivoli/tsm/server/bin/archivepool01.dsm formatsize=1024
#define volume spacemgpool /usr/Tivoli/tsm/server/bin/spmgpool01.dsm formatsizq=1024
11、注册license
register license file=/usr/tivoli/tsm/server/bin/library.lic number=10
12、label libvolume 3583lib
checkin libvolume 3583lib search=yes stat=srca checklable=yes
13、定义策略域
define domain test_domain backretention=90 archretention=365
14、定义策略集
define policyset test_domain test_policyset
15、定义管理类
define mgmtclass test_domain test_policyset test_mgclass
16、定义备份副本组
define copygroup test_domain test_policyset test_mgclass standard type=backup
destination=testpool verexists=3 verdeleted=1 retextra=180 retonly=365 mode=modified
17、分配缺省管理类
assign defmgmtclass test_domain test_policyset test_mgclass
18、激活策略集
activate policyset test_domain test_policyset
19、注册节点
register node testnode password domain=test_domain compression=client archdelete=yes
backdelete=yes type=client
20、设置议程
define schedule test_domain shensi_schedule type=client
dsmc selective –subdir=yes /tmp/*
dsmj(进图型)