免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12345下一页
最近访问板块 发新帖
查看: 21678 | 回复: 44

[备份软件] TSM安装手册! [复制链接]

论坛徽章:
0
发表于 2003-06-06 21:05 |显示全部楼层

TSM安装手册!

备份软件:Tivoli
Tivoli storage manage
Tivoli Storage Manager功能描述
TSM技术参数
TSM版本:  5.1
TSM5.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.
TSM客户端软件: 支持几乎所有流行的操作系统平台.如IBM的所有操作系统, Windows, Apple, Novell, DEC, HP, SUN, SCO, SGI, Linux 等.
Tivoli Data Protection for Oracle 2.2: 实现对Oracle 数据库的在线备份和恢复。
Oracle服务器可运行在的平台包括 Windows NT/2000, AIX, HP-UX, Solaris。


  Tivoli TSM产品功能详述
Tivoli TSM(Tivoli Storage Manager)是一个企业级的Client/Server结构跨平台网络备份、恢复及存储管理软件。TSM Client主要功能是向TSM Server提供需要备份的数据,或向TSM Server索取已备份数据及归档数据以便Client恢复数据。TSM Server负责管理TSM Client的备份数据、备份策略及管理连接在TSM Server上的各类存储产品。
  TSM自动备份和恢复
        一旦整个备份系统设置完成,每个应用系统的服务器会在指定的时间把需要备份的数据送到TSM服务器中集中存放。如果需要恢复数据,TSM Client端只要通过非常简单易用的图形界面或由应用程序发出指令指出恢复哪些个对象文件,TSM Server自动从磁带库中取出文件,交给TSM Client。如果备份磁带不在磁带库中,TSM Server提示系统管理员插入某盒磁带。
        TSM是一个彻底的在线备份软件。对数据库,TSM通过TSM Connect Agent备份正在打开的数据库。对一般文件系统的文件,TSM的Client端能够备份打开的文件,甚至能备份正被修改的文件。当备份TSM遇到需备份的文件正被改动时,有四种处理方式:
不备份,同时在日志中留一个标记;
马上备份
重试数次(次数由用户预定),如文件仍然在修改,则不备份,记日志;
重试数次(次数由用户预先指定),最后一次无论文件静止或仍然在改动,都备份该文件。

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

灾难恢复功能
TSM的Disaster Recovery Management(DRM) 选件能够帮助用户迅速恢复系统。
优点:
在各类灾难恢复方案中,是最全面及简单易行的方案之一
灾难发生后能够全自动恢复TSM服务器
自动生成可执行描述文件,准确、迅速恢复TSM服务器
为系统级的灾难恢复提供所需信息及步骤的详细描述
管理和跟踪TSM数据库和存储区间备份卷,智能化减少人为错误
为PC机的硬盘提供物理级镜像式恢复
大幅度减少系统管理员在容灾方面的时间投入
详细地指导操作人员如何一步一步恢复系统

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

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


DRM现在支持操作系统有:AIX、AS/400、HP-UX、MVS、Windows NT和Sun Solaris。       
  TSM的扩展能力
        TSM是一个真正企业级的软件。体现在单个TSM服务器的稳定和成熟,支持的平台、设备非常广泛,还体现在多个TSM之间的互联和统一管理上。
        当某个TSM服务器因为TSM Client增长过快,服务器负荷太重时,可以把一部分用户和他们的数据迁移到另一台TSM服务器中。这两台服务器可以是不同的平台。
        TSM的Server to Server Communication选件使TSM服务器之间能够互相传递数据,相互备份等功能。

论坛徽章:
0
发表于 2003-06-06 21:06 |显示全部楼层

TSM安装手册!

