<%@ page contentType="text/html; charset=gb2312"%> tsmserver,client,tdpo安装配置手记(2)
网站公告:   ◆北天JAVA技术网热情为java爱好者服务,本网内容包括JAVA(JSP、servlet、EJB、webservice、j2ee、javabean、应用服务器、JavaScript),数据库(MYSQL、SQL Server、Sybase、Oracle、DB2、数据库综合知识),设计研究(设计模式、Struts、Spring、Hibernate、设计框架、设计综合知识),WEB2.0新技术(主要介绍AJAX),以及各种技术的入门、实例、例子等等,欢迎各位多来坐坐!◆  诚邀各位JAVA爱好者加盟!◆  本网站内容丰富,更新快,保证每周20篇以上!  
加入收藏
设为首页
联系站长
承接项目
  相关资源:网站首页 | 免费培训学院 | 技术论坛 | JAVA聊天室 | 作家专栏 | 开发工具 | 认证考试 | 会员俱乐部
  JAVA技术初学者园地 | jsp与servlet | javascript | Java源代码 | EJB | web service | 应用服务器 | JAVA综合知识
  设计研究设计模式 | 设计框架 | Struts | Spring | Hibernate | 开源项目 | 面向对象设计 | 设计综合知识
  数 据 库MYSQL | SQL Server | Sybase | Oracle | DB2 | Informix | Access | 数据库综合知识
  其他资源:AJAX新技术 | 网站开发 | ERP软件 | OA办公软件 | 商业智能BI | 开发综合知识 | 承接项目 | 项目试用

 
 
tsmserver,client,tdpo安装配置手记(2)
     发布者: 发布时间:2006-05-07
四、标记磁带卷并检入库

  所有的磁带卷在tsm使用前都必须标记,只有标记过的磁带卷才能由库进行管理。为确保下列命令顺利执行,在操作面板上选择"set libr mode"->"random"->"cancel"。

  1. 执行以下命令标记磁带卷:

  # cd /usr/tivoli/tsm/server/bin

  # ./dsmlabel -drive=/dev/rmt1,16 -library=/dev/rmt1.smc -search -keep [-overwrite]

  注意:picker(拣选器)将装入可用的磁带卷,然后提示管理员一个一个的输入卷标名。卷标名在1-6个字符之间,可自行定义。这里定义为tape01-tape10。

  2. 当磁带卷全部标记完后,再将磁带卷检入库:

  # dsmadmc

  # tsm> checkin libvolume 3570lib search=yes status=scratch devtype=3570

  注意:该命令将磁带卷定义为临时卷。

  3. 将磁带卷tape01定义为3570lib的专用卷:

  tsm> define volume 3570pool tape01

  注意:磁带卷tape01成为专用卷,就是说tape01属于存储池。如果要定义专用卷,参数"maximum scratch volumes allowed"必需大于0。至此,tsm的安装全部完成。

  4. 可以检入一个指定磁带进库

  前台运行 # cd /usr/tivoli/tsm/server/bin

#dsmserv

  首先,checkin之前,3570上必须有空槽,若没有,先checkout一磁带。

  tsm> checkin libv 3570lib tapexx status=scratch(数据带时为private)

  把磁带放入31槽中,根据提示,执行reply pp命令,系统自动把此磁带移入3570的空槽中,并记录在案。

  5. checkout一个指定磁带

  tsm>checkout libv 3570lib tapexx

  系统会自动取出指定磁带,移到3570的31槽,应及时取走,并根据提示执行reply pp命令,向系统确认已经取走磁带。

  checkout多个磁带

  直接取出整个磁带架,把磁带取出,插入空磁带架,发出命令:

  tsm>audit library 3570lib

  6. 将新磁带添加到storage pool中:

  tsm>defi volume 3570pool tape02

  五、测试

  从备份客户机进行

  从命令行执行下列命令:

# cd /usr/tivoli/tsm/server/bin# dsmctivoli storage managercommand line backup client interface - version 3, release 7, level 0.0(c) copyright ibm corporation, 1990, 1999, all rights reserved.tsm> incr /tmpnode name: clientplease enter your user id <client>:please enter password for user id "client": clientincremental backup of volume ''/tmp''directory ->	512	/tmp/ibm	[sent]normal file ->	59,101	/tmp/.oslevel.mlinfo.cache	[sent]normal file ->	155	/tmp/.toc	[sent]normal file ->	1,143,969	/tmp/55324085.dbb	[sent]……successful incremental backup of ''/tmp''total number of objects inspected:		531total number of objects backed up:		34total number of objects updated:		0total number of objects rebound:		0total number of objects deleted:		4total number of objects failed:			0total number of bytes transferred:		2.17 mbdata transfer time:				0.48 secnetwork data transfer rate:			4,636.25 kb/secaggregate data transfer rate:			717.28 kb/secobjects compressed by:				0%elapsed processing time:			00:00:03tsm>


  看到输出的信息类似于上述文本,就表示备份成功。

  六、tdp for oracle on aix 32-bit安装及配置

  安装配置要点

  ◆ smit安装软件包:

  ◆ 编辑tdpo.opt文件

  ◆ 编辑api client的dsm.opt文件

  ◆ 编辑api client的dsm.sys文件

  ◆ 在tsm server注册api client(tdp_h50b)

  注意:该客户机节点的属性必须是:backdelete=yes

  ◆ 初始化password:

  ◆ 确认安装:显示tdp的环境变量:

  tdpoconf showenv

  ◆ 重新连接oracle备份的库文件

  步骤实施

  1、 h50b机器上,安装点与tsm相同(/usr/tivoli/tsm)

  2、 将tdp for oracle光盘放入光驱以root用户身份执行命令:

