目的:对TSM软件,包括TSM SERVER,CLIENT,TDPO进行全新安装,并对操作系统数据和ORcle数据库进行备份和恢复测试。
http://pic.dhe.ibm.com/infocenter/tsminfo/v6r2/index.jsp
http://www.ibm.com/developerworks/wikis/display/tivolidoccentral/Tivoli+Storage+Manager
TSM Update / Patch
- ftp://index.storsys.ibm.com/tivoli-s...ement/patches/
- ftp://ftp.software.ibm.com/storage/t...ge-management/
- ftp://service.boulder.ibm.com/storag...ge-management/
TSM Device Drivers
- ftp://ftp.software.ibm.com/storage/devdrvr/
TSM 原理和配置实现
http://www.ixdba.net/article/c2/1483$6.html
驱动下载地址和方法
Device Driver:
-
- The IBM device driver is required for IBM Ultrium 5 drives. IBM device drivers are available atIBM Fix Central. Choose the following options from the drop-down menus.
- Product Group -> System Storage
- System Storage -> Tape systems
- Tape systems -> Tape drivers and software
- Tape drivers and software -> Tape device drivers
- Platform -> select the platform for the device driver that you are looking for.
-
- For Dell PowerVault LTO5-140 drives, the device driver can be downloaded from the Dell web site.
- http://www-933.ibm.com/support/fixcentral/
准备条件:一台VM虚拟机安装RedHat5.5,Oracle10GR2,TSM Server5.5.5; TSM Client5.5.4;TDPO5.4;vistor虚拟带库
安装步骤:现在VM中安装Oracle10GR2,再装visrot虚拟带库,TSMserver,CLIENT,TDPO
参考:余东东写的tsm5.3安装文档和vistor虚拟带库安装文档。安装过程中也得到了冬瓜老师的指点。
介质下载地址:
Vistor虚拟带库 http://www.cofio.com/AIMstorDownload/#FreeTrial 注册后下载8M的VISTOR虚拟带库介质
默认下载可试用45天
TSM的server,client,tdpo下载地址:
ftp://ftp.software.ibm.com/storage/tivoli-storage-management/maintenance/
默认下载可试用30天,不能用于生产,却LIC文件。
TSM 的安装
TSM 安装
安装文档参考冬瓜老师的:http://bbs.chinaunix.net/thread-1056862-1-2.html
一 Vistor安装注意事项:
tar xzvf vistor.tgz,运行./Vs-dist进行安装。在Vistor安装中,选择一个磁带机的类型,要选择了10,HP 的LTO2,选择别的类型可能认不到,要重装。
Vistor注册步骤
1.获取机器码:
[root@oracle vistor]# pwd
/usr/cofio/vistor
[root@oracle vistor]# ./vs-license -i
FJ-PJKOOJ-SMN24G-EFJ33Y-DISS2X
2.去官网选择Product Lisences获得试用码
3.注册之
[root@oracle vistor]# ./vs-license -s 'A9SQMABSQC8XKZ9LWDLA4S28CDYK2POU'
UnRegistered
4.注册完成后,来验证一下,看看注册是否成功:
[root@oracle vistor]# ./vs-license -d
License type : Evaluation
Time remaining : 42 days
Storage capacity: 500GB
注册成功,可以使用42 天,最大容量不超过500GB。
5.启动vistor:
[root@oracle vistor]# ./vistor
6.用WEB方式查看
http://your linux server ip:5050
7.在web控制界面里面还要启动虚拟带库。光启动vistor是不行的、
验证TSM和VISTOR是否正确识别并运行
1. 检测是否在linux系统中能认到:
{root@oracle vistor]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: VMware, Model: VMware Virtual S Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: VMware, Model: VMware Virtual S Rev: 1.0
如果没有显示,说明没有认到。需要到WEB界面下选择RUN的启动按钮。
2. 安装IBM 的驱动 (这个是冬瓜老师写的,但是我在LINUX5.5中发现不用装这个驱动包也可以安装成功的)
在安装TSM server 的时候,有个TIVsm–tsmscsi–5.5.0-0-i386.rpm 的包,这个包必须安装,装
完后,在/opt/Tivoli/tsm/下面,会有devices 目录。进去后,有下面这些东西。
[root@oracle bin]# ls
README.htm kill.acs_ssi local_device mttest rc.acs_ssi t_parent
autoconf lb.conf.smp mini_el op.conf.smp sg_device trace_decode
ddinfo lbtest mt.conf.smp optest ssi tsmscsi
[root@oracle bin]# pwd
3. /opt/tivoli/tsm/devices/bin运行./autoconf , 来配置磁带库以及磁带机, 这里会做一系列的动作, 生成
/dev/tsmscsi/mt* /dev/tsmscsi/lb* 这些链接之类的东西:
[root@oracle bin]# ls -l /dev/tsmscsi/
total 8
lrwxrwxrwx 1 root root 8 May 6 02:48 lb0 -> /dev/sg3
-rw-r--r-- 1 root root 181 May 6 02:48 lbinfo
lrwxrwxrwx 1 root root 8 May 6 02:48 mt0 -> /dev/sg4
lrwxrwxrwx 1 root root 8 May 6 02:48 mt1 -> /dev/sg5
lrwxrwxrwx 1 root root 8 May 6 02:48 mt2 -> /dev/sg6
lrwxrwxrwx 1 root root 8 May 6 02:48 mt3 -> /dev/sg7
-rw-r--r-- 1 root root 442 May 6 02:48 mtinfo
如果在这一步,发现没有如上的这些东西,或者只有lb,那么最好重新装vistor,选择其
他类型的磁带臂或者驱动器。
如果这一步成功,那么就说明TSM 可以认得到vistor 虚拟出来的机械臂及驱动器了。
ls /dev/tsmscsi
4. TSM 中配置vistor 磁带库中的设备 (其实主要是为了查看虚拟带库的element值,正常带库是不用写这个参数的)
进入/opt/tivoli/tsm/client/ba/bin,运行dsmadmc –con,开一个消息输出控制台。
再运行dsmadmc,开一个命令行控制台,
使用如下命令,定义一个设备类,一个库,四个驱动器,以及对应的路径:
DEFINE LIBRARY LIBRARY1 LIBTYPE=SCSI
定义一个库,库类型SCSI,库名称library1.
DEFINE PATH DONGGUA-TSM LIBRARY1 SRCTYPE=SERVER DESTTYPE=LIBRARY DEVICE=/dev/tsmscsi/lb0 ONLINE=YES
定义这个库的路径,这里的DEVICE,使用/dev/tsmscsi/下面的lb0.不要使用/dev/sg3。
DEFINE DRIVE LIBRARY1 DRIVE0 ELEMENT=2051
DEFINE DRIVE LIBRARY1 DRIVE1 ELEMENT=2052
DEFINE DRIVE LIBRARY1 DRIVE2 ELEMENT=2053
DEFINE DRIVE LIBRARY1 DRIVE3 ELEMENT=2054
定义四个驱动器,这里面的element 参数很麻烦,这个参数,有的库里面可以自动获取到,定义的时候就不需要这个参数
了,但我选的这些虚拟设备,自动获取不到,就需要我去寻找了,使用如下方法来获取element 的值:
[root@oracle bin]# pwd
/opt/tivoli/tsm/client/ba/bin
[root@oracle bin]# dsmadmc
ANS0102W Unable to open the message repository /opt/tivoli/tsm/client/ba/bin/zh_EN/dsmclientV3.cat. The American English
repository will be used instead.
IBM Tivoli Storage Manager
Command Line Administrative Interface - Version 5, Release 5, Level 0.0
(c) Copyright by IBM Corporation and other(s) 1990, 2007. All Rights Reserved.
Enter your user id: admin
ANR0407I Session 61 started for administrator ADMIN (Linux86) (Tcp/Ip 192.168.72.130(57420)).
Enter your password:
Session established with server DONGGUA-TSM: Linux/i386
Server Version 5, Release 5, Level 4.0
Server date/time: 05/06/10 05:13:21 Last access: 05/06/10 04:24:17
tsm: DONGGUA-TSM>show slots library1
ANR2017I Administrator ADMIN issued command: show slots library1
PVR slot information for library LIBRARY1.
Library : LIBRARY1
Product Id : Scalar i500
Support module : 2
Mount count : 0
Drives : 4
Slots : 32
Changers : 1
Import/Exports : 0
Device : /dev/tsmscsi/lb0
Drive 0, element 2051
Drive 1, element 2052
Drive 2, element 2053
Drive 3, element 2054
Changer 0, element 0
Slot 0, status Allocated, element number 1, barcode present, barcode value <AD0001>, devT=ANY, mediaT=-1, elemT=ANY
Slot 1, status Allocated, element number 2, barcode present, barcode value <AD0002>, devT=ANY, mediaT=-1, elemT=ANY
Slot 2, status Allocated, element number 3, barcode present, barcode value <AD0003>, devT=ANY, mediaT=-1, elemT=ANY
Slot 3, status Allocated, element number 4, barcode present, barcode value <AD0004>, devT=ANY, mediaT=-1, elemT=ANY
slot element range 1 – 32
上面红色标注的那一块,很清楚的显示了element 的值。
****这种方法,需要先定义好库,也就是机械臂,然后才能查到库
二 TSM Server安装:
配置环境变量
.bash_profile
export DSMSERV_DIR=/opt/tivoli/tsm/server/bin
export DSMSERV_CONFIG=/opt/tivoli/tsm/server/bin/dsmserv.opt
自动启动/etc/rc.local
vi /etc/rc.local
/opt/tivoli/tsm/server/bin/dsmserv &
三 TSM Client安装:
1.压缩包安装顺序
cd tsm-client/
tar -xvf 5.5.4.0-TIV-TSMBAC-LinuxX86.tar
rpm -ivh TIVsm-API.i386.rpm
rpm -ivh TIVsm-BA.i386.rpm
四 TSM TDBO安装:
1.TSM安装TDPO的时候,要配置JAVA的环境变量。否则会报一个
Caused by: java.lang.IncompatibleClassChangeError: ZeroGrh的错误。
vi /etc/profile加入以下内容就可以了
export JAVA_HOME=/oracle/product/10.2.0/db_1/jdk
export JRE_HOME=/oracle/product/10.2.0/db_1/jdk/jre
export PATH=$PATH:/oracle/product/10.2.0/db_1/jdk/bin
export CLASSPATH=./:/oracle/product/10.2.0/db_1/jdk/lib:/oracle/product/10.2.0/db_1/jdk/jre/lib
2.安装完成后要设置一个软连接(不同的UNIX系统中的软连接的文件不同,具体查看这个http://publib.boulder.ibm.com/tividd/td/ITSMFD/SC32-9064-01/zh_CN/HTML/ab5u000150.htm)
/usr/lib/libobk.so (这个是LINUX中的软连接软件)
ln -s /usr/lib/libobk.so $ORACLE_HOME/lib/libobk.so
五 Server中设备类定义:
1.定义机械手
def libr library1 libtype=scsi
def path server1 library1 srct=server destt=library device=/dev/tsmscsi/lb0
upd libr library1 autolabel=yes
2.定义驱动(我安装虚拟带库的时候定义了4个驱动,一般两个的比较多吧)
def drive library1 drive0 element=2051
def drive library1 drive0 element=2052
def drive library1 drive0 element=2053
def drive library1 drive0 element=2054
(ls /dev/tsmscsi/)
def path server1 drive0 srct=server destt=drive libr=library1 device=/dev/tsmscsi/mt0
def path server1 drive1 srct=server destt=drive libr=library1 device=/dev/tsmscsi/mt1
def path server1 drive2 srct=server destt=drive libr=library1 device=/dev/tsmscsi/mt2
def path server1 drive3 srct=server destt=drive libr=library1 device=/dev/tsmscsi/mt3
3.定义库
def dev library1 devt=lto format=ultrium2c libr=library1
ANR2203I Device class LIBRARY1 defined
4.定义存储池
def stgpool mapool library1 maxscratch=2
5.checkin & label磁带
label libv library1 search=yes voll=ad0005,ad0006,ad0007 labels=barcode checkin=scr overwrite=yes waitt=0
ANR2017I Administrator ADMIN issued command: LABEL LIBVOLUME library1 search=yes voll=ad0005,ad0006,ad0007 labels=b
checkin=scr overwrite=yes waitt=0
ANR0984I Process 41 for LABEL LIBVOLUME started in the BACKGROUND at 05:48:25 AM.
ANR8799I LABEL LIBVOLUME: Operation for library LIBRARY1 started as process 41.ANS8003I Process number 41 started.
ANR8810I Volume AD0005 has been labeled in library LIBRARY1.
ANR8810I Volume AD0006 has been labeled in library LIBRARY1.
ANR8810I Volume AD0007 has been labeled in library LIBRARY1.
ANR8801I LABEL LIBVOLUME process 41 for library LIBRARY1 completed; 3 volume(s)labeled, 3 volume(s) checked-in.
ANR0985I Process 41 for LABEL LIBVOLUME running in the BACKGROUND completed with completion state SUCCESS at 05:48:25
AM.
这里采用搜索的方法,以barcode 来搜索ad0005,ad0006,ad0007 三盘磁带,并label 它们,然后检入到磁带库,使之成为
临时卷,不等待管理员放入磁带,直接开始。
这里适合磁带已经在磁带库里面的情况,就不需要发出reply 这个命令了,所以waittime 设置为0.
这里的search 设置为yes,而不是bulk 是有原因的,当设置为yes 时,会在磁带库里面查找磁带,设置为bulk 时,会在磁
带库的IO 仓里面查找磁带。我虚拟出来的磁带库没有IO 仓,所以用YES 这个参数了。
使用checkin=scr 参数,可以在label 之后,直接把磁带检入到磁带库,省一步动作
6.注册一个客户端
reg node masicong masicong
未完待续 ... 有问题可以加我QQ 308403756 大家一起讨论下