一、        TSM软件安装
1.        TSM Server软件的安装
A、        以root用户登陆
B、        通过#smitty installp进行软件的安装
选择相应的软件包进行安装: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 。
2.        TSM 客户端软件安装
A、        以root用户登陆
B、        通过#smitty installp进行软件的安装
选择相应的软件包进行安装: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 。
3.        TSM for Oracle的软件的安装
A、        以root用户登陆
B、        通过#smitty installp进行软件的安装
选择相应的软件包进行安装:tivoli.tsm.client.api.aix43.64bit、tivoli.tsm.client.oracle.64bit、tivoli.tsm.client.oracle.tools.64bit 。

二、        修改环境变量和配置文件
1.        TSM Server和TSM 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
2.        修改TSM Server的dsmserv.opt文件
解除屏蔽选项:
COMMmethod TCPIP
COMMmethod HTTP
添加下面两行:
TCPPort 1500
HTTPPort 1580
3.        修改TSM Client的dsm.opt和dsm.sys文件
在dsm.opt文件中指定TSM Server:
                Servername                tsm(说明此处为TSM Server的名字)
在dsm.sys文件中添加如下内容:
                SErvername                          tsm
                           COMMmethod               TCPip
                           TCPPort                            1500
                           TCPServeraddress           xxx.xxx.xxx.xxx
                           nodename                   xxxxxxx
passwordaccess                     generate
                           managedservices                        webclient schedule
4.        修改/usr/tivoli/tsm/client/oracle/bin/tdpo.opt
DSMI_ORC_CONFIG   /usr/tivoli/tsm/client/api/bin64/dsm.opt
DSMI_LOG           /usr/tivoli/
TDPO_FS            adsmorc
TDPO_NODE          tdpora1
TDPO_OWNER         root
TDPO_PSWDPATH      /usr/tivoli/tsm/client/oracle/bin64
TDPO_DATE_FMT             1
TDPO_NUM_FMT             1
TDPO_TIME_FMT             1

三、        TSM 进程管理
1.        启动TSM Server
#/usr/tivoli/tsm/server/bin/dsmserv quiet &
2.        启动TSM Client
#/usr/tivoli/tsm/client/ba/bin/dsmcad
3.        停止TSM Server
#/usr/tivoli/tsm/server/bin/dsmadmc(输入提示的用户、口令)
dsmadmc>;halt
4.        停止TSM Client
通过ps –ef|grep dsmcad 查找出对应的PID,然后通过kill命令停止进程。
四、        TSM软件配置
1.        在操作系统检查磁带库设备硬件
#lsdev –Cc tape(会看到rmtx和smc0 的状态为Avaliable),如不能看到则需要安装3583磁带库的驱动程序,具体安装方法请参见3583相关资料。
2.        磁带库配置
A、使用tapeutil找到Driver的element值#tapeutil
B、选择“open a device”:/dev/smc0
C、选择“elements Information”,就可以得到Driver和Slots的elements值。
E、定义磁带库
           define library autolib libtype=scsi(定义一个名字为autolib的SCSI磁带库)。
F、定义磁带库的PATH(定义TSM SERVER名为TSM所连的接磁带库autolib在TSM SERVER中的设备PTAH:/dev/smc0)。
define path tsm autolib srctype=server desttype=library device=/dev/smc0 online=yes
        G、定义磁带机(Driver)(定义磁带库autolib中的磁带机,磁带机的名字叫做 driver01)。
                        define drive autolib drive01 element=256
        H、定义磁带机(Driver)的PATH(定义TSMSERVER名为TSM所连接的磁带库autolib中的磁带机在TSM SERVER中的设备PATH)。
                define path tsm drive01 srctype=server desttype=drive library=autolib device=/dev/rmt0 online=yes
        I、定义设备CLASSES
                define devclass ltotape devtype=lto library=autolib format=ultriumc mountlimit=drives mountretention=5 estcapacity=200G
J、检查磁带库的相关配置
        query library、query driver、query path、query devclasses
        K、定义磁带存储池
