扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
2007年9月8日
关键字:
产品:LTO3580、LTO3581、LTO3582、LTO3583
主机平台:HP 9000 Series L (rp5400),
操作系统:HP-UX V11.0
其他软件版本:tapeUtil
1) 驱动程序的获得:
在写本文的时候我们可以从以下的网值获得驱动程序:
ftp://ftp.software.ibm.com/storage/devdrvr/HPUX/
http://www-1.ibm.com/servers/storage/support/lto/
1.1)LTO驱动程序包:atdd.1.x.x.x.bin-
我们得到的是atdd.1.9.0.1.bin
1.2)磁带库工具程序:tapeutil.
hpux.x.x.x.x.bin-我们得到的是tapeutil.CURRENT.bin
2) 安装前要求:
2.1)从下面的网站确定你的操作系统的补丁级别是否符合要求:
http://www.storage.ibm.com/tape/lto/compatibility.html
2.2)从下面的网站确定你的HBA卡(如果使用光纤)是否符合要求:
http://knowledge.storage.ibm.com/HBA/HBASearchTool
2.3)确定确定你的HBA卡(如果使用光纤)是否工作正常:
3) 安装:
3.1)拷贝驱动程序的安装包:
3.1.1)拷贝预演,检查包的可用性:
----------------------------------------------------------
# swcopy -p -s /bavaria/atdd.1.9.0.1.bin atdd
----------------------------------------------------------
3.1.2)真正拷贝:
----------------------------------------------------------
# swcopy -s /bavaria/atdd.1.9.0.1.bin atdd
======= 03/26/03 13:47:51 PST BEGIN swcopy
SESSION (non-interactive)
* Session started for user "root@easter".
* Beginning Selection
* Target connection succeeded for "easter:/var/spool/sw".
* Source: /bavaria/atdd.1.9.0.1.bin
* Targets: easter:/var/spool/sw
* Software selections:
atdd.driver,r=1.9.0.1
* Selection succeeded.
* Beginning Analysis
* Session selections have been saved in the file
"/.sw/sessions/swcopy.last".
* "easter:/var/spool/sw": 1 filesets have
the selected revision
already installed.
* Analysis succeeded.
NOTE: More information may be found in the
agent logfile (location
is easter:/var/spool/sw/swagent.log).
======= 03/26/03 13:47:52 PST END swcopy
SESSION (non-interactive)
----------------------------------------------------------
3.1.3)检验拷贝的结果:
----------------------------------------------------------
#swlist -d atdd
atdd 1.9.0.1 GES IBM Magstar and Ultrium tape device driver
atdd.driver Advanced Tape Device Driver
----------------------------------------------------------
3.1.4)查看软件包的README:
----------------------------------------------------------
swlist -d -a readme atdd | more
----------------------------------------------------------
3.2)安装:
3.2.1)安装尝试:
----------------------------------------------------------
#swinstall atdd
======= 03/26/03 13:53:23 PST BEGIN swinstall SESSION
(non-interactive)
* Session started for user "root@easter".
* Beginning Selection
* Target connection succeeded for
"easter:/".
* Source connection succeeded for
"easter:/var/spool/sw".
ERROR: Installation of software requiring
a reboot is, by default,
not allowed from the command line.
You must specify "-x
autoreboot=true" on the command line
to change the default for
this session.
ERROR: Cannot continue the "swinstall" task.
* Selection had errors.
======= 03/26/03 13:53:29 PST END
swinstall SESSION (non-interactive)
----------------------------------------------------------
我们得到错误提示,需要我们再次安装,并且指明重新启动系统。
3.2.2)安装尝试-带有重启动选项:
----------------------------------------------------------
# swinstall -x autoreboot=true atdd
======= 03/26/03 13:56:30 PST BEGIN swinstall SESSION
(non-interactive)
* Session started for user "root@easter".
* Beginning Selection
* Target connection succeeded for
"easter:/".
* Source connection succeeded for
"easter:/var/spool/sw".
WARNING: The software specified contains
a kernel fileset. It will be
necessary to reconfigure and reboot
the system to make the
kernel software functional.
* Source: /var/spool/sw
* Targets: easter:/
* Software selections:
atdd.driver,r=1.9.0.1
* Selection succeeded.
* Beginning Analysis
* Session selections have been saved in the file
"/.sw/sessions/swinstall.last".
* The analysis phase succeeded for "easter:/".
* Analysis succeeded.
* Beginning Execution
* The execution phase succeeded for "easter:/".
* Execution succeeded.
NOTE: More information may be found in the
agent logfile (location
is easter:/var/adm/sw/swagent.log).
*** FINAL System shutdown message (easter) ***
System going down IMMEDIATELY
======= 03/26/03 13:57:30 PST END swinstall
SESSION (non-interactive)
# logout root
----------------------------------------------------------
3.2.3)检验驱动程序文件的安装:
----------------------------------------------------------
# swverify atdd
----------------------------------------------------------
----------------------------------------------------------
# swlist atdd
# Initializing...
# Contacting target "easter"...
#
# Target: easter:/
#
# atdd 1.9.0.1 GES IBM Magstar and Ultrium tape device
driver atdd.driver Advanced Tape Device Driver
----------------------------------------------------------
3.3)配置机械臂:
默认状态下,机械臂是不被自动配置的。
3.3.1)查看当前的机械臂状态:
驱动程序安装好以后,我们可以查看磁带库设备的情况:
----------------------------------------------------------
#ioscan -fn
ext_bus 5 0/7/0/0 c720 CLAIMED INTERFACE SCSI C896 ...
tape 0 0/7/0/0.0.0 atdd CLAIMED DEVICE IBM ULT3580-TD1
tape 1 0/7/0/0.1.0 atdd CLAIMED DEVICE IBM ULT3580-TD1
unknown -1 0/7/0/0.6.0 UNCLAIMED UNKNOWN IBM ULT3583-TL
ctl 5 0/7/0/0.7.0 sctl CLAIMED DEVICE Initiator/...
----------------------------------------------------------
我们可以看到机械臂ULT3583-TL,它的状态是unknown,这表示当前
没有被驱动程序认到。只有让驱动程序加载所有的LTO机械臂,才能
使这个设备变成CLAIMED状态。要做到这一点,我们只需要设置参数
atdd_autoch为1。
3.3.2)改变参数atdd_autoch方法:
3.3.2.1)进入SAM。
3.3.2.2)选择Kernel Configuration.
3.3.2.3)选择Configurable Parameters.
3.3.2.4)找到参数atdd_autoch
3.3.2.5)选择Formula/Value,把atdd_autoch设成1。
3.3.2.6)确认Pending Value已经是1。
3.3.2.7)选择退出SAM,SAM提示
“Create a New Kernel Now.”,确认,让系统生成一个新的内核文件。
3.3.2.8)系统提示
“Move Kernel Into Place and Shutdown/Reboot System Now”
确认后,系统拷贝新内核到启动目录,并且重新启动。
注意:
重新启动的过程中,磁带库必须保持ON-LINE状态。
3.3.2.8)重新启动后,检查机械臂的状态:
----------------------------------------------------------
ext_bus 5 0/7/0/0 c720 CLAIMED INTERFACE SCSI C896 ...
tape 0 0/7/0/0.0.0 atdd CLAIMED DEVICE IBM ULT3580-TD1
tape 1 0/7/0/0.1.0 atdd CLAIMED DEVICE IBM ULT3580-TD1
autoch 2 0/7/0/0.6.0 atdd CLAIMED DEVICE IBM ULT3583-TL
ctl 5 0/7/0/0.7.0 sctl CLAIMED DEVICE Initiator/...
----------------------------------------------------------
可以看到机械臂已经CLAIMED。
4) 检验:
4.1)检验驱动器:
----------------------------------------------------------
ioscan -fnkC tape|pg
Class I H/W Path Driver S/W State H/W Type Description
============================================================
tape 1 0/0/12/0/0.121.8.255.0.0.0 atdd CLAIMED DEVICE IBM ULT3580-TD2
/dev/rmt/1m /dev/rmt/1mnb /dev/rmt/c27t0d0BESTn
/dev/rmt/1mb /dev/rmt/c27t0d0BEST /dev/rmt/c27t0d0BESTnb
/dev/rmt/1mn /dev/rmt/c27t0d0BESTb
tape 2 0/0/12/0/0.121.9.255.0.0.0 atdd CLAIMED DEVICE IBM ULT3580-TD2
/dev/rmt/2m /dev/rmt/2mnb /dev/rmt/c29t0d0BESTn
/dev/rmt/2mb /dev/rmt/c29t0d0BEST /dev/rmt/c29t0d0BESTnb
/dev/rmt/2mn /dev/rmt/c29t0d0BESTb
----------------------------------------------------------
4.2)检验机械臂:
----------------------------------------------------------
# ioscan -fnkC autoch
Class I H/W Path Driver S/W State H/W Type Description
==========================================================
autoch 0 0/0/12/0/0.121.8.255.0.0.1 schgr CLAIMED
DEVICE IBM 03584L32
/dev/rac/c27t0d1
----------------------------------------------------------
4.3)检验设备文件:
----------------------------------------------------------
# ls -la /dev/rmt
crw-rw-rw- 1 bin bin 245 0x050000 Aug 16 11:13 0m
crw-rw-rw- 1 bin bin 245 0x050080 Aug 16 11:13 0mb
crw-rw-rw- 1 bin bin 245 0x050040 Aug 16 11:13 0mn
crw-rw-rw- 1 bin bin 245 0x0500c0 Aug 17 17:14 0mnb
crw-rw-rw- 1 bin bin 245 0x051000 Aug 16 11:28 1m
crw-rw-rw- 1 bin bin 245 0x051080 Aug 16 11:13 1mb
crw-rw-rw- 1 bin bin 245 0x051040 Aug 16 11:13 1mn
crw-rw-rw- 1 bin bin 245 0x0510c0 Aug 17 17:51 1mnb
crw-rw-rw- 1 bin bin 245 0x056000 Aug 16 11:14 2chng
crw-rw-rw- 1 bin bin 245 0xfffffc Aug 16 11:13 atdd.cfg
crw-rw-rw- 1 bin bin 245 0xfffffd Aug 16 11:13 atdd.dbg
crw-r--r-- 1 root root 245 0xfffffe Aug 15 11:24 atdd_config
crw-rw-rw- 1 bin bin 245 0x050000 Aug 16 11:13 c5t0d0BEST
crw-rw-rw- 1 bin bin 245 0x050080 Aug 16 11:13 c5t0d0BESTb
crw-rw-rw- 1 bin bin 245 0x050040 Aug 16 11:13 c5t0d0BESTn
crw-rw-rw- 1 bin bin 245 0x0500c0 Aug 16 11:13 c5t0d0BESTnb
crw-rw-rw- 1 bin bin 245 0x051000 Aug 16 11:14 c5t1d0BEST
crw-rw-rw- 1 bin bin 245 0x051080 Aug 16 11:14 c5t1d0BESTb
crw-rw-rw- 1 bin bin 245 0x051040 Aug 16 11:14 c5t1d0BESTn
crw-rw-rw- 1 bin bin 245 0x0510c0 Aug 16 11:14 c5t1d0BESTnb
----------------------------------------------------------
其中:
2chng是LTO磁带库的机械臂
0m是LTO磁带库的第一个驱动器
1m是LTO磁带库的第二个驱动器
5) 安装工具软件TAPEUTIL:
5.1)拷贝软件包
swcopy /bavaria/tapeutil.hpux.4.0.0.0.bin tapeutil
5.2)安装软件包
swinstall tapeutil
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者