TSM简介及安装手册

上一篇 / 下一篇  2008-04-20 21:49:17 / 个人分类:数据安全与备份

51Testing软件测试网,wHdnz

备份软件:Tivoli51Testing软件测试网(|6O Q0K1d C)gm/c
Tivoli storage manage
V V,z:kQ3t J(P#U7t0Tivoli Storage Manager功能描述
PTKZ$^,L*G F8b0TSM技术参数51Testing软件测试网M H Q@p `p:w4~
TSM版本:  5.1
7j@9a&Wm%z0]7M0TSM5.1 服务器软件的运行平台: IBM AIX 4.3.2, 4.3.3.,5l Sun Solaris 2.6, 7, 8. HP-UX 11.0.  Microsoft Windows NT/2000 Workstation 或Server Version 4.0, SP3, SP4, SP5, SP6 或 SP6a.
K }nHt)w+r `1y0TSM客户端软件: 支持几乎所有流行的操作系统平台.如IBM的所有操作系统, Windows, Apple, Novell, DEC, HP, SUN, SCO, SGI, Linux 等.51Testing软件测试网6ZPz F9r/f
Tivoli Data Protection for Oracle 2.2: 实现对Oracle 数据库的在线备份和恢复。51Testing软件测试网 n o+a@r
Oracle服务器可运行在的平台包括 Windows NT/2000, AIX, HP-UX, Solaris。51Testing软件测试网'HQgp.G)p.u|Ye

51Testing软件测试网!K,b@2DQ!L*}0p2ABZ

51Testing软件测试网bxj#^&b U9q5a8y%l
  Tivoli TSM产品功能详述
*U1B3|%h Yyt M\6e0Tivoli TSM(Tivoli Storage Manager)是一个企业级的Client/Server结构跨平台网络备份、恢复及存储管理软件。TSM Client主要功能是向TSM Server提供需要备份的数据,或向TSM Server索取已备份数据及归档数据以便Client恢复数据。TSM Server负责管理TSM Client的备份数据、备份策略及管理连接在TSM Server上的各类存储产品。51Testing软件测试网 E$UT!^`,^Kb
  TSM自动备份和恢复
}YN:K ? }A0        一旦整个备份系统设置完成,每个应用系统的服务器会在指定的时间把需要备份的数据送到TSM服务器中集中存放。如果需要恢复数据,TSM Client端只要通过非常简单易用的图形界面或由应用程序发出指令指出恢复哪些个对象文件,TSM Server自动从磁带库中取出文件,交给TSM Client。如果备份磁带不在磁带库中,TSM Server提示系统管理员插入某盒磁带。
_&MG%gJ0        TSM是一个彻底的在线备份软件。对数据库,TSM通过TSM Connect Agent备份正在打开的数据库。对一般文件系统的文件,TSM的Client端能够备份打开的文件,甚至能备份正被修改的文件。当备份TSM遇到需备份的文件正被改动时,有四种处理方式:
_!hP)k3~I0不备份,同时在日志中留一个标记;
;G%R V%u%c4u0马上备份
3[E,e%l ZT w&[0重试数次(次数由用户预定),如文件仍然在修改,则不备份,记日志;51Testing软件测试网 w#d}:S N l,g.g0r"B2k
重试数次(次数由用户预先指定),最后一次无论文件静止或仍然在改动,都备份该文件。

N!E6z&SgN:\%F051Testing软件测试网&o3Y-HDqb z'l0k

TSM比同类备份软件考虑的更多的是数据的恢复能力。TSM的观念是:备份的目的就是恢复。所以在备份软件的评测中,备份速度TSM的优势并不明显,而恢复速度往往是其他软件的数倍。
}SNB,p0K3q+|K g9Q0        TSM这种惊人的恢复速度及其他许多独一无二的功能主要依赖于TSM强大的内核,TSM的引擎是一个关系数据库。迄今没有任何一家其他备份软件是采用关系型数据库作核心的。关系数据库的处理能力和搜索速度是TSM性能超越其他采用索引文件作为引擎的备份软件的主要原因。TSM完善的介质管理能力也得益于这个数据库引擎。
6@{K tR0wm V0  TSM备份和恢复过程的容错性
'_D&FK:c9ALL0TSM是唯一采用数据库作为核心的备份管理软件,每个备份对象都作为一个交易(Transaction)来处理。因此TSM具有很强的容错能力,TSM的传输数据原则是:尽量避免不必要的重复数据传送占用网络带宽。当某个备份或恢复过程因为网络中断或机器故障而意外终止,下次重新递交该备份或恢复进程时,TSM会从中断处继续传输,而不是从头开始(许多备份软件都必须从头开始重做)。原因是TSM对每个对象备份完成与否都有日志记录,就象银行系统对每笔交易完成与否都有记录一样。51Testing软件测试网.S\ v V}"r@O
TSM的永远增量备份51Testing软件测试网 R2k7s+xZs_vR
TSM支持全盘备份和独一无二的“永久增量备份”方式。永久增量备份是指:初始时做所有数据文件的全盘备份,以后只备份新的或改动过的文件。这种方式减少了备份时间和所需的存储容量,减轻了网络负担。这种方式的原因是TSM把每个备份对象作为一个交易,记录在它的关系数据库中,每个备份对象对应文件系统的一个文件。当用户需要恢复文件系统时,TSM找到所有属于该文件系统原备份对象,交给用户。所以,TSM能够做永远的增量备份。51Testing软件测试网:B4m&L{e
TSM的介质管理能力       
U d;}:{%D:vP0TSM对备份和归档数据分别管理。因为归档数据保存时间比备份数据长,而且备份数据有‘版本’,归档数据无版本。‘版本’就是同一个数据对象的多个备份copy,例如,记录销售情况的文件每天都在改变,如果每天做备份,那么每天的备份就是一个‘版本’。用户可以根据实际业务需要,保留必要的‘版本’数。TSM能够自动清除过期的备份版本和归档数据。51Testing软件测试网+lu7P]r"E'w$V$}
TSM在介质管理中采用了独一无二的“磁带集中”和“磁带重用”技术。“磁带集中”使每个客户机的每天的备份数据都对应放在一盒或一组磁带上,使得TSM能够用最少的磁带数做恢复。这是一种迅速、可靠的数据恢复方式。
b$v _%V A"cF0“磁带重用”的目的是使磁带库或光盘库介质自动轮转,完全实现备份、恢复的无人值守。原理是:当介质上的过期数据越来越多并达到一定限度时,比如介质上80%的数据都过期了,TSM会自动把数个这样的介质的残余数据整合到一个介质中,而其它介质重新进入新的介质轮转中去。所以,如果用户有足够的存储容量,TSM可以做到真正的‘零管理’。51Testing软件测试网g,\|0M m(Cy
TSM能够自动跟踪所有介质的去向和使用情况。TSM不仅自动管理磁带库、光盘库中的介质,还能跟踪放在磁带库、光盘库外的介质和保留在异地的备份介质。当恢复需要这些介质时,TSM会提示管理员到何处去取标签为xxx的介质。51Testing软件测试网~lM[\$B
TSM本身具有完善的自我保护和恢复机制。配合TSM的灾难恢复,可帮助用户在计算机系统发生灾难性事件后迅速恢复系统和数据。这在后面有更详细的说明。51Testing软件测试网-|.}%ba"^c
数据库备份的考虑:       51Testing软件测试网&`2U5Jm-j n%nbN
数据库的备份主要考虑备份是在线热备份还是冷备份。数据库的存储空间是建立在文件系统还是裸设备上。
2I&nn hzC2B @0建立在裸设备上的文件无法通过操作系统的文件系统来访问,而大部分应用程序包括TSM都是通过文件系统来访问数据的。数据库热备份是在数据库打开的情况下做的,所以在备份前一定要保证数据据库的完整性。失去完整性的数据库是无法恢复的。冷备份是在数据库正常关闭后做的备份,所以不需要考虑完整性(数据库已经是完整的)。
/t2UP'Pq`8p6{:r0如果数据库存放在文件系统中,又只要做冷备份。非常简单,使用TSM的Client自动备份(或用户选定)相关文件即可。备份Oracle就采用这种办法。同样,如果Informix和Sybase基于文件系统,需做冷备份也采用这种方式。
ZP_KF`jqNW1}ei0如果做冷备份的数据库基于裸设备,或者需要热备份,则需要数据库工具来实现, TSM提供对以下应用的在线备份能力:
[tvs-K t3V0Lotus Domino、DB2、Oracle、Informix、SAP R/3、Exchange、SQL Server等
X'{1A/Z4|Q&kV k0而且,Tivoli提供对应用的备份将可以充分利用到Tivoli对SAN的支持,应用可以支持通过SAN进行在线备份和恢复。51Testing软件测试网AC Sm~3hc,ws

51Testing软件测试网 sm{F{(uw4}CS'C

灾难恢复功能
2X"^-dxtE0TSM的Disaster Recovery Management(DRM) 选件能够帮助用户迅速恢复系统。51Testing软件测试网6N-z'b.X;bM%q
优点:
\.nZi5Y.V]0在各类灾难恢复方案中,是最全面及简单易行的方案之一
)F5O3cl|8jBAA0灾难发生后能够全自动恢复TSM服务器51Testing软件测试网&YC2Q{-cN ~
自动生成可执行描述文件,准确、迅速恢复TSM服务器51Testing软件测试网4Rj,fs#c'P a7i
为系统级的灾难恢复提供所需信息及步骤的详细描述51Testing软件测试网8`\ v1] Z1r
管理和跟踪TSM数据库和存储区间备份卷,智能化减少人为错误51Testing软件测试网 Gb-VmF"{\ h{A
为PC机的硬盘提供物理级镜像式恢复
$D&Wc:[t \Y3f!W0大幅度减少系统管理员在容灾方面的时间投入
P/q |eXp0详细地指导操作人员如何一步一步恢复系统51Testing软件测试网6ho ]2~-O6o1\2J