define stgpool 3583_pool ltotape maxscratch=20(定义ltotape设备类使用的磁带存储池3583_pool)。
3.        调整TSM DB 和LOG空间的大小
define dbvolume /tsmdata/dblog/db01.dsm formatsize=160 wait=yes
extend db 160
dfine logvloume /tsmdata/dblog/log01.dsm formatsize=100 wait=yes
extend log 100
define spacetrigger db fullpct=85 spaceexpansion=25 expansionprefix=/tsmdata/dblog/
define spacetrigger log fullpct=85 spaceexpansion=25 expansionprefix=/tsmdata/dblog/
reduce db 16
reduce log 8
delete dbvolume /usr/tivoli/tsm/server/bin/db.dsm
delete logvolume /usr/tivoli/tsm/server/bin/log.dsm
安装TSM SERVER时默认的db和log的大小分别是16,8MB。
4.        备份策略的设置
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。
policy决定了是否一个文件或目录适合备份或归档、保留多少个备份版本、非激活状态的备份和归档拷贝保留多长时间、拷贝存放在何处。
Policy 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。
A policy set is a group of one or more management classes。
A 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.
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。
A、        创建备份 client node
B、        通过WEB方式建立Policy daemon,选择object class/Policy daemon/define a Policy daemon
C、        选择Policy daemon下面的.Policy sets/define a policy sets,并将policy set给Active
D、        选择Policy sets下面的ManageClass/define a manageclass
E、        选择ManagClass下面的Copy Group
F、        将Client node分配到相应的Policy daemon
5.       
6.       
五、        文件系统备份
六、        RMAN的配置
安装一套独立与生产数据库之外的ORACLE数据库作为catalog database,最好安装在不同的主机上。
1.        在catalog数据库服务器上创建RMAN所需要的表空间
$svrmgrl
         svrmgrl>;connect system/manager
svrmgrl>;create tablespace rman_ts datafile ‘<dir>;/<name>;’
       >;size 100M autoextend on next 100M maxsize 300M;
2.        创建RMAN用户并赋予角色及权限
svrmgrl>;create user rman identified by rman
          >;default tablespace rman_ts
          >;temporary tablespace temporary
          >;quota unlimited on rman_ts;
   svrmgrl>;grant recovery_catalog_owner to rman;
   svrmgrl>;connect / as sysdba;
svrmgrl>;grant dba,connect,resource to rman;
3.        创建recovery catalog的表结构
$rman target internal/oracle@targetSID  rcvcat rman/rman@recoverycatalogSID
rman>;create catalog;
4.        在catalog数据库中对目标数据库进行注册
rman>;register database;
七、        ORACLE数据库的备份
Database备份script:
run {
        allocate channel d1 type 'sbt_tape' connect 'internal/manager@scdb2' parms
'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
        allocate channel d2 type 'sbt_tape' connect 'internal/manager@scdb1' parms
'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
        backup
                   format 'ctl_t%t_s%s_p%p'
                   tag cf
                   (current controlfile);
        backup
                  full
                   filesperset 8
                   format 'db_t%t_s%s_p%p'
           tag fulldb
                   (database);
        release channel d1;
        release channel d2;
}
Archivelog的备份script:
run {
           allocate channel d1 type 'sbt_tape' parms
ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)'
    connect 'internal/manager@scdb1';
           sql 'alter system archive log current';
          backup
            format 'arch_t%t_s%s_p%p'
            (archivelog
            like '/jfbackup/arch_log/arch_1_%.arc'
            delete input);
        release channel d1;
        }
       
run {
           allocate channel d2 type 'sbt_tape' parms
ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)'
    connect 'internal/manager@scdb2';
           sql 'alter system archive log current';
          backup
            format 'arch_t%t_s%s_p%p'
            (archivelog
            like '/jfbackup/arch_log/arch_2_%.arc'
            delete input);
        release channel d2;
        }
        同时还可以对指定的tablespace datafile进行备份,具体请参见RMAN相关手册。
        手工执行ORACLE的备份:
        rman target internal/oracle@targetSID  rcvcat rman/rman@recoverycatalogSID  cmdfile=/xxx/xxx  msglog=xxx.log
