Академический Документы
Профессиональный Документы
Культура Документы
一、TSM 安装规划
H50a: 生产机 1
H50b:生产机 2
磁带机与 h50b 连接
H50b:
arcvol.dsm 512M
dbbak:513M(用于备份 db)**
(磁盘存储池卷应该足够大,至少能容纳客户机一天的备份)
# smitty mklv
Logical volume NAME [tsmlv]
* VOLUME GROUP name [tsmvg]
* Number of LOGICAL PARTITIONS [320]
……
# smitty crjfslvbf
* LOGICAL VOLUME name tsmlv
* MOUNT POINT [/usr/tivoli/tsm]
Mount AUTOMATICALLY at system restart? yes
……
Allocation Group Size (MBytes) 8
# mount /dev/tsmlv
# smitty installp
Install and Update from LATEST Available Software ->
*INPUT device / directory for software -> /dev/cd0(用 F4 进行选择)
*SOFTWARE to install [-all_latest] (用 F4 进行选择)
# cd /usr/tivoli/tsm/server/bin
# dsmserv runfile /usr/tivoli/tsm/server/webimages/dsmserv.idl
安装完成后,运行下述命令确保以下文件集安装:
autosrvr:2:once:/use/tivoli/tsm/server/bin/rc.adsmserv>
/dev/console 2>
&1 #start the Tivoli Storage Manager server
# cd /usr/tivoli/tsm/client/ba/bin
# cp dsm.opt.smp dsm.opt
# cp dsm.sys.smp dsm.sys
2. 编辑该文件使之包含下面列出的选项:
# vi /usr/tivoli/tsm/client/ba/bin/dsm.opt
SErvername tsmserver
TAPEPROMPT yes
# vi /usr/tivoli/tsm/client/ba/bin/dsm.sys
在 dsm.sys 中添加: SErvername tsmserver
COMMmethod TCPip
TCPPort 1500
TCPServeraddress 172.16.18.2
Nodename client
PasswordAccess generate
# mkdir /usr/Tivoli/tsm/tsmdata
# cd /usr/Tivoli/tsm/tsmdata
# dsmfmt -db db01.dsm 513
# dsmfmt -log log01.dsm 513
# dsmfmt -data bkvol.dsm 2047
# dsmfmt -data arcvol.dsm 513
# dsmadmc
TSM> register license file=*.lic
4. 在 PC 计算机的浏览器中输入:http://172.16.18.2:1580/,输入管理员的用户名和密码后,
从 Web 界面来配置 TSM 服务器。在使用 Web 管理界面时确保服务器选项文
件/usr/tivoli/tsm/server/bin/dsmserv.opt 中包含如下行:
COMMethod HTTP
HTTPPOrt 1580
# smit installp
Install and Update from LATEST Available Software ->
INPUT device / directory for software -> /dev/cd0
* INPUT device / directory for software /tmp
* SOFTWARE to install [Atape ]
PREVIEW only? (install operation will NOT occur) no
COMMIT software updates? yes
SAVE replaced files? yes
Process multiple volumes? yes
……
# smit dev
Tape Drive ->
Add a Tape Drive ->(如何没有安装 3570 驱动程序,就没有 3570 的选项)
"3570 scsi IBM Magstar MP Tape Subsystem"-->
"scsi1 Available 10-70 Wide SCSI I/O Controller"-->
Tape Drive type 3570
Tape Drive interface scsi
Description IBM Magstar MP Tape Subsystem
Parent adapter scsi1
* CONNECTION address [1,0]
……
注:CONNECTION address:第 1 SCSI 标识:SCSI ID
第 2 SCSI 逻辑单元号:(lun)
如果看到"rmt1 Available"消息就表示配置完成了。rmt1 表示 TSM 使用的特殊文件名。
# cfgmgr
# ls -l /dev/rmt1.smc
四、标记磁带卷并检入库
所有的磁带卷在 TSM 使用前都必须标记,只有标记过的磁带卷才能由库进行管理。为确保下列
命令顺利执行,在操作面板上选择"SET LIBR MODE"->"Random"->"Cancel"。
1. 执行以下命令标记磁带卷:
# cd /usr/tivoli/tsm/server/bin
注意:Picker(拣选器)将装入可用的磁带卷,然后提示管理员一个一个的输入卷标名。卷标
名在 1-6 个字符之间,可自行定义。这里定义为 tape01-tape10。
2. 当磁带卷全部标记完后,再将磁带卷检入库:
# dsmadmc
注意:该命令将磁带卷定义为临时卷。
4. 可以检入一个指定磁带进库
前台运行 # cd /usr/tivoli/tsm/server/bin
#dsmserv
checkout 多个磁带
直接取出整个磁带架,把磁带取出,插入空磁带架,发出命令:
五、测试
从备份客户机进行
从命令行执行下列命令:
# cd /usr/tivoli/tsm/server/bin
# dsmc
Tivoli Storage Manager
Command Line Backup Client Interface - Version 3, Release 7, Level 0.0
(C) Copyright IBM Corporation, 1990, 1999, All Rights Reserved.
TSM> incr /tmp
Node Name: CLIENT
Please enter your user id <CLIENT>:
Please enter password for user id "CLIENT": client
Incremental 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: 531
Total number of objects backed up: 34
Total number of objects updated: 0
Total number of objects rebound: 0
Total number of objects deleted: 4
Total number of objects failed: 0
Total number of bytes transferred: 2.17 MB
Data transfer time: 0.48 sec
Network data transfer rate: 4,636.25 KB/sec
Aggregate data transfer rate: 717.28 KB/sec
Objects compressed by: 0%
Elapsed processing time: 00:00:03
TSM>
看到输出的信息类似于上述文本,就表示备份成功。
安装配置要点
◆ 编辑 tdpo.opt 文件
注意:该客户机节点的属性必须是:BACKDELETE=YES
tdpoconf showenv
步骤实施
# smitty installp
tivoli.tsm.client.oracle.32bit
tivoli.tsm.client.oracle.tools.32bit
tivoli.tsm.client.api.32bit
***************************************************************
* Tivoli Data Protection for Oracle Utility *
* Password file initialization/update program *
* ROOT privilege needed to update value *
***************************************************************
Please enter current password: tdp_h50b
Please 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 showenv
TDP FOR ORACLE INFORMATION
Version: 2
Release: 2
Level: 0
Sublevel: 0
Platform: TDP Oracle AIX
TSM SERVER INFORMATION
Server Name: TDP_H50B
Server Address: 172.16.18.2
Server Type: AIX-RS/6000
Server Port: 1500
Communication Method: TCP/IP
SESSION 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: FALSE
POLICY DATA
Domain Name: STANDARD
Management Class: STANDARD
Active Policy Set: STANDARD
Backup Retention: 30
#
1、 创建卷组 tsmvg(A 机整个 hdisk1 本地硬盘作为 tsmvg)-à 激活卷组 tsmvg :varyon
tsmvg-à 在 tsmvg 上建立逻辑卷 tsmlv,大小为 320LP(320*16M=5G),然后在 tsmlv 上建立文件系
统/usr/tivoli/tsm;
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.opt
DSMI_LOG c:\tivoli\tsm\agentoba
TDPO_AVG_SIZE 2000
TDPO_FS \adsmorc
TDPO_NUM_BUFFERS 2
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 showenv
TDP FOR ORACLE INFORMATION
Version: 2
Release: 2
Level: 0
Sublevel: 0
Platform: TDP Oracle NT
TSM SERVER INFORMATION
Server Name: DSMSERV
Server Address: 172.16.18.2
Server Type: AIX-RS/6000
Server Port: 1500
Communication Method: TCP/IP
SESSION 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: FALSE
POLICY DATA
Domain Name: STANDARD
Management Class: STANDARD
Active Policy Set: STANDARD
Backup Retention: 30
C:\Tivoli\TSM\AgentOBA>
至此,安装配置全部完毕。