51Testing软件测试网*ho6|;wt ucX"[

好的计划是容灾的关键51Testing软件测试网,W5{5b:j6q}\c
许多企业机构都认识到数据备份是保证业务正常持续运行的重要部分。如果缺少了正确的数据保护,那么设备的故障、人为错误或自然灾害都会导致关键任务数据的丢失。但是,数据保护工作却变的越来越复杂,原因是关键性数据的存储越来越分散,数据分布在不同的地理位置或不同的组织部门中。
o`[PDA0即使已经做了安全守护措施,那么当灾难发生后,在一个大型组织中需要多少时间才能彻底恢复数据呢?51Testing软件测试网&r6Mg(P4a|H
答案取决于多种因素。灾难发生前,备份是否不折不扣的执行;如果日常有信息系统的恢复计划存在,该计划是否始终保持更新;如何在灾后迅速找到所有本地或异地的备份数据;如果灾难摧毁了服务器和工作站,那么这些设备的软硬件配置环境必须能够重新建立起来。51Testing软件测试网 y)S"~5{7?
在很多情形中,实施恢复任务的工作小组往往不熟悉整个企业计算环境的结构,因为他们并没有参与当时结构的设计和初始化安装设置。51Testing软件测试网/t M/c W} g*B [&@
在灾难发生后的混乱中,管理员很难做到周全安排、井井有条的恢复系统及数据。因此,他们需要一份无懈可击、条理清晰的恢复指导书,TSM的灾难管理功能(简称DRM)能够指导用户如何操作来迅速恢复企业范围内的各种数据。
T iZu,qR.T^ ?3VR0DRM管理自动恢复所需的每个细节51Testing软件测试网{r2[F[ A'TK"r'V
自动、准确的DRM功能帮助用户保护宝贵数据的安全性。在TSM管辖内的数据,都能通过DRM自动策划、准备及制作备份恢复计划,一旦DRM生成了计划文件,所有服务器上最新的相关信息都被收集起来,以备恢复。51Testing软件测试网Xa k ~R;G
如果灾难发生,DRM提供恢复步骤的详细文档,可执行的描述文件自动恢复数据、重建环境。DRM使得企业可以很快回复正常运转。
-UG I[ l;]0DRM智能化管理和跟踪备份介质的转移。帮助管理员决定哪些介质本地保存,哪些介质需要异地保存。当恢复灾难时,DRM帮助用户迅速找到所有需要的介质,无论这些介质是在本地或运输途中或在异地的保险柜里。
s${*Y l'Y3j{lH_K0TSM客户端追踪管理功能帮助系统管理员了解哪些系统被灾害摧毁,以及这些机器所需要的软硬件,以便用户决定需要重新定购哪些设备来替换损坏的设备。
!@FB zz9B b0其他DRM记录的重要信息包括:需要恢复的各台机器的优先级;相关人员的连续方式等51Testing软件测试网]7?J$e T
DRM简化了计划和稽查过程
c:|e$CZ9nt0DRM自动收集制定恢复计划所需要的信息,并自动执行灾难恢复过程中的一些重要步骤,从而节省了系统管理员大量的时间。51Testing软件测试网o/f^%_%DC%ndT([
许多机构需要定期测试容灾方案以确定其可行性,DRM集中式的管理和维护便于检查,而DRM清晰的步骤使得无论是全局测试或局部测试都简单易行。
vrM2O0r:IBI0DRM特性/功能/价值对照表

HPhC7d4r({ g [&vz051Testing软件测试网6X ~x%Q Iv5B9L

特性        功能        价值
lV%Ig5i4Mt H|'nAA0全面的企业存储管理解决方案        支持25个以上的多供应商平台以及许多应用程序和数据库        提供一个单一、全面、易于使用的存储管理解决方案,保护您的分布式、异构型关键任务数据。
1a$G3@GJ-WK0多个TSM服务器的集中管理        允许管理员集中管理多个Tivoli TSM服务器;在一个Tivoli TSM服务器集中定义公用策略和配置信息,然后将它们传播到其他Tivoli TSM服务器。        提高管理员生产率,降低信息技术总成本和工作负荷。
ABr8v4A0H S&`J1ZO0自动化和调度的存储管理操作        使备份、存档、分层存储管理和灾难恢复自动化-消除了易于出错的人工操作。        消除人工备份和跟踪需求;为保护您的关键任务数据提高一个自动化、高性能解决方案。51Testing软件测试网"jw8{l8Bt
关键记录保留(存档)        拥有关键记录保留的存档功能,以及一个从Tivoli TSM快速搜索和检索关键记录的简单GUI。        能使您满足审计和法规需求。51Testing软件测试网(] w6{:_"g#Y1D6FI&C
分层存储管理(HSM)        自动将不经常被存取的数据从昂贵的磁盘存储迁移到更加经济的介质,例如Tivoli TSM服务器上的磁带和光盘存储。        通过使现有存储资源最大化帮助降低成本,并减少升级磁盘存储的需求。51Testing软件测试网Zs$b7m$_8gj:V5M
灾难恢复管理器(DRM)        为每一个Tivoli TSM服务器生成一个逐步奏的灾难恢复计划。        通过减少在发生故障或自然灾难之后恢复系统的时间,确保业务连续性。

MS!U1x;SE"e&P8XZ0

e4v-b ~U1gf.O-U0
UYB9I)`#X ?n9g0DRM现在支持操作系统有:AIX、AS/400、HP-UX、MVS、Windows NT和Sun Solaris。       51Testing软件测试网#@;Va#uFr_
  TSM的扩展能力
r6M_M v0        TSM是一个真正企业级的软件。体现在单个TSM服务器的稳定和成熟,支持的平台、设备非常广泛,还体现在多个TSM之间的互联和统一管理上。
N2D$[#JR4K'}-e0        当某个TSM服务器因为TSM Client增长过快,服务器负荷太重时,可以把一部分用户和他们的数据迁移到另一台TSM服务器中。这两台服务器可以是不同的平台。51Testing软件测试网?w3Q7W!jy
        TSM的Server to Server Communication选件使TSM服务器之间能够互相传递数据,相互备份等功能。

"qLB9Q|"Xy-Sc0

g8I#YM|9?'l0一、        TSM软件安装51Testing软件测试网cH0a VB5qR
1.        TSM Server软件的安装
|]JW9Y L[/v.\0A、        以root用户登陆51Testing软件测试网U,^Nu~G5L^{
B、        通过#smitty installp进行软件的安装
Tx;U/tnR8QM0}G0选择相应的软件包进行安装:Tivoli.tsm.server.rte 、Tivoli.tsm.server.com 、Tivoli.tsm.server.webadmin 、Tivoli.tsm.license.rte 、Tivoli.tsm.license.cert 、Tivoli.tsm.devices.aix43.rte 。
}H:y5f-N!R(OJo5|-s02.        TSM 客户端软件安装51Testing软件测试网n:f3X"Q"O$si]\
A、        以root用户登陆51Testing软件测试网6[6L;Y L\S K S/n%^*M
B、        通过#smitty installp进行软件的安装51Testing软件测试网 RG0{kJiG
选择相应的软件包进行安装:Tivoli.tsm.client.ba.aix43.32bit下的Backup/Archive Base files、Backup/Archive Common Files 、Tivoli.tsm.client.books 、Tivoli.tsm.client.web.aix43.32bit、 tivoli.tsm.client.image.aix43.32bit 。
TT6y_j.hO03.        TSM for Oracle的软件的安装
Rn:Z ABe)M/X0A、        以root用户登陆
3Z]PT3@l8a_(o6Zn0B、        通过#smitty installp进行软件的安装
pFKC8Z%bS0选择相应的软件包进行安装:tivoli.tsm.client.api.aix43.64bit、tivoli.tsm.client.oracle.64bit、tivoli.tsm.client.oracle.tools.64bit 。51Testing软件测试网:Ti1Q JX3L6|

51Testing软件测试网(e$In E%B[a*|^z

二、        修改环境变量和配置文件
,r]I5B'LRt o01.        TSM Server和TSM Client安装完成后对进行环境变量的修改。51Testing软件测试网2PP^yCj0[
在TSM Server的.profile文件增加如下内容:
.y n9Yu-^a3r"pu0export DSMSERV_DIR=/usr/tivoli/tsm/server/bin
5?5e G:]T*HaC q0export DSMSERV_CONFIG=/usr/tivoli/tsm/server/bin/dmserv.opt
8YqyJkU0        在TSM Client的.profile文件增加如下内容:51Testing软件测试网'C9C2Wt-G*E'ux&R:c
export DSM_DIR=/usr/tivoli/tsm/client/ba/bin51Testing软件测试网E7F-G@s
export DSM_CONFIG=/usr/tivoli/tsm/client/ba/bin/dsm.opt51Testing软件测试网7u+I+rFw+e
export DSM_LOG=/usr/tivoli/tsm/client/ba/bin
7EG0\r|#E0Ok"s02.        修改TSM Server的dsmserv.opt文件
6Z8q4e3o:oL2{S+ms0解除屏蔽选项:51Testing软件测试网g7j/A [q n/`0l-E D
COMMmethod TCPIP51Testing软件测试网u'LJ#B.Q R,WyL-]
COMMmethod HTTP51Testing软件测试网F0`r-oN!wr0B%G%R
添加下面两行:
{&hq:I;q ]Q0TCPPort 150051Testing软件测试网UD?9AG1{+`
HTTPPort 1580
\&a$[/\ M03.        修改TSM Client的dsm.opt和dsm.sys文件
UVr+s@%k0在dsm.opt文件中指定TSM Server:
c)Md lT1Rwa0                Servername                tsm(说明此处为TSM Server的名字)
H\ C.XK9G\0在dsm.sys文件中添加如下内容:
%_7Qh9W g3vl&P`u+ZL0                SErvername                          tsm51Testing软件测试网V&ZJ%Rt,X/O,n"U
                           COMMmethod               TCPip51Testing软件测试网aN,Sl Ng b
                           TCPPort                            1500
`nuk:?g4a#Q0                           TCPServeraddress           xxx.xxx.xxx.xxx51Testing软件测试网zz];R"Z&~
                           nodename                   xxxxxxx
Pte'WM4z0passwordaccess                     generate51Testing软件测试网CL*P)a QYJN
                           managedservices                        webclient schedule
)] OAcf {BO!Gs04.        修改/usr/tivoli/tsm/client/oracle/bin/tdpo.opt
'uT5UZ klU0DSMI_ORC_CONFIG   /usr/tivoli/tsm/client/api/bin64/dsm.opt
G7^L3_3O Z7pk&]0DSMI_LOG           /usr/tivoli/51Testing软件测试网[!l3q9wfV)cO
TDPO_FS            adsmorc51Testing软件测试网'L1h5J o/L` o
TDPO_NODE          tdpora151Testing软件测试网 WKO!@8||$fg:`
TDPO_OWNER         root
m#CK|(fl#FhNA0TDPO_PSWDPATH      /usr/tivoli/tsm/client/oracle/bin64
2i{w1o(I~S@5y0TDPO_DATE_FMT             151Testing软件测试网] WX$nL8gI
TDPO_NUM_FMT             1
-vl r&y3N&[I j6Q0TDPO_TIME_FMT             1

G.tHg[l051Testing软件测试网2MZZ%_!\$?(D(j

三、        TSM 进程管理51Testing软件测试网m"~.R v^
1.        启动TSM Server51Testing软件测试网/y3Jrg`v
#/usr/tivoli/tsm/server/bin/dsmserv quiet &51Testing软件测试网7ki$r/ws {D'Z
2.        启动TSM Client
OP/s(}"K4w$a0#/usr/tivoli/tsm/client/ba/bin/dsmcad51Testing软件测试网 } VMap@&R
3.        停止TSM Server51Testing软件测试网:Vt4[wPppcH#D
#/usr/tivoli/tsm/server/bin/dsmadmc(输入提示的用户、口令)51Testing软件测试网^)\P&{zPx&q| n
dsmadmc>;halt51Testing软件测试网$E(i wyq;S
4.        停止TSM Client51Testing软件测试网6?{8Z2`&wf"{\#SH
通过ps –ef|grep dsmcad 查找出对应的PID,然后通过kill命令停止进程。
M D K!e\4s1w0四、        TSM软件配置51Testing软件测试网V$RBP8t4}
1.        在操作系统检查磁带库设备硬件
'KK.O8i;vHr(|0#lsdev –Cc tape(会看到rmtx和smc0 的状态为Avaliable),如不能看到则需要安装3583磁带库的驱动程序,具体安装方法请参见3583相关资料。51Testing软件测试网"xY"b0C*^(V'Fs3g`$yu
2.        磁带库配置
e}+o-lO `0A、使用tapeutil找到Driver的element值#tapeutil
$u lFjSh%o0B、选择“open a device”:/dev/smc0
5O4Z `a&D0C、选择“elements Information”,就可以得到Driver和Slots的elements值。
F](?#G_?9a2B0E、定义磁带库
T%P6[0P!@6_H0           define library autolib libtype=scsi(定义一个名字为autolib的SCSI磁带库)。
3LH-qSmgkS0F、定义磁带库的PATH(定义TSM SERVER名为TSM所连的接磁带库autolib在TSM SERVER中的设备PTAH:/dev/smc0)。
N_1M2q#X@khh0define path tsm autolib srctype=server desttype=library device=/dev/smc0 ōnline=yes51Testing软件测试网%`k[t*W'g,Mq2y
        G、定义磁带机(Driver)(定义磁带库autolib中的磁带机,磁带机的名字叫做 driver01)。51Testing软件测试网P/D a ]9L9U*p[8Z
                        define drive autolib drive01 element=256
v%h&eQ1@a(I7J{0        H、定义磁带机(Driver)的PATH(定义TSMSERVER名为TSM所连接的磁带库autolib中的磁带机在TSM SERVER中的设备PATH)。51Testing软件测试网0c_*uDoN*@~ px
                define path tsm drive01 srctype=server desttype=drive library=autolib device=/dev/rmt0 ōnline=yes51Testing软件测试网 Km#O EEKD}j!i
        I、定义设备CLASSES51Testing软件测试网-j@V/g$B,d!}3^
                define devclass ltotape devtype=lto library=autolib format=ultriumc mountlimit=drives mountretention=5 estcapacity=200G
)G1J^ C5Z/T0J、检查磁带库的相关配置
P2V a.m{dI2rPmYB0        query library、query driver、query path、query devclasses51Testing软件测试网 @0q,e#h!V[C
        K、定义磁带存储池
g/X zc%i9Y0define stgpool 3583_pool ltotape maxscratch=20(定义ltotape设备类使用的磁带存储池3583_pool)。51Testing软件测试网7WN#l]&J(AD+s5zZ
3.        调整TSM DB 和LOG空间的大小
&lQ;?d h%H-TM0define dbvolume /tsmdata/dblog/db01.dsm formatsize=160 wait=yes51Testing软件测试网"Jj6w.N q0i
extend db 16051Testing软件测试网B ws`xyG4mv
dfine logvloume /tsmdata/dblog/log01.dsm formatsize=100 wait=yes51Testing软件测试网esY:\b)C*^ H"C
extend log 100
bp6[}!s2y|0define spacetrigger db fullpct=85 spaceexpansion=25 expansionprefix=/tsmdata/dblog/51Testing软件测试网kq`%Z6f ZdCI-W
define spacetrigger log fullpct=85 spaceexpansion=25 expansionprefix=/tsmdata/dblog/51Testing软件测试网o1Q3l3X&J XN3w(]
reduce db 1651Testing软件测试网DYl'By\BrXo
reduce log 8
5}M\]O&pr0delete dbvolume /usr/tivoli/tsm/server/bin/db.dsm51Testing软件测试网Poa7R$@
delete logvolume /usr/tivoli/tsm/server/bin/log.dsm
;c%N }+Xy{NN0安装TSM SERVER时默认的db和log的大小分别是16,8MB。51Testing软件测试网}k/k+m$v,E&o.QG!p"d!K
4.        备份策略的设置51Testing软件测试网R |7g Zy~f
Storage management policies are rules your administrator defines in order to manage your backups and archives on the server(Storage managermanet policies是管理员为了在服务端管理备份和归档定义的一种规则)。You can associate (or bind) your data to these policies(你能够绑定你的数据到这些Policies);when the data is backed up or archived, it is managed according to policy criteria(当数据被备份或归档被相应Policy标准管理)。Policy criteria include a policy domain, and a management class ,a policy set, a copy group。51Testing软件测试网Ql H6_(m O_h.O
policy决定了是否一个文件或目录适合备份或归档、保留多少个备份版本、非激活状态的备份和归档拷贝保留多长时间、拷贝存放在何处。
!pJKa"E0Policy daemon是一组有相类似备份或归档需求数据的客户机的集合(A policy domain is a group of clients with similar requirements for backing up and archiving data.)。Policy domains contain one or more policy sets。51Testing软件测试网"e Yskh.B3Y2r
A policy set is a group of one or more management classes。
k1x%Y\L G0A management class is a collection of backup and archive copy groups that establishes and contains specific storage management requirements for backing up and archiving data.51Testing软件测试网6q4D-h|pj6a4tF6D
Within a management class, the specific backup and archive requirements are in copy groups. Copy groups define the specific storage management attributes that describe how the server manages backed up or archived data. Copy groups include both backup copy groups and archive copy groups. A management class can have one backup copy group, one archive copy group, both, or neither。51Testing软件测试网9W5jXZ8~K
A、        创建备份 client node51Testing软件测试网$RMB/Q4Ew+|0A)G,b!n
B、        通过WEB方式建立Policy daemon,选择object class/Policy daemon/define a Policy daemon51Testing软件测试网Y N(DIzk(cP]z
C、        选择Policy daemon下面的.Policy sets/define a policy sets,并将policy set给Active
~6l5p-f W-dgW(C0D、        选择Policy sets下面的ManageClass/define a manageclass51Testing软件测试网)D!h(c2?g/u
E、        选择ManagClass下面的Copy Group
x6Sy)u1wiJ2ba$j0F、        将Client node分配到相应的Policy daemon51Testing软件测试网1WfKL ] w*|
5.       
0O.n)r9F gT'B06.       
D0A} mJT"M,M0五、        文件系统备份51Testing软件测试网0e6Da&i"kl(@8Z:b
六、        RMAN的配置
H+O LV$s#T'x0安装一套独立与生产数据库之外的ORACLE数据库作为catalog database,最好安装在不同的主机上。
8Cx$mn*o9fiZR01.        在catalog数据库服务器上创建RMAN所需要的表空间
iUj UEn?Y1G0$svrmgrl
E7w@'e8^%xIu)b,k0         svrmgrl>;connect system/manager51Testing软件测试网 uh+me w
svrmgrl>;create tablespace rman_ts datafile ‘<dir>;/<name>;’
H/f?6U8}Y0       >;size 100M autoextend on next 100M maxsize 300M;51Testing软件测试网2I*BDz$Q8{r
2.        创建RMAN用户并赋予角色及权限
B-I P9e)Y0svrmgrl>;create user rman identified by rman
%Jn8j-M1}n0          >;default tablespace rman_ts51Testing软件测试网D6z"fkO?b1xC
          >;temporary tablespace temporary51Testing软件测试网/j@nF(CBpX;nu
          >;quota unlimited on rman_ts;
"{H w"R E*R D+gc0   svrmgrl>;grant recovery_catalog_owner to rman;
]7D.I#jH8inO*ZI0   svrmgrl>;connect / as sysdba;51Testing软件测试网!G9|u G$m&_
svrmgrl>;grant dba,connect,resource to rman;51Testing软件测试网(t EJ,fAM[
3.        创建recovery catalog的表结构
-to:\onF9d0$rman targetinternal/oracle@targetSID  rcvcatrman/rman@recoverycatalogSID51Testing软件测试网-Be'r AG7E&@9zB
rman>;create catalog;51Testing软件测试网!E S2c%Q5g
4.        在catalog数据库中对目标数据库进行注册
L4q#M%W$y0rman>;register database;
)C/[a7o-Z1[r6PD0七、        ORACLE数据库的备份51Testing软件测试网9m8v)d1@Ur2@
Database备份scrīpt:51Testing软件测试网 B1nY;o3W}
run {51Testing软件测试网3z vQ ^ jA}
        allocate channel d1 type 'sbt_tape' connect'internal/manager@scdb2'parms51Testing软件测试网7J2f!W"KH Y
'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
3OAf!v6m Sw/V)[ d0        allocate channel d2 type 'sbt_tape' connect'internal/manager@scdb1'parms
x7pf2sy;ix0'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
sCgL[D0        backup
7w3P1wF%qk{p%}0                   format 'ctl_t%t_s%s_p%p'
)H"kE+x'S,NV yT0                   tag cf
}G4EXvK:j;e0                   (current controlfile);51Testing软件测试网``Z _kB
        backup51Testing软件测试网 h%Op"S/_C
                  full
Kz T&x`3te-yj0                   filesperset 851Testing软件测试网%?+ZXn)V x
                   format 'db_t%t_s%s_p%p'51Testing软件测试网^Fd0V4Vvp O
           tag fulldb51Testing软件测试网j2P!w{u:yN%wl
                   (database);51Testing软件测试网b'^P*^ I^7mm
        release channel d1;
,W,N aK_t\0        release channel d2;
D u _2U&vJ"J#r$i0}51Testing软件测试网O,?*X3sbc,u
Archivelog的备份scrīpt:
"`yB2^3qc0run {
HDO:VR%A{,Mf0           allocate channel d1 type 'sbt_tape' parms51Testing软件测试网 o G z[i1Kz
ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)'51Testing软件测试网.O+X ? h!NZ
    connect'internal/manager@scdb1';
\8Q$~~.j(Qz\7l-^0           sql 'alter system archive log current';51Testing软件测试网 IY;u8C-Ao
          backup51Testing软件测试网1QT8s;V'J RN0O'INT
            format 'arch_t%t_s%s_p%p'51Testing软件测试网Wl#Kv^b m#pY
            (archivelog51Testing软件测试网,X1~oK,Mc'z1o+p
            like '/jfbackup/arch_log/arch_1_%.arc'
R9Y5^Q5U[~1R:Q0            delete input);51Testing软件测试网mL:WGNl;g+han
        release channel d1;
:k m V2c%cVI~ w3r0        }
7w$H(}z~'X(e0       51Testing软件测试网o!oN.Tt6Q2D"P
run {51Testing软件测试网,t)W0_vQ+w
           allocate channel d2 type 'sbt_tape' parms51Testing软件测试网?6p8Dx c;ga
ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)'51Testing软件测试网^0['P7n-lW\,|
    connect'internal/manager@scdb2';
Qyd_e0           sql 'alter system archive log current';
3R8TIoMSN0          backup
&Qi5qh1u[4GY]0            format 'arch_t%t_s%s_p%p'
{Y}]WA0            (archivelog51Testing软件测试网H,?,`(\6v.?
            like '/jfbackup/arch_log/arch_2_%.arc'
&Y5BG%[\ {iE0            delete input);51Testing软件测试网2H KwJ Wi
        release channel d2;
1bzOAd$c%h0        }51Testing软件测试网V9y*zd#C
        同时还可以对指定的tablespace datafile进行备份,具体请参见RMAN相关手册。
#L$\M,]Wh kD0        手工执行ORACLE的备份:
SO'Q/Y5HEg0        rman targetinternal/oracle@targetSID  rcvcatrman/rman@recoverycatalogSID  cmdfile=/xxx/xxx  msglog=xxx.log
!Ph_N5Qi#P0八、        ORACLE数据库的恢复
KiXu3A;~0run {
| z ?XH W ]'r0        allocate channel d3 type 'sbt_tape' connect'internal/manager@scdb1'parms
g[h$Ddpc0'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
^0?-nT!^2nJ0        allocate channel d4 type 'sbt_tape' connect'internal/manager@scdb2'parms
lp'}8Nus(VO0'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)';51Testing软件测试网%\2}E?.W4z'd+h0v.tz
        restore controlfile;51Testing软件测试网z2`/[~_H3W
        alter database mount;51Testing软件测试网-VE!^D{b[!D/h8T
        restore database;
U#rs5AZev;m2w0        recover database;
%u:[$YV \.?0yge-L0        release channel d1;51Testing软件测试网`? w)y5dR,sJ"i
        release channel d2;
/t9z:yd@Y+G0        sql "alter database open resetlogs";
"s @wn0_.z0        }
E;x0a~-i8z$vR0九、

'E*v7uu7qAl051Testing软件测试网|g#` M{%BU

Twelve Steps to Configuring Your Tsm Environment51Testing软件测试网 v+]0K b A [$V|/P

51Testing软件测试网5Q a'vVs7j)G

1、        Install the TSM code on the machine that will be your TSM server (referred to as server).This process may involve a few steps that are dependent on your  platform type.Please read the Quick Start Guide and REAMES for yout platform.51Testing软件测试网(b6E ~5p+_Wd2kmny
2、        At the install time you had created default DB and LOG volumes.Now you want to supportment or replace that initial configuration.51Testing软件测试网|r*[u gj1B/e
A、        Add additional DB volumes.i.e. def dbv filename f=volsize Note:make sure they are on separate physical disks form other DB vols,LOG vols or mirrors of their LOGs or DBs.
a s:cur0ig[E"B0B、        Extend the data base to use the newly added space.i.e ext db 100
r1\Am!U$D0C、        Add additional LOG volumes,i.e.def logv filename f=volsize Notice:Same rules apply for LOG volumes as DB volumes.51Testing软件测试网 G5q$c4n%wxt
D、        Extend the log to use the newly added space.i.e ext log 100
%b@c$Wy G w:u0E、        You may have to delete the default volumes that were created during install,i.e del dbv filename or del log filename Notice:You may have to reduce the DB or LOG in order to delete the volume i.e.reduce db 1651Testing软件测试网@:`7U-{;^8_(MK9g
3、        Now configure you dsmserv.opt file.Read though the default file.There are serval values you may wish to set or adjust.51Testing软件测试网*a1cso V/x
A、        Set yout COMMMethods and there related attributes
f)P&B:kyX`j&]@0B、        Set VOLHISTORY and DEVCONFIG,remember make 2 copies
L7m3fsO`:M*^0C、        Set EXPInterval 0,this will disable expiration.You will have a admin schedule take care of this51Testing软件测试网1xO? l"}6P+~#n
D、        Set various performance releated attributes,i.e. TCPNODELAY,TCPWindowsize,MAXSessions,BUFPoolsize,LOGPoolsize,TXNGroupmax.etc51Testing软件测试网WA3E c ZkT
E、        To use the Web Admin Client set COMMM tcpip,HTTPPort 1580,1580 is the default port number
"j O5Xd/V04、        Now you must defined the Libraries,Drivers and Device Classes your system will use51Testing软件测试网:WZ!o0g2`\
A、        You must define libraries frist.Both manual and automated libraries can be defined,i.e.manual –def lib manlib libtype=manual or automated –def lib autolib libtype=scsi device=dec_spec
FIsec7y0B、        Now define drives in your libraries,i.e manual –def dr manlib mandr device=dec_spec or def dr autolib autodriv1 device=dec_spec element=element#
R~iP'b0C、        Now we can create device classes.You can have more than 1 device class use the same library if yoy like.Notelease refer to the documentation for def dev command.There are many options available.
M'd?Gi[s05、        Once we have Device Classes we can create Storage Pools that will use them,also,we must establish or SP hierarchy.51Testing软件测试网2o]?{_
A、        Determine the number of top level pools you will need.They will typically be Disk based SPs51Testing软件测试网/o#`.L}7ib
B、        Next decide on the hierarchy from the top levels to the final pools.Make sure you consider things like:Backup vs Archive data,Collocation,Offsite (copy pools) vs Local.etc.51Testing软件测试网1Uv0oy+oGEQ
C、        Create the necessary storage pools with the appropriate attributes.In particular consider,the valus for migration,reclamation and next storage pool as they will also affected by your administrative schedules.Nore: Please consult the documentation for the def stg command.There are many options available.51Testing软件测试网prJI5p8{
6、        Nextt you right create Policy Domian(s) and right Policy that is reflective of your Service Level Agreement(SLA).51Testing软件测试网9O4o~5g3C7@6?J}
A、        Determine how you will group your manages systems.i.e.1 Policy Domain or several.
%E7\_6E5euF k9?0B、        Create you policy domain(s).Note:The following steps will be repeated for each Policy domain
B] P]:i^0ü        def do mydomain51Testing软件测试网1A0wzL(v
ü        def po mydomain myposet51Testing软件测试网 F:\6^/x:b
ü        def mg mydomain myposet mymc Note:Create as many Management Classes as necessary.51Testing软件测试网L1XHc9h| D
ü        def co mydomain myposet mymc standard type=backup…51Testing软件测试网k@Ww/[
ü        def co mydomain myposet mymc standard type=archive…
jT:} byU&I;A0b0Note:above two lines are optional for any given Management Class51Testing软件测试网9LZE6Mm? W-\.D T
ü        as defmg mgname51Testing软件测试网)AASn3[u
ü        val po mydomain myposet51Testing软件测试网$EwaEQc
ü        act po mydomain myposet
9U%G Qh4y7|0Note:Each of the above steps have many options,especially the def co commands,so please consult the documentation
afG!f m!g ^07、        You probably want to go home at night so lets define some client schedules.Please remember client schedules are within a given Policy Domain,therefore you may want to right a schedule once and copy it to different domains if necessary.51Testing软件测试网DO&L"C-f`3j?
A、        Create a schedule to do your nightly Incremental backups.Your clients Domain and Include/Exclude list should be written so that all that is need in the schedule is just I with no file specification given.
8?z a/FJ0B、        Right any other schedules that maybe appropriate for you needs.Note:def sch command has several options,so please consult the documentation.
"y%`(y5e2^&?[GL08、        The server will need some schedules as well.The followingis just a list of some things you should consider for scheduling.This is not intend to be a complete list nor do I attempt to make a 24 hour plan.The timings will depand entirely on your environment.There is a good example of a 24 hour schedule plan in the “Getting Statrted with Tivoli Storage Manager:Implementation Guide”.
CxmL8?dd:G0A、        migration,reclamation,expiration,DB Backups, SPs      Backups,Clean Volhist, backup Volhist and Devconfig,DRM
!X/h&k \!y"G l+P0B、        Consider the time and order to do these things,in general do one things at a time,backup the DB after large changes
-_(Ue5^d9y/N D"{0C、        Remember to allow down time in your schedule.That is time when nothing is scheduled,so you can catch up if needed
V.NrM;xG.c+S09、        There are just a few other miscellaneous server function left.
(z @ ?h,hk0A、        Create your client option sets.these are client options that you are going to override at the server.
:DE7?-w7ag&X0ü        Define one or more client option sets.i.e.def clo ntclients51Testing软件测试网 R[-[;j\:A0q@
ü        Next define the various options for each client option set.i.e.def cliento ntclients compress no
U1h(N]l%b3\X K0B、        Add any additional administrators thal you will need,i.e.server admins,help desk workers,operators,etc.51Testing软件测试网$a4h.d)G%[o)t
ü        reg admin jradmin jrpasswd51Testing软件测试网+\r:b zz+gIM
ü        grant auth jradmin…51Testing软件测试网la;E sRI E;U
Note:Consult the documentation for all the extra options.
I G8fF+k&PiR U4W0C、        Label and checkin tape media.For NT,W2K and UNIX you can use the label libvol command.51Testing软件测试网x7V m6j~A
10、        Now it is time at register you managed system(refereed to as clients).51Testing软件测试网Y9iQ~8bl&fI8M
A、        Things to consider at registration time,what domain and client option set to associate them with.51Testing软件测试网;DV+J$OC)]1O s Se
B、        reg node node_name node_password domain= domain_name clopset=ntclients
[`Q{]6iSw0C、        This must be done for every managed system,consider scrīpting it if you have a large number of clients.51Testing软件测试网db9|Se+i
D、        You must associate the node with the schedules you would like it to use.i.e.def assoc domain schedule node
Ljq0BCQE0_2z0Note:You can only associate nodes to schedules within their domain
su&[3AJi'K6J|\011、        The managed system(clients) must have the client code installed.Consult the “Installing the Clients Guide” for details on the different platforms that you will be using.51Testing软件测试网!Q X.V[}?'C?
12、        Once the clients are installed you will need to update the dsm.opt file and the dsm.sys(unix only) file.51Testing软件测试网"N!I#RB'C q?!v
A、        Select a(just one)COMMMethod and configure any associated parms for that method,i.e.COMMM tcpip,TCPPort 1500,TCPServer server.dot.decimal.addr51Testing软件测试网9p(l Qo rC1p
B、        Configure schedule log,error log and their retention time,i.e.SCHEDLOGName dsmsched.log,SCHEDLOGRetention 10,ERRORLOGName dsmerr.log51Testing软件测试网&b9W{PE7C
C、        Set performance related attributes.Consult the documentation for appropriate values for your environment,i.e.TCPB,TCPW,TXNB,etc.51Testing软件测试网.l;uH&|yX3sI
D、        Configure you Domain and Include/Exclude statements.The goal here is to eliminate those files you do not wish to backup and to bind particular files to a specific Management Class.51Testing软件测试网)_,qW1|vz1| eFqA
E、        Insure that the dsmc sched program runs either as a service or a daemon when the client is rebooted.
} ]4js1B%W0F、        Set passwordaccess generate This will allow the scheduler to authenticate automatically.51Testing软件测试网s]tcto(V |F~Wd
G、        Configure the client to be accessed through the web client interface.
9Xo1hL O%Y"I0ü        This will vary from platform to platform so please consult the Installing the Clients manual.
X~0b2?9|3ik+d e4JE(~0ü        In general,you will need to have the TSM client acceptor service/daemon running.51Testing软件测试网 n*qm `B0H'x
ü        TSM Client Acceptor service/daemon is generally started at boot time.
,b3b:`1G&Hj S$P6f0{0ü        Passwordaccess generate is required in the dsm.opt(dsm.sys for unix) file.51Testing软件测试网1EYn9]7w1wD'm N

51Testing软件测试网!l5_(Qd7T`A

TSM server安装
gg0k QzcNm0步骤一51Testing软件测试网N4f K"m9g WVfb!T
smit安装所需要的软件包:
6tt/M.X$RF pT6Y0        Tivoli.tsm.server.rte51Testing软件测试网|0B9O)qw
        Tivoli.tsm.server.com51Testing软件测试网*J w;v B'iXQ1G
        Tivoli.tsm.server.webadmin51Testing软件测试网mICCet%T
        Tivoli.tsm.license.rte51Testing软件测试网4q ~kmQ%Z{C
        Tivoli.tsm.license.cert
f{H+e`0        Tivoli.tsm.devices.aix43.rte

RjGB4B w(Yj051Testing软件测试网kI*MeX-vZ:ej+tK

51Testing软件测试网,N:fOYmW6I2_ E`4F
步骤二
1~1k/? ^+t#?-yo U"q0修改环境变量
Z j3w;qb!T3v G [0        export DSMSERV_DIR=/usr/tivoli/tsm/server/bin
kO+k4B2C"q&N5a0export DSMSERV_CONFIG=/usr/tivoli/tsm/server/bin/dmserv.opt

_ l8vhN.Y0

-v,h^2]#CE0步骤三
7g,ghC"Jask.T0修改dsmserv.opt文件51Testing软件测试网0qhB\(GBJ
        解除屏蔽:
t Ov }2I3Q1g2K!m#XA0                COMMmethod TCPIP
j,^/mo8t&o0                   COMMmethod HTTP51Testing软件测试网B `!d:C_X
        添加:51Testing软件测试网y4b,v#S t9^X5cL \
                    TCPPort 150051Testing软件测试网$J;I C-Z7O'M
HTTPPort 158051Testing软件测试网f o$I(U5Jbxh4`x

51Testing软件测试网,x+N$qx[xW*~!|`!C

步骤四51Testing软件测试网 e`T+B*_7P;d
建立server的自动运行:
"WJe,X"q.?!RF:Uw&`m0        在TSM server软件包安装完成后,系统自动在inittab中添加了自动运行:51Testing软件测试网W9D(EW'`*s
autosrvr:2nce:/usr/tivoli/tsm/server/bin/rc.adsmserv >;/dev/console 2>;&1
4E4QOD'p~^"x0        注意:在有HA的情况下,不能使用该方式。

W!_R"VyE#j0

!]0q.bjc0手动运行server:
8NM:nl/b^;I4V0        dsmserv quiet &

%ir\)@^051Testing软件测试网3JD Z$w-P6N6r&{K

51Testing软件测试网?&`:gQI$dTC?
步骤五
-F]*}Pz3A"E*CU0修改server名称等属性:51Testing软件测试网|f6}:fV+D k9_F
        对象视图->;服务器->;服务器状态
4I(Z#L@Y"@"k]4m0        注意:口令有效期限51Testing软件测试网oL8q D3{Nr

51Testing软件测试网mVU:J@1@iw l

步骤六51Testing软件测试网:UKy1@IV]-lxR7~
使用命令行注册license51Testing软件测试网!y X%Z#Ky4w:W?
        reg lic file=[license file] number51Testing软件测试网8m^0l2n;tYd8m*a)Uz$e
        在TSM server安装完成后,在/usr/Tivoli/tsm/server/bin下会产生多个后缀为lic的license51Testing软件测试网G4w'}uD"ft
文件,据此注册。51Testing软件测试网 u focG7_4WL

*H+zf H p^Y-_ V0        在本次安装中,使用:
U(o}2n@9H1Q Yg0        reg lic file=*.lic number=2

C-P7w"th0{3@1]0

K/A.`,Na0
z;jL|mY0步骤七
ZX(yI1g%h0格式化DB、LOG和磁盘存储池所需要的空间
(}n{c(x'Z)r0例如:
/xi/U.FB'tc1`0        dsmfmt -m -db /tsmdata/db01.dsm 300
X6yo)d N&o4u0        dsmfmt -m -log /xzbackup/tsmdata/log01.dsm 30051Testing软件测试网9u.H.^p2|qw
        dsmfmt -m -data /xzbackup /tsmdata/babkvol.dsm 20051Testing软件测试网]}OTw/[*_!s!p,o
        dsmfmt -m -data /xzbackup /tsmdata/baarcvol.dsm 200
uX$s%N a)M9ka{0        dsmfmt -m -data /xzbackup /tsmdata/tdpbkvol.dsm 200
$mZ5P6x#^Y0                                                                                                        `51Testing软件测试网T{X"|8[l3[
步骤八
}Grp)L-\q"~0扩展DB和LOG

w ~$Z}2Z5Ws$d051Testing软件测试网%J'JJ)J`+X%CWr

使用web方式:51Testing软件测试网a3] |3m*xp!uF
object view ->; Database ->; Database Volumes ->; Operations: ->; Define Database Volume51Testing软件测试网2obPw$h B

51Testing软件测试网4t1T ~c#E8Jz5d*O!}yj

object view ->; Recovery log ->; Recovery log vo.umes ->; Operations: ->; Define Recovery log volume51Testing软件测试网5H5N\)GPgEK

yW{9g5E1w6Li0
]Dw~q,J;i0步骤八51Testing软件测试网QO N?*S,Y
新建babkpool
!j:C$z)~y+P0        baarcpool51Testing软件测试网9I+}o j0Z!Ws
        tdpbkpool51Testing软件测试网6L$Y3TM3wu

51Testing软件测试网3Y2N!p5\f*jd

Storage Pool Name          51Testing软件测试网FE.tN8U
Descrīption         
Tq"u TQt[y Y0Media Access Status         
!r7S4e kWr1L0Maximum Size Threshold         
$u#Qv5B6O5g7JhK0Next Storage Pool         
/y ?H Y)p'@!m Js0High Migration Threshold         51Testing软件测试网A)\+M"w5_!P!@u
Low Migration Threshold         
r4s3`,jZ IUe0p!v0Cache Migrated Files?          YES  NO
3y AQD"W6o"h.e_v?0Migration Processes         
-W%RV}R(`Q4E0Migration Delay         
3K8l'eE D-k0Migration Continue          YES  NO
:c}*D?bEd t*O0Copy Storage Pool(s)         
UB9n5E:vJ'f}0Continue Copy on Error?          YES  NO
;p7aplI,bO0CRC Data          YES  NO
DJ9d!H.yr&\0       

8O\k2qU7C]0

|F K]"_0步骤九
5]:Z7~)u;jz0定义与3583带库有关的对象51Testing软件测试网,k$H[*tI"bp

51Testing软件测试网JQ9ta*X-l$~

3583设备文件名:
(GB0g `Z&d @0库设备为/dev/smc0
m{8GI\!{3j0        drive为/dev/rmtx
+s&V l*uNJj`0若系统中已经有一个DDS带机(dev/rmt0),那么带库中的第一个drive设备名称
(A8`rE)SA-}0为/dev/rmt1。
U-{_ UfY'L0                       51Testing软件测试网/z@ F&U$RSQ7f@
使用tapeutil查找3583 drive的element号
!RF'V-i{ a)@0        1.# tapeutil
q(R9Vl.uJ#X;Fg0        2. 选:“1. Open a Device”,输入device名称:/dev/smc051Testing软件测试网[d`z_9M0\.g
        3.选:“12. Element Information”,便可查找到drive的element号。
!r O*B5gG+| @|C$_0一般来说第一个drive的element号为256

1P1z.bU!D0

wRL\6e"u+O0定义库
3y Y"[)fSwB*S0select object view ->; server storage ->; Libraries and Drives ->; Automated Libraries ->; Operations: ->; Define Automated Library51Testing软件测试网#W1v U(M8{ o3Y
library name :        3583
0ViL(Q:k"H%H0device:                /dev/smc0

_2N[OL8h*V3P^051Testing软件测试网P#MkW Mb1q

定义驱动器
#B~9os`Qg&J!i0驱动器一:
1tfIr)x{q0select object view ->; server storage ->; Libraries and Drives ->; Automated Drives ->; Operations: ->; Define Automated Drive51Testing软件测试网c,t:I+u/w]%UU
        Library Name                         3583
&Et)EV6e [6W.QX c/S0        Drive Name                         3583_drive151Testing软件测试网#K^{b$qw`
        Device                                 /dev/rmt1
i~B |/^U)g0        Element                                 256                ( 256 just for 3583 drive 1, you should find out element information via tapeutil )51Testing软件测试网 zV1Y8h1}*n1e#f
        Device On-Line                                                       YES NO
l)Daw6dKv&Ms2kB0        Cleaning Frequency (Gigabytes/ASNEEDED/NONE)51Testing软件测试网5U3lu"c h:|)f&@fs{
驱动器二:
Y,T|9mj2W9~0define second drive51Testing软件测试网+aOQ IXU9Rs
select object view ->; server storage ->; Libraries and Drives ->; Automated Drives ->; Operations: ->; Define Automated Drive51Testing软件测试网\~4z3TT K
        Library Name                         3583
'~r%K@8?2LV.iAm0        Drive Name                         3583_drive251Testing软件测试网WM;dz&lqb
        Device                                 /dev/rmt251Testing软件测试网+D"V @,FXeUG
        Element                                 257                ( you should find out element information via tapeutil )51Testing软件测试网-u rw%J in
        Device On-Line                                                       YES NO51Testing软件测试网/M#Ib FmG
        Cleaning Frequency (Gigabytes/ASNEEDED/NONE)

|w"^M3Hg051Testing软件测试网*Nj_J F o:[\

定义LTO设备类
%R]8LA}!@&E0For 3583:
$jS$f0Ut$f X0select object view ->; server storage ->; Device Classes ->; LTO Device Classes ->; Operations: ->; Define Device Class
m6b+v0~7P)[5u0`D[v2E/o0                     Device Class Name                 3583_Class
a2Z mj [9V*}0                     Recording Format                 Drive51Testing软件测试网/hPQ7d [iVt&h
                     Library Name                 3583
`M6Qk i;O-?0                     Mount Limit                         DRIVES51Testing软件测试网:b D@`F#^7c Z
                     Mount Retention                 6051Testing软件测试网Su:|z |
                     Tape Volume Prefix                 ADSM51Testing软件测试网B,ov Q\!G Z
                     Estimated Capacity                
;hQ!C6o[9J0                     Mount Wait                         60

@m1W"|:^w5e'\P051Testing软件测试网(QK,u {E7M0d(o"B*g

 51Testing软件测试网2},H J9D;@C

a8~R|8\['[;|0步骤十
c#@_}#t(iB AT01.        为BA建立策略域
7q|a\ c?0(先用默认值)
skB7S(e+T0badomain
&k&i\A\02.        为TDP client建立策略域tdpdomain51Testing软件测试网-d B$Y[aXz,u{}e
注意:TDP client所使用的拷贝副本组属性必须是:
LFu\_'~}%z#l0VERDELETED=0
E2dah'Y \3Ee0RETONLY=051Testing软件测试网 X E-qJ@V

/Pa^3M8{SI m]9]X0为TDP建立策略域、策略集、管理类示例:

5MVp@6S2v051Testing软件测试网a$L:Aqy;[&]

tsm: BRAZIL>;def domain api_domain DESC='DO for all DB-Backups'51Testing软件测试网 QI#HX)N
ANR1500I Policy domain API_DOMAIN defined.51Testing软件测试网 E&u&\u-O*?
tsm: BRAZIL>;

5rH;ngV"oaV3|q0

Bm"O#_X/g0tsm: BRAZIL>;def policyset api_domain api_policy DESC='PO for all DB Backups'
"TN-f!}6J\(w j0ANR1510I Policy set API_POLICY defined in policy domain API_DOMAIN.51Testing软件测试网!PPR;Oy:`M

51Testing软件测试网Ipg+b zY

tsm: BRAZIL>;def mgmtclass api_domain api_policy api_mgmtclass DESC='MC for all DB-Backups'
(`Fm3E)g;L v*@0ANR1520I Management class API_MGMTCLASS defined in policy domain API_DOMAIN, set API_POLICY.
5h R$d-P1nQZ(z0tsm: BRAZIL>;

6oM0e"t9N_\EQ7V051Testing软件测试网w D8g6q,Rx

以下为建立拷贝副本组,需注意选项值:
imMm1_g0tsm: BRAZIL>;def copygroup api_domain api_policy api_mgmtclass type=archive DEST=api_disk retver=nolimit51Testing软件测试网8Ez a2A2|q1x4m
ANR1535I Archive copy group STANDARD defined in policy domain API_DOMAIN, setAPI_POLICY, management class API_MGMTCLASS.

d8L4p t!`` k3F\0i051Testing软件测试网v6L:m!Oz[F&n8P.s]

tsm: BRAZIL>;def copygroup api_domain api_policy api_mgmtclass type=backup DEST=api_disk_ vere=1 verd=0 rete=0 reto=051Testing软件测试网],i,SSa/b8~
ANR1530I Backup copy group STANDARD defined in policy domain API_DOMAIN, set
c-X(|DtEg0API_POLICY, management class API_MGMTCLASS.51Testing软件测试网X K(Cl@

+W,tM-AE|I-W0 

8q ^&k9m"X^\D0

[(@y,i}XU0步骤十一51Testing软件测试网aEL |"~ pz~,S
建立include-exclude list
^YI OC+ad'G0在client的dsm.sys中加入:
;oWL$t1^(C'J*Ka0j$q01.        domain /home /usr /datasave
Y}/tKc,M'w0当使用命令时dsmc incremental -domain="/fs1 /fs2"将备份domain指定的/home, /usr, /datasave文件系统,以及备份命令中由-domain指定的/fs1和/fs2文件系统

kWJA0k_zG051Testing软件测试网3gQ#q)@AJH

步骤十二51Testing软件测试网 D!fh3I vG
建立调度51Testing软件测试网j4h:rtl`f6a]y

;i.zFT \*aLWF0        持续时间:5小时51Testing软件测试网-Z!{5B-|u
        周期:根据用户需求而定,每隔多长时间务器调度运行一次。

/j#\$_z+{U;\W:Q0

,e:K*I:q$w4m"A(p:ja0测试调度
hG#? Exo0        可先调整一个合适的时间测试完成后再调回51Testing软件测试网m{W7a0f!j;Vz

51Testing软件测试网cg_Ky'a~[ A

 

G h7p` GD \ [3Z0

.q&ub*z%`aUOH O0 51Testing软件测试网 ND }g _4~ v^

51Testing软件测试网LV+fpXU7fm:l.Bh

 

j1A'_:l+C%\0

;e h6|6Mt3T0 

C9rNI}+I rI xl051Testing软件测试网k-E$H'F2xo P+P

B-A安装配置51Testing软件测试网aaUC{ h#s

51Testing软件测试网 od3g ouWK

步骤一.
-@@` }F&\:H*C0Smit安装B-A client所需要安装的软件包
eiU7D*I;\H0Tivoli.tsm.client.ba.aix43.32bit下的:51Testing软件测试网0??y4le j!g
        Backup/Archive Base files51Testing软件测试网 y$E6Oq5A
        Backup/Archive Common Files
;TN,?fk3kU4o/O%yc0Tivoli.tsm.client.books
8aN Gy(v-Zd0w(|0Tivoli.tsm.client.web.aix43.32bit51Testing软件测试网l;q8EF\^ K
tivoli.tsm.client.image.aix43.32bit51Testing软件测试网0I/B;x4](Yz/Y
(api在TDP安装时安装)51Testing软件测试网i,dm!v O&q:q

51Testing软件测试网$^9hE UfTy

步骤二
*K7Xd h'dM3IR7b0        修改环境变量51Testing软件测试网1O,z;s ]4uY
                export DSM_DIR=/usr/tivoli/tsm/client/ba/bin
WtL-Zl.[h+[!E0export DSM_CONFIG=/usr/tivoli/tsm/client/ba/bin/dsm.opt51Testing软件测试网"A*h8r;jTy
export DSM_LOG=/usr/tivoli/tsm/client/ba/bin51Testing软件测试网]:qUDZ_

51Testing软件测试网_Y?9h%{|o

(以下为server端的环境变量:51Testing软件测试网#U5zvy,O\
                        export DSMSERV_DIR=/usr/tivoli/tsm/server/bin
Aiv4?D0export DSMSERV_CONFIG=/usr/tivoli/tsm/server/bin/dmserv.opt)51Testing软件测试网-k\t(BV-l

51Testing软件测试网'gJ4Ez F A

51Testing软件测试网 Kg;l7T7s.W X
步骤三.
YUd"o(T a:F@6P0需要修改的文件:
,v~ |X!H9m5WZ1P,X Hj0dsm.opt文件:
O&H&C$gn'{0        Servername      tsm

d-wu(};MX,M051Testing软件测试网$g;?9@SD'pj&G

dsm.sys文件:51Testing软件测试网R(YxyDP
SErvername                          tsm
!@:\2`7P zev,f0           COMMmethod               TCPip
*g:J V vPk0           TCPPort                    150051Testing软件测试网c6I5E5m!S2h6J+Z*qZ
           TCPServeraddress           133.54.9.11
Cq'p-py6|u0           nodename                   client1
Z3wi\:z `!W8l?0passwordaccess             generate
n;gD9?i+P_ZN)A7d0           managedservices                webclient schedule

_,Bo%O.w/B5DY0

2SS"~|Uu\0步骤四
9Pj6]"I3`0启动dsmcad
A!HV5u/C/N/Yq0        /usr/Tivoli/tsm/client/ba/bin/dsmcad51Testing软件测试网 V9deN:CW

/b'UsL'|(m-H0TDP for Oracle客户端安装51Testing软件测试网'b*ljU Py
smit安装以下软件包:51Testing软件测试网%v$w(yNz&T/T!w
tivoli.tsm.client.api.aix43.64bit51Testing软件测试网u;` u3[.Y8}4Tg
tivoli.tsm.client.oracle.64bit
9OO)ynynW0tivoli.tsm.client.oracle.tools.64bit

7\3T/]O:Qz051Testing软件测试网$~ q \hqI

编辑tdpo.opt文件:
F3J!WZV0在/usr/tivoli/tsm/client/oracle/bin/目录下新建文件tdpo.opt51Testing软件测试网H W-x(`D5OzT
***************************************************************************51Testing软件测试网bZ!dJa$q4|;F
* Tivoli Storage Manager - Tivoli Data Protection for Oracle51Testing软件测试网(|*o5M\5c&b,`"U g1@
*
3E3hJ)De3R N/fp0* Sample tdpo.opt for the AIX TDP for Oracle
Xk/zK$J[ XW:q"A0*********************************************************************

Wcwo{%T+^5c051Testing软件测试网v7d9@"K.evX!{ vo*D

DSMI_ORC_CONFIG   /usr/tivoli/tsm/client/api/bin64/dsm.opt
.p;~+V a*q0DSMI_LOG           /usr/tivoli/51Testing软件测试网.F_'HF$R P N

51Testing软件测试网6i:j i;eR

TDPO_FS            adsmorc51Testing软件测试网c`c%~$bF(t7y
TDPO_NODE          tdpora151Testing软件测试网X;I-y tGwp
TDPO_OWNER         root
4nK,Nd#E xZz0TDPO_PSWDPATH      /usr/tivoli/tsm/client/oracle/bin64

%KJkT9m9h:[F051Testing软件测试网0JmG6@'kkq^

TDPO_DATE_FMT             151Testing软件测试网Cl1s^3Cu{
TDPO_NUM_FMT             1
&^3y w(Nc5Ji({s/kV1t0TDPO_TIME_FMT             151Testing软件测试网 i Al JM#@2_!tU

b#NZ6i0F PX0*TDPO_MGMT_CLASS2   mgmtclass2
2g@U#s#|"W^$q0*TDPO_MGMT_CLASS3   mgmtclass351Testing软件测试网%a-]@{ fv6oF L
*TDPO_MGMT_CLASS4   mgmtclass451Testing软件测试网OX`J?4|!H

51Testing软件测试网%[,{.u2^q

编辑api client的dsm.opt文件
x;LNmH0* SErvername       A server name defined in the dsm.sys file
q6dN.SF0SErvername       tsm51Testing软件测试网eo9e7g;M?$y

R(F z*uvd0编辑api client的dsm.sys文件51Testing软件测试网ToX T.l7M)A#E3R

"e@A3GP0?0Servername                        tsm
e2?:X;j/K+h7o0COMMmethode                TCPip51Testing软件测试网[1B/TOY QIB
TCPPort                        150051Testing软件测试网)q?f|lEh s
TCPServeraddress                133.54.9.1151Testing软件测试网C#di\'["x
nodename                        tdpora151Testing软件测试网gag @!u%Q
PASSWORDAccess        prompt51Testing软件测试网@*v,SqkS9Q|

51Testing软件测试网VB |7^G$[F4WY

在TSM server注册api client(tdpora1)51Testing软件测试网J\rc$g ]L'b

51Testing软件测试网gd}3R;G3T'|:EE3S6a

初始化password:51Testing软件测试网5C0}D:`(?
使用tdpoconf password -tdpo_optfile=[TDP for Oracle option文件]
CS Nk:^ t8r0        如果tdpo.opt在默认目录下,该命令可不需要参数51Testing软件测试网A9v2Zq4J$l,G(]
        产生的password文件名为:TDPO.[节点名] (注意大小写)

.y g)jW0}"]B051Testing软件测试网 F;R;I!YMk.I

        该口令与TSM server注册该节点时的口令相同51Testing软件测试网]*B Lq\:}w

7y&z}w4}}N4H0        注意:如果在运行tdpoconf时出现错误,那么可能是api64目录下的dsm.sys和dsm.opt文件,以及tdpo.opt文件的内容或文件属性有问题。比较.smp文件的属性,以其为准。

tcJ [gPZJE{ T0

n(H&HLy0确认安装
FM%r9Uh-T01.        显示TDP的环境变量:51Testing软件测试网r:y_e9B
tdpoconf showenv51Testing软件测试网0^!rf@p9Jt
显示:

.eO:k_Sj0

"fT/`_A&iQ6P(v8Yr3h051Testing软件测试网Sa4B? VZ
重新连接oracle备份的库文件51Testing软件测试网:uw7xWf"kF^:f
1.        关闭oracle51Testing软件测试网@/?|7o Hj5`6DH
2.        重新连接库文件:51Testing软件测试网nI|N,]{/h
#rm $ORACLE_HOME/lib/libobk.a51Testing软件测试网fxFv"K
#ln -s /usr/lib/libobk.a $ORACLE_HOME/lib/libobk.a
A*@X$GAhy i0Af03.        启动oracle
e;@bJCm8Orj0 51Testing软件测试网+I-L_U4[Yi F
51Testing软件测试网:O%l5lJ[%Y


相关阅读:

TAG: TSM 数据备份 数据恢复 数据安全 数据安全与备份

 

评分:0

我来说两句

Open Toolbar