八、        ORACLE数据库的恢复
run {
        allocate channel d3 type 'sbt_tape' connect 'internal/manager@scdb1' parms
'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
        allocate channel d4 type 'sbt_tape' connect 'internal/manager@scdb2' parms
'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
        restore controlfile;
        alter database mount;
        restore database;
        recover database;
        release channel d1;
        release channel d2;
        sql "alter database open resetlogs";
        }
九、

论坛徽章:
0
发表于 2003-06-06 21:07 |显示全部楼层

TSM安装手册!

Twelve Steps to Configuring Your Tsm Environment

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.
2、        At the install time you had created default DB and LOG volumes.Now you want to supportment or replace that initial configuration.
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.
B、        Extend the data base to use the newly added space.i.e ext db 100
C、        Add additional LOG volumes,i.e.def logv filename f=volsize Notice:Same rules apply for LOG volumes as DB volumes.
D、        Extend the log to use the newly added space.i.e ext log 100
E、        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 16
3、        Now configure you dsmserv.opt file.Read though the default file.There are serval values you may wish to set or adjust.
A、        Set yout COMMMethods and there related attributes
B、        Set VOLHISTORY and DEVCONFIG,remember make 2 copies
C、        Set EXPInterval 0,this will disable expiration.You will have a admin schedule take care of this
D、        Set various performance releated attributes,i.e. TCPNODELAY,TCPWindowsize,MAXSessions,BUFPoolsize,LOGPoolsize,TXNGroupmax.etc
E、        To use the Web Admin Client set COMMM tcpip,HTTPPort 1580,1580 is the default port number
4、        Now you must defined the Libraries,Drivers and Device Classes your system will use
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
B、        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#
C、        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.
5、        Once we have Device Classes we can create Storage Pools that will use them,also,we must establish or SP hierarchy.
A、        Determine the number of top level pools you will need.They will typically be Disk based SPs
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.
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.
6、        Nextt you right create Policy Domian(s) and right Policy that is reflective of your Service Level Agreement(SLA).
A、        Determine how you will group your manages systems.i.e.1 Policy Domain or several.
B、        Create you policy domain(s).Note:The following steps will be repeated for each Policy domain
ü        def do mydomain
ü        def po mydomain myposet
ü        def mg mydomain myposet mymc Note:Create as many Management Classes as necessary.
ü        def co mydomain myposet mymc standard type=backup…
ü        def co mydomain myposet mymc standard type=archive…
Note:above two lines are optional for any given Management Class
ü        as defmg mgname
ü        val po mydomain myposet
ü        act po mydomain myposet
Note:Each of the above steps have many options,especially the def co commands,so please consult the documentation
7、        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.
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.
B、        Right any other schedules that maybe appropriate for you needs.Note:def sch command has several options,so please consult the documentation.
8、        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”.
A、        migration,reclamation,expiration,DB Backups, SPs      Backups,Clean Volhist, backup Volhist and Devconfig,DRM
B、        Consider the time and order to do these things,in general do one things at a time,backup the DB after large changes
C、        Remember to allow down time in your schedule.That is time when nothing is scheduled,so you can catch up if needed
9、        There are just a few other miscellaneous server function left.
A、        Create your client option sets.these are client options that you are going to override at the server.
ü        Define one or more client option sets.i.e.def clo ntclients
ü        Next define the various options for each client option set.i.e.def cliento ntclients compress no
B、        Add any additional administrators thal you will need,i.e.server admins,help desk workers,operators,etc.
ü        reg admin jradmin jrpasswd
ü        grant auth jradmin…
Note:Consult the documentation for all the extra options.
C、        Label and checkin tape media.For NT,W2K and UNIX you can use the label libvol command.
10、        Now it is time at register you managed system(refereed to as clients).
A、        Things to consider at registration time,what domain and client option set to associate them with.
B、        reg node node_name node_password domain= domain_name clopset=ntclients
C、        This must be done for every managed system,consider scripting it if you have a large number of clients.
D、        You must associate the node with the schedules you would like it to use.i.e.def assoc domain schedule node
Note:You can only associate nodes to schedules within their domain
11、        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.
12、        Once the clients are installed you will need to update the dsm.opt file and the dsm.sys(unix only) file.
A、        Select a(just one)COMMMethod and configure any associated parms for that method,i.e.COMMM tcpip,TCPPort 1500,TCPServer server.dot.decimal.addr
B、        Configure schedule log,error log and their retention time,i.e.SCHEDLOGName dsmsched.log,SCHEDLOGRetention 10,ERRORLOGName dsmerr.log
C、        Set performance related attributes.Consult the documentation for appropriate values for your environment,i.e.TCPB,TCPW,TXNB,etc.
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.
E、        Insure that the dsmc sched program runs either as a service or a daemon when the client is rebooted.
F、        Set passwordaccess generate This will allow the scheduler to authenticate automatically.
G、        Configure the client to be accessed through the web client interface.
ü        This will vary from platform to platform so please consult the Installing the Clients manual.
ü        In general,you will need to have the TSM client acceptor service/daemon running.
ü        TSM Client Acceptor service/daemon is generally started at boot time.
ü        Passwordaccess generate is required in the dsm.opt(dsm.sys for unix) file.