# smitty installptivoli.tsm.client.oracle.32bit tivoli.tsm.client.oracle.tools.32bit tivoli.tsm.client.api.32bit


  只安装tdp for oracle on aix 32-bit的文件集。

  3、 #su - oracle

  shutdown oracle  $cd $oracle_home/lib  $mv libobk.a libobk.a.03_24(移去此文件)   $ cd $oracle_home/rdbms/lib   $ make -f ins_rdbms.mk llibmm=/usr/lib/libobk.a ioracle  - linking oracle ld -l/user/oracle/app/oracle/product/8.0.5/lib/  -l/user/oracle/app/oracle/product/8.0.5/rdbms/lib  -o /user/oracle/app/oracle/product/8.0.5/rdbms/lib/oracle  -bi:/user/oracle/app/oracle/product/8.0.5/lib/pw-syscall.exp  -bi:/user/oracle/app/oracle/product/8.0.5/lib/ksms.imp  /user/oracle/app/oracle/product/8.0.5/rdbms/lib/opimai.o  /user/oracle/app/oracle/product/8.0.5/rdbms/lib/ssoraed.o  /user/oracle/app/oracle/product/8.0.5/rdbms/lib/ttcsoi.o  /user/oracle/app/oracle/product/8.0.5/rdbms/lib/config.o  -lserver -lclient -lvsn -lcommon -lgeneric  /user/oracle/app/oracle/product/8.0.5/rdbms/lib/defopt.o  /user/oracle/app/oracle/product/8.0.5/lib/ncrstab.o  -lknlopt -lslax -lplsf -lplsb -lextp -lserver -lclient -lvsn  -lcommon -lgeneric -lknlopt -lslax -lplsf -lplsb -lextp -ldbicx  /user/oracle/app/oracle/product/8.0.5/lib/nautab.o  /user/oracle/app/oracle/product/8.0.5/lib/naeet.o  /user/oracle/app/oracle/product/8.0.5/lib/naect.o  /user/oracle/app/oracle/product/8.0.5/lib/naedhs.o  -lnetv2 -lnttcp -lnetwork -lncr -lnetv2  -lnttcp -lnetwork -lclient -lvsn -lcommon -lgeneric  /usr/lib/libobk.a -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3  -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork  -lclient -lvsn -lcommon -lgeneric -lepc -lnlsrtl3 -lcore4 -lnlsrtl3  -lcore4 -lnlsrtl3 -lclient -lvsn -lcommon -lgeneric -lnlsrtl3  -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lld -lm  /lib/crt0_r.o -lc_r -lpthreads -lodm -lm -lm  /user/oracle/app/oracle/product/8.0.5/rdbms/lib/skgxns.o  -lkidt -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lld -lm  /lib/crt0_r.o -lc_r -lpthreads -lodm -lm -lm  mv -f /user/oracle/app/oracle/product/8.0.5/bin/oracle  /user/oracle/app/oracle/product/8.0.5/bin/oracleo        mv oracle /user/oracle/app/oracle/product/8.0.5/bin/oracle        chmod 6751 /user/oracle/app/oracle/product/8.0.5/bin/oracle  $startup oracle         $exit


  4、 #cd /usr/tivoli/tsm/client/api/bin

  5、 cp dsm.opt.smp dsm.opt

#vi dsm.optservername       tsmserver    tapeprompt    yes# cp dsm.sys.smp dsm.sys#vi dsm.sysservername  tsmserver    commmethod         tcpip   tcpport               1500   tcpserveraddress        172.16.18.2    nodename              tdp_h50b   passwordaccess        prompt


  6、 #cd /usr/tivoli/tsm/client/oracle/bin

#cp tdpo.opt.smp tdpo.opt#vi tdpo.optdsmi_log                /tmpdsmi_orc_config         /usr/tivoli/tsm/client/oracle/bin/dsm.opttdpo_fs                  adsmorc tdpo_node               tdp_h50btdpo_owner              oracletdpo_pswdpath           /usr/tivoli/tsm/client/oracle/bin tdpo_avg_size           1500tdpo_num_buffers        2# vi dsm.opttapeprompt      yes


  7、 # ./tdpoconf password

****************************************************************       tivoli data protection for oracle utility             **  password file initialization/update program                **     root privilege needed to update value                   ****************************************************************please enter current password: tdp_h50bplease enter new password:*******please reenter new password for verification:anu0260i password successfully changed.## ls -la tdpo.*-rw-r--r--   1 root     sys  48 mar 25 14:06 tdpo.tdp_h50b# ./tdpoconf showenvtdp for oracle information  version:              2  release:              2  level:                0  sublevel:             0  platform:             tdp oracle aixtsm server information  server name:          tdp_h50b  server address:       172.16.18.2  server type:          aix-rs/6000  server port:          1500  communication method: tcp/ipsession information  owner name:           oracle  node name:            tdp_h50b  node type:            tdp oracle aix  dsmi_dir:             /usr/tivoli/tsm/client/api/bin  dsmi_orc_config:      /usr/tivoli/tsm/client/oracle/bin/dsm.opt  tdpo_optfile:         /usr/tivoli/tsm/client/oracle/bin/tdpo.opt  password directory:   /usr/tivoli/tsm/client/oracle/bin  compression:          falsepolicy data  domain name:          standard  management class:     standard  active policy set:    standard  backup retention:     30#


  h50a机器:安装tdp for oracle和tsm client。

  1、 创建卷组tsmvg(a机整个hdisk1本地硬盘作为tsmvg)-à激活卷组tsmvg :varyon tsmvg-à在tsmvg上建立逻辑卷tsmlv,大小为320lp(320*16m=5g),然后在tsmlv上建立文件系统/usr/tivoli/tsm;

  2、 与b机安装相似,将tdp for oracle光盘放入光驱以root用户身份安装在此安装点上(/usr/tivoli/tsm)。

  3、 在h50a对节点tdp_h50a

  七、tdp for oracle 在win2k安装配置

  1、 将tdp for oracle光盘放入光驱以administrator用户身份执行安装。安装目录:

c:\tivoli\tsm。(测试机器 xxb_chh,os为win2k,oracle为817)。安装完毕重启计算机。

  2、 进入c:\tivoli\tsm\agentoba>目录,配置编辑tdpo.opt及dsm.opt文件:

  dsm.opt内容:

commmethod tcpip

tcpport 1500

tcpserveraddress 172.16.18.2

nodename ora817

passwordaccess generate

  tdpo.opt内容:

*************************************************************  sample options file for tivoli data protection for oracle************************************************************dsmi_orc_config    c:\tivoli\tsm\agentoba\dsm.optdsmi_log           c:\tivoli\tsm\agentobatdpo_avg_size      2000tdpo_fs            \adsmorctdpo_num_buffers   2


  3、 initializing the password:

c:\tivoli\tsm\agentoba>tdpoconf password****************************************************************       tivoli data protection for oracle utility             **  password file initialization/update program                ****************************************************************please enter current password:******please enter new password:******please reenter new password for verification:******anu0260i password successfully changed.c:\tivoli\tsm\agentoba>


  4、 显示环境配置:

c:\tivoli\tsm\agentoba>tdpoconf showenvtdp for oracle information  version:              2  release:              2  level:                0  sublevel:             0  platform:             tdp oracle nttsm server information  server name:          dsmserv  server address:       172.16.18.2  server type:          aix-rs/6000  server port:          1500  communication method: tcp/ipsession information  owner name:  node name:            ora817  node type:            tdp oracle nt  dsmi_dir:             c:\tivoli\tsm\api  dsmi_orc_config:      c:\tivoli\tsm\agentoba\dsm.opt  tdpo_optfile:         c:\tivoli\tsm\agentoba\tdpo.opt  password directory:  compression:          falsepolicy data  domain name:          standard  management class:     standard  active policy set:    standard  backup retention:     30c:\tivoli\tsm\agentoba>


  至此,安装配置全部完毕。

  对需要作冷备份的(shutdown 数据库,即直接备份文件系统的)和利用client的schedule进行定时在线备份的,请再安装tsm的client端。client有平台之分,tdp for oracle没有平台之分。

(转载文章请保留出处:北天JAVA技术网(www.java114.com))
 
更多精彩文章:
用linux完成oracle自动物理备份
在oracle里用存储过程定期分割表
在oracle里设置访问多个sqlserver
oracle10g数据库的创建
oracle的入门心得之一
oracle入门心得之二
 
最近评论:
        
你曾悄悄的来过!
wow gold,wow gold,wow gold,ffxi gil max(4141)
        
冰封的往事!
wow power leveling,wow gold,wow power leveling,wow gold max(6740)
        
冰封的往事!
wow power leveling,wow gold,WoW Gold,wow gold max(9054)
        
标 题:   
内 容:   
 
                                  
 
免责声明:该文章由网友发表,如果对您造成侵权,请联系站长

首页 - 承接项目 - 网站地图 - 联系我们 -
版权所有北天JAVA技术工作室 ICP证号:粤ICP备06079815号