存储 频道

征文:TSM V5.1+IBM 3582带库+AIX案例

  【IT168 资讯】本文是实施的一个项目的TSM部分的实施文档,如有不正之处,请指正。

  IBM 3582 L23 安装环境

一:安装环境

  1:IBM 3582 L23安装的硬件环境如下:
  IBM P670, 操作系统为AIX 5.2,安装了光纤通道卡(HBA)6239
  LTO 磁带机,3582-L23

  2:软件环境
oslevel: 5.2.0.0
Maintenance level(instfix -ik |grep ML)
# instfix -ik |grep ML
instfix: A flag requires a parameter: k
All filesets for 5.0.0.0_AIX_ML were found.
All filesets for 5.1.0.0_AIX_ML were found.
All filesets for 5.1.0.0_AIX_ML were found.
All filesets for 5100-01_AIX_ML were found.
All filesets for 5100-02_AIX_ML were found.
All filesets for 5100-03_AIX_ML were found.
All filesets for 5100-04_AIX_ML were found.

  3:硬件环境
lsdev –Cc adapter 查看系统HBA卡.名字为fcsX.
6239 HBA 卡的微码版本应高于HS1.81X1
lscfg -vl fcs0
Where X is the number of the adapter returned by the previous lsdev command.
The Command will produce output similar to
DEVICE LOCATION DESCRIPTION
fcs0 3F-08 FC Adapter
Part Number.................00P4295
EC Level....................A
Serial Number...............1A31600450
Manufacturer................001A
FRU Number.................. 00P4297
Device Specific.(ZM)........3
Network Address.............10000000C9332A79
ROS Level and ID............02E01871
Device Specific.(Z0)........2003806D
Device Specific.(Z1)........00000000
Device Specific.(Z2)........00000000
Device Specific.(Z3)........03000909
Device Specific.(Z4)........FF601032
Device Specific.(Z5)........02E01871
Device Specific.(Z6)........06631871
Device Specific.(Z7)........07631871
Device Specific.(Z8)........20000000C9332A79
Device Specific.(Z9)........HS1.81X1
Device Specific.(ZA)........H1D1.81X1
Device Specific.(ZB)........H2D1.81X1
Device Specific.(YL)........U1.9-P2-I1/Q1

在AIX下通过光纤连接LTO 3582磁带库

  安装前,请确认LTO 3582与主机HBA卡已经正确连接,详细的连接方法请参考随机附带的光盘.

  1.从以下的网站下载LTO 3582的驱动程序,并将其拷贝到/tmp目录下。
ftp://ftp.software.ibm.com/storage/devdrvr/AIX/
阅读Readme文件:
ftp://ftp.software.ibm.com/storage/devdrvr/AIX/README

  2.运行installp命令安装Atape驱动。
# installp -axXd /tmp/ Atape.9.2.6.0.bin Atape.driver
# installp –axXd /tmp/ atldd.6.1.5.0.bin atldd.driver

  3.确认光纤接口卡的状态是Available。
# lsdev -Cc adapter
sa0 ----Available 01-S1 ---Standard I/O Serial Port
sa1 ----Available 01-S2 ---Standard I/O Serial Port
sa2 ----Available 01-S3 ---Standard I/O Serial Port
sa3 ----Available 01-S4 ---Standard I/O Serial Port
siokma0 Available 01-K1 ---Keyboard/Mouse Adapter
fda0 ---Available 01-D1 ---Standard I/O Diskette Adapter
scsi0 --Available 11-08 ---Wide/Ultra-2 SCSI I/O Controller
scsi1 --Available 11-09 ---Wide/Ultra-2 SCSI I/O Controller
mg20 ---Available 2D-08 ---GXT130P Graphics Adapter
sioka0 -Available 01-K1-00 Keyboard Adapter
ppa0 ---Available 01-R1 ---CHRP IEEE1284 (ECP) Parallel Port Adapter
ent0 ---Available 21-08 --IBM 10/100 Mbps Ethernet PCI Adapter (23100020)
sioma0 -Available 01-K1-01 Mouse Adapter
fcs0 ---Available 27-08 ---FC Adapter

  4.运行cfgmgr命令来扫描硬件的变化。

  5.检查磁带机的状态。确认它是Available的。
# lsdev -Cc tape
rmt0 Available 27-08-01 IBM 3580 Ultrium Tape Drive (FCP)
rmt1 Available 27-08-01 IBM 3580 Ultrium Tape Drive (FCP)
smc0 Available 27-08-01 IBM 3582 Library Medium Changer (FCP)

  6.用tar命令写一个文件到磁带机测试它是否正常工作。
# tar cvf /dev/rmt0 app*tar
# tar tvf /dev/rmt0

TSM 的安装与配置

一、TSM的安装

  1:安装介质
  TSM SERVER V5.1 ,TSM CLIENT V5.1,TDP2.2.1 FOR ORACLE

  2:安装环境
  IBM P670,AIX 5.2,ML版本为04,ORACLE 9I.

  3:安装Tivoli Storage Manager Server/Client

  1)创建逻辑卷
    mklv –y tsmlv rootvg 50 /* 指定lv为tsmlv,分区数为50 */

  2)在逻辑卷tsmlv 上建立文件系统
    tivoli 默认安装在 /usr/tivoli/tsm下
smitty crjfs Add a Journaled File System on a Previously Defined Logical Volume Add a Journaled File System on a Previously Defined Logical Volume

  成功建立文件系统后,mount /usr/tivoli/tsm 把文件系统挂载起来.

  3)Tivoli Storage Manager Server的安装
  把Tivoli Server for aix 的光盘放进光驱.运行smitty installp,选择安装设备,从光驱上安装.使用F7或者 ESC+7选择除了43外的所有文件集.

  安装成功后,进入 /usr/tivoli/tsm目录,运行 dsmserv启动Tivoli Server
表示Tivoli Server已经成功启动.在浏览器中输入 http://yourserver_ip:1580,即可出现Tivoli Server的管理登陆界面.

  4)Tivoli Storage Manager Client 的安装.
  Client的安装很简单,在此不详细叙述,运行smitty installp,安装所有除AIX4.3的文件集即可.

二、 Tivoli Storage Manager 配置过程

  1.设置Server 与 Client的相关文件.
  #cd /usr/tivoli/tsm/server/bin
#vi dsmserv.opt
  找到COMMethod HTTP ,在此行后加上HTTPPOrt 1580
  
  #cd /usr/tivoli/tsm/client/ba/bin
#vi dsm.sys
找到所在行,更改如下:
SErvername app
COMMmethod TCPip
TCPPort 1500
TCPServeraddress 10.10.10.11
nodename ora
passwordaccess generate

  更改后,运行 #dsm ,如果出现下面的界面,就表示更改已经生效.提示中的错误是要我们进入下一步配置了.

TSM Server 的配置

  1)找一台PC机,在浏览器中输入 http://10.10.10.11:1580 ,使用admin进入管理后台,对Server 进行配置.密码同样是admin.

  2)注意:如果没菜单显示的,是通过命令行操作的。打开WEB界面后,在右上角下拉菜单选择show command line.
(确认你的系统已经安装了JRE131,141版本以上用在WIN2003上会有问题)

  1:更改TSM SERVER 用户超时时间
select operation view -> manager security -> set web authentication time out -> change 10 to 0 -> click finish button

  2:定义一个名为3582lib的scsi带库
define library 3582lib libtype=scsi */libtype是带库的类型/*

  3:定义磁带库的路径
define path tsm 3582lib srctype=server desttype=library device=/dev/smc0 online=yes
*/tsm是tivoli的默认名字,smc0为带库的机械臂/*

  4:定义磁带机
define drive 3582lib drive01 element=256 */drive代表磁带机,element号可以在系统看到,lscfg -vpl rmtX /*
define drive 3582lib drive02 element=257 */此磁带机的element时以256开头,第二个为257/*

  5:定义磁带机的路径
define path tsm drive01 srctype=server desttype=drive library=3582lib device=/dev/rmt0 online=yes
define path tsm drive02 srctype=server desttype=drive library=3582lib device=/dev/rmt1 online=yes

  6:定义设备CLASSES
命令操作
define devclass gentape devtype=generic library=3582lib format=drive mountlimit=drives mountretention=60 estcapacity=200G
*/gentape是devclass的名称,devtype=generic 是类型为generic /*

  菜单操作
Object view ->Server Storage ->Storage Pools -> Sequential Access Storage Pools ->Operations:
Define Sequential Access Storage Pool
Storage Pool Name 3582_pool
Device Class 3582_Class
Description
Media Access Status READWRITE
Maximum Size Threshold NOLIMIT
Next Storage Pool
High Migration Threshold 90
Low Migration Threshold 70
Collocate? YES NO FILESPACE
Reclamation Threshold 60
Maximum Scratch Volumes Allowed 18 ( for 3582, 18 media slot )
Delay Period for Volume Reuse 0
Reclaim to storage pool
Migration Delay 0
Migration Continue YES NO
Overflow Location

  7:对磁带进行标记.
  手动导入磁带,import到空槽中。
#cd /usr/tivoli/tsm/server/bin
./dsmlabel -drive=/dev/rmt0,256 -library=/dev/smc0 -search -overwrite

  系统显示标记后,行一下步操作。
dsmadmc
checkin libvolume 3582lib search=yes status=private */private为专用带/*
define volume 3582_pool tape01 */定义带库池中的一个卷为tape01/*
checkin libvolume 3582lib tape02 status=private */捡入一个磁带到带库中/*

  8:定义策略

  (1)Policy Domains -->Policy Sets -->Define Policy Domain

  (2)选择刚才建立的策略域  点击Policy Sets --> Define Policy Set

  (3)Policy Domains --> Policy Sets
选择 (2)定义的策略--> Management Classes --> Define Management Class

  (4)Policy Domains --> Policy Sets --> Management Classes
选择前面定义的相关项,然后在下拉菜单上选择Assign as Default Management Class.

  (5)指定策略使用存储池
点击Management Classes --> 选择前面定义的策略名 --> 选择Backup Copy Groups
--> Define Backup Copy Group

  (6)激活策略域

  9:查看相关信息
dsmadmc进入tsm>提示符、、、、、、、
q actlog 查看操作日志
q libv 查看带库里已经标记并捡入到带库的卷(磁带)
q volume 查看当前已经定义的卷

0
相关文章