论坛徽章:
0
发表于 2003-06-06 21:09 |显示全部楼层

TSM安装手册!

TSM server安装
步骤一
smit安装所需要的软件包:
        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


步骤二
修改环境变量
        export DSMSERV_DIR=/usr/tivoli/tsm/server/bin
export DSMSERV_CONFIG=/usr/tivoli/tsm/server/bin/dmserv.opt

步骤三
修改dsmserv.opt文件
        解除屏蔽:
                COMMmethod TCPIP
                   COMMmethod HTTP
        添加:
                    TCPPort 1500
HTTPPort 1580

步骤四
建立server的自动运行:
        在TSM server软件包安装完成后,系统自动在inittab中添加了自动运行:
autosrvr:2nce:/usr/tivoli/tsm/server/bin/rc.adsmserv >;/dev/console 2>;&1
        注意:在有HA的情况下,不能使用该方式。

手动运行server:
        dsmserv quiet &


步骤五
修改server名称等属性:
        对象视图->;服务器->;服务器状态
        注意:口令有效期限

步骤六
使用命令行注册license
        reg lic file=[license file] number
        在TSM server安装完成后,在/usr/Tivoli/tsm/server/bin下会产生多个后缀为lic的license
文件,据此注册。

        在本次安装中,使用:
        reg lic file=*.lic number=2


步骤七
格式化DB、LOG和磁盘存储池所需要的空间
例如:
        dsmfmt -m -db /tsmdata/db01.dsm 300
        dsmfmt -m -log /xzbackup/tsmdata/log01.dsm 300
        dsmfmt -m -data /xzbackup /tsmdata/babkvol.dsm 200
        dsmfmt -m -data /xzbackup /tsmdata/baarcvol.dsm 200
        dsmfmt -m -data /xzbackup /tsmdata/tdpbkvol.dsm 200
                                                                                                        `
步骤八
扩展DB和LOG

使用web方式:
object view ->; Database ->; Database Volumes ->; Operations: ->; Define Database Volume

object view ->; Recovery log ->; Recovery log vo.umes ->; Operations: ->; Define Recovery log volume


步骤八
新建babkpool
        baarcpool
        tdpbkpool

Storage Pool Name           
Description          
Media Access Status          
Maximum Size Threshold          
Next Storage Pool          
High Migration Threshold          
Low Migration Threshold          
Cache Migrated Files?          YES  NO
Migration Processes          
Migration Delay          
Migration Continue          YES  NO
Copy Storage Pool(s)          
Continue Copy on Error?          YES  NO
CRC Data          YES  NO
       

步骤九
定义与3583带库有关的对象

3583设备文件名:
库设备为/dev/smc0
        drive为/dev/rmtx
若系统中已经有一个DDS带机(dev/rmt0),那么带库中的第一个drive设备名称
为/dev/rmt1。
                       
使用tapeutil查找3583 drive的element号
        1.# tapeutil
        2. 选:“1. Open a Device”,输入device名称:/dev/smc0
        3.选:“12. Element Information”,便可查找到drive的element号。
一般来说第一个drive的element号为256

定义库
select object view ->; server storage ->; Libraries and Drives ->; Automated Libraries ->; Operations: ->; Define Automated Library
library name :        3583
device:                /dev/smc0

定义驱动器
驱动器一:
select object view ->; server storage ->; Libraries and Drives ->; Automated Drives ->; Operations: ->; Define Automated Drive
        Library Name                         3583
        Drive Name                         3583_drive1
        Device                                 /dev/rmt1
        Element                                 256                ( 256 just for 3583 drive 1, you should find out element information via tapeutil )
        Device On-Line                                                       YES NO
        Cleaning Frequency (Gigabytes/ASNEEDED/NONE)
驱动器二:
define second drive
select object view ->; server storage ->; Libraries and Drives ->; Automated Drives ->; Operations: ->; Define Automated Drive
        Library Name                         3583
        Drive Name                         3583_drive2
        Device                                 /dev/rmt2
        Element                                 257                ( you should find out element information via tapeutil )
        Device On-Line                                                       YES NO
        Cleaning Frequency (Gigabytes/ASNEEDED/NONE)

定义LTO设备类
For 3583:
select object view ->; server storage ->; Device Classes ->; LTO Device Classes ->; Operations: ->; Define Device Class
                     Device Class Name                 3583_Class
                     Recording Format                 Drive
                     Library Name                 3583
                     Mount Limit                         DRIVES
                     Mount Retention                 60
                     Tape Volume Prefix                 ADSM
                     Estimated Capacity                
                     Mount Wait                         60



步骤十
1.        为BA建立策略域
(先用默认值)
badomain
2.        为TDP client建立策略域tdpdomain
注意:TDP client所使用的拷贝副本组属性必须是:
VERDELETED=0
RETONLY=0

为TDP建立策略域、策略集、管理类示例:

tsm: BRAZIL>;def domain api_domain DESC='DO for all DB-Backups'
ANR1500I Policy domain API_DOMAIN defined.
tsm: BRAZIL>;

tsm: BRAZIL>;def policyset api_domain api_policy DESC='PO for all DB Backups'
ANR1510I Policy set API_POLICY defined in policy domain API_DOMAIN.

tsm: BRAZIL>;def mgmtclass api_domain api_policy api_mgmtclass DESC='MC for all DB-Backups'
ANR1520I Management class API_MGMTCLASS defined in policy domain API_DOMAIN, set API_POLICY.
tsm: BRAZIL>;

以下为建立拷贝副本组,需注意选项值:
tsm: BRAZIL>;def copygroup api_domain api_policy api_mgmtclass type=archive DEST=api_disk retver=nolimit
ANR1535I Archive copy group STANDARD defined in policy domain API_DOMAIN, setAPI_POLICY, management class API_MGMTCLASS.

tsm: BRAZIL>;def copygroup api_domain api_policy api_mgmtclass type=backup DEST=api_disk_ vere=1 verd=0 rete=0 reto=0
ANR1530I Backup copy group STANDARD defined in policy domain API_DOMAIN, set
API_POLICY, management class API_MGMTCLASS.



步骤十一
建立include-exclude list
在client的dsm.sys中加入:
1.        domain /home /usr /datasave
当使用命令时dsmc incremental -domain="/fs1 /fs2"将备份domain指定的/home, /usr, /datasave文件系统,以及备份命令中由-domain指定的/fs1和/fs2文件系统

步骤十二
建立调度

        持续时间:5小时
        周期:根据用户需求而定,每隔多长时间务器调度运行一次。

测试调度
        可先调整一个合适的时间测试完成后再调回









B-A安装配置

步骤一.
Smit安装B-A client所需要安装的软件包
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
(api在TDP安装时安装)

步骤二
        修改环境变量
                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端的环境变量:
                        export DSMSERV_DIR=/usr/tivoli/tsm/server/bin
export DSMSERV_CONFIG=/usr/tivoli/tsm/server/bin/dmserv.opt)


步骤三.
需要修改的文件:
dsm.opt文件:
        Servername      tsm

dsm.sys文件:
SErvername                          tsm
           COMMmethod               TCPip
           TCPPort                    1500
           TCPServeraddress           133.54.9.11
           nodename                   client1
passwordaccess             generate
           managedservices                webclient schedule

步骤四
启动dsmcad
        /usr/Tivoli/tsm/client/ba/bin/dsmcad







TDP for Oracle客户端安装
smit安装以下软件包:
tivoli.tsm.client.api.aix43.64bit
tivoli.tsm.client.oracle.64bit
tivoli.tsm.client.oracle.tools.64bit

编辑tdpo.opt文件:
在/usr/tivoli/tsm/client/oracle/bin/目录下新建文件tdpo.opt
***************************************************************************
* Tivoli Storage Manager - Tivoli Data Protection for Oracle
*
* Sample tdpo.opt for the AIX TDP for Oracle
*********************************************************************

DSMI_ORC_CONFIG   /usr/tivoli/tsm/client/api/bin64/dsm.opt
DSMI_LOG           /usr/tivoli/

TDPO_FS            adsmorc
TDPO_NODE          tdpora1
TDPO_OWNER         root
TDPO_PSWDPATH      /usr/tivoli/tsm/client/oracle/bin64

TDPO_DATE_FMT             1
TDPO_NUM_FMT             1
TDPO_TIME_FMT             1

*TDPO_MGMT_CLASS2   mgmtclass2
*TDPO_MGMT_CLASS3   mgmtclass3
*TDPO_MGMT_CLASS4   mgmtclass4

编辑api client的dsm.opt文件
* SErvername       A server name defined in the dsm.sys file
SErvername       tsm

编辑api client的dsm.sys文件

Servername                        tsm
COMMmethode                TCPip
TCPPort                        1500
TCPServeraddress                133.54.9.11
nodename                        tdpora1
PASSWORDAccess        prompt

在TSM server注册api client(tdpora1)

初始化password:
使用tdpoconf password -tdpo_optfile=[TDP for Oracle option文件]
        如果tdpo.opt在默认目录下,该命令可不需要参数
        产生的password文件名为:TDPO.[节点名] (注意大小写)

        该口令与TSM server注册该节点时的口令相同

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

确认安装
1.        显示TDP的环境变量:
tdpoconf showenv
显示:


重新连接oracle备份的库文件
1.        关闭oracle
2.        重新连接库文件:
#rm $ORACLE_HOME/lib/libobk.a
#ln -s /usr/lib/libobk.a $ORACLE_HOME/lib/libobk.a
3.        启动oracle

论坛徽章:
0
发表于 2003-06-08 09:29 |显示全部楼层

TSM安装手册!

这正是我想要的,THX  

论坛徽章:
0
发表于 2003-06-08 11:24 |显示全部楼层

TSM安装手册!

you are great, thanks you so much!

论坛徽章:
0
发表于 2003-06-08 12:12 |显示全部楼层

TSM安装手册!

精典!收藏!

论坛徽章:
0
发表于 2003-06-08 15:19 |显示全部楼层

TSM安装手册!

真的不错!!!

论坛徽章:
0
发表于 2003-06-09 14:24 |显示全部楼层

TSM安装手册!

Thanks!

论坛徽章:
0
发表于 2003-06-09 14:54 |显示全部楼层

TSM安装手册!

太感谢了,我正要去安装!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP