2007-7-6 22:30
maping
在HP-UX下安装磁带库——实施完全手册
[font=Tahoma][size=10.5pt][font=宋体]在不写点东西,非得让人家打出去。[/font][/size][/font]
[font=Tahoma][size=10.5pt][font=宋体]对于[/font][/size][/font][font=Tahoma][size=10.5pt]UNIX[/size][/font][font=Tahoma][size=10.5pt][font=宋体]下面磁带库的使用,主要问题是[/font][/size][/font][font=Tahoma][size=10.5pt]Library[/size][/font][font=Tahoma][size=10.5pt][font=宋体]的识别;如果能够解决识别问题,其他的问题就迎刃而解。[/font][/size][/font]
[font=Tahoma][size=10.5pt][font=宋体]关于在[/font][/size][/font][font=Tahoma][size=10.5pt]HP-UX[/size][/font][font=Tahoma][size=10.5pt][font=宋体]的使用,介绍如下[/font][/size][/font][font=Tahoma][size=10.5pt]:
1[/size][/font][font=Tahoma][size=10.5pt][font=宋体]、主要使用的命令是[/font][/size][/font][font=Tahoma][size=10.5pt]ioscan[/size][/font][font=Tahoma][size=10.5pt][font=宋体]和[/font][/size][/font][font=Tahoma][size=10.5pt]lsdev[/size][/font][font=Tahoma][size=10.5pt][font=宋体],大家可以查看该命令的具体使用。[/font][/size][/font][font=Tahoma][size=10.5pt]
2[/size][/font][font=Tahoma][size=10.5pt][font=宋体]、连接磁带库的时候,可以采用[/font][/size][/font][font=Tahoma][size=10.5pt]SCSI[/size][/font][font=Tahoma][size=10.5pt][font=宋体]控制卡和[/font][/size][/font][font=Tahoma][size=10.5pt]FC HBA[/size][/font][font=Tahoma][size=10.5pt][font=宋体]卡。[/font][/size][/font][font=Tahoma][size=10.5pt]HP-UX[/size][/font][font=Tahoma][size=10.5pt][font=宋体]小机的[/font][/size][/font][font=Tahoma][size=10.5pt]SCSI[/size][/font][font=Tahoma][size=10.5pt][font=宋体]控制卡所连接的磁带库驱动程序分为两种:[/font][/size][/font][font=Tahoma][size=10.5pt]spt[/size][/font][font=Tahoma][size=10.5pt][font=宋体]和[/font][/size][/font][font=Tahoma][size=10.5pt]sctl[/size][/font][font=Tahoma][size=10.5pt][font=宋体],跟[/font][/size][/font][font=Tahoma][size=10.5pt]SCSI[/size][/font][font=Tahoma][size=10.5pt][font=宋体]控制卡有关,在内核中绑定有。[/font][/size][/font][font=Tahoma][size=10.5pt]
HP[/size][/font][font=Tahoma][size=10.5pt][font=宋体]的[/font][/size][/font][font=Tahoma][size=10.5pt]28655A[/size][/font][font=Tahoma][size=10.5pt][font=宋体]卡,磁带库需要使用[/font][/size][/font][font=Tahoma][size=10.5pt]spt[/size][/font][font=Tahoma][size=10.5pt][font=宋体]驱动,其他一些集成的卡使用[/font][/size][/font][font=Tahoma][size=10.5pt]sctl[/size][/font][font=Tahoma][size=10.5pt][font=宋体]驱动程序。通过[/font][/size][/font][font=Tahoma][size=10.5pt]ioscan -f[/size][/font][font=Tahoma][size=10.5pt][font=宋体]命令可以查到。[/font][/size][/font][font=Tahoma][size=10.5pt]
FC HBA[/size][/font][font=Tahoma][size=10.5pt][font=宋体]卡的驱动程序跟[/font][/size][/font][font=Tahoma][size=10.5pt]vendor[/size][/font][font=Tahoma][size=10.5pt][font=宋体]有关系。[/font][/size][/font]
[font=Tahoma][size=10.5pt][font=宋体]如果将驱动添加到内核,需要重新编译内核。[/font][/size][/font][font=Tahoma][size=10.5pt]
3[/size][/font][font=Tahoma][size=10.5pt][font=宋体]、使用[/font][/size][/font][font=Tahoma][size=10.5pt]spt[/size][/font][font=Tahoma][size=10.5pt][font=宋体]驱动程序的时候,磁带库的所有设备(包括机械手臂和[/font][/size][/font][font=Tahoma][size=10.5pt]tape[/size][/font][font=Tahoma][size=10.5pt][font=宋体])的设备文件都位于[/font][/size][/font][font=Tahoma][size=10.5pt]/dec/spt[/size][/font][font=Tahoma][size=10.5pt][font=宋体]目录下。[/font][/size][/font]
[font=Tahoma][size=10.5pt][font=宋体]连接完磁带库并加电,使用[/font][/size][/font][font=Tahoma][size=10.5pt]ioscan -f[/size][/font][font=Tahoma][size=10.5pt][font=宋体]命令,可以查看到该磁带库设备,使用[/font][/size][/font][font=Tahoma][size=10.5pt]spt[/size][/font][font=Tahoma][size=10.5pt][font=宋体]的驱动程序;然后使用[/font][/size][/font][font=Tahoma][size=10.5pt]lsdev -d spt[/size][/font][font=Tahoma][size=10.5pt][font=宋体]命令查看该设备的[/font][/size][/font][font=Tahoma][size=10.5pt]major number(137)[/size][/font][font=Tahoma][size=10.5pt][font=宋体]。建立[/font][/size][/font][font=Tahoma][size=10.5pt]mkdir /dev/spt[/size][/font][font=Tahoma][size=10.5pt][font=宋体]目录,然后根据磁带库的[/font][/size][/font][font=Tahoma][size=10.5pt]Target ID[/size][/font][font=Tahoma][size=10.5pt][font=宋体],[/font][/size][/font][font=Tahoma][size=10.5pt]LUN ID[/size][/font][font=Tahoma][size=10.5pt][font=宋体]创建例如[/font][/size][/font][font=Tahoma][size=10.5pt]mknod /dev/spt/c1t3l0 c 137 0x013000[/size][/font][font=Tahoma][size=10.5pt][font=宋体]的设备文件![/font][/size][/font][font=Tahoma][size=10.5pt]
4[/size][/font][font=Tahoma][size=10.5pt][font=宋体]、建立[/font][/size][/font][font=Tahoma][size=10.5pt]sctl[/size][/font][font=Tahoma][size=10.5pt][font=宋体]驱动程序的设备文件:[/font][/size][/font]
[font=Tahoma][size=10.5pt][font=宋体]例一:[/font][/size][/font][font=Tahoma][size=10.5pt]Scalar 100[/size][/font][font=Tahoma][size=10.5pt][font=宋体]带库[/font][/size][/font]
[font=Tahoma][size=10.5pt][font=宋体]使用[/font][/size][/font][font=Tahoma][size=10.5pt]ioscan -f[/size][/font][font=Tahoma][size=10.5pt][font=宋体]的输出结果[/font][/size][/font][font=Tahoma][size=10.5pt]
Class I H/W Path Driver S/W State H/W Type Description
=================================================================
ext_bus 7 0/7/0/1 c720 CLAIMED INTERFACE SCSI C896 Fast
Wide LVD
target 10 0/7/0/1.0 tgt CLAIMED DEVICE
tape 65 0/7/0/1.0.0 stape CLAIMED DEVICE QUANTUM SuperDLT1
target 11 0/7/0/1.1 tgt CLAIMED DEVICE
tape 66 0/7/0/1.1.0 stape CLAIMED DEVICE QUANTUM SuperDLT1
target 12 0/7/0/1.2 tgt CLAIMED DEVICE
autoch 14 0/7/0/1.2.0 schgr CLAIMED DEVICE ADIC Scalar 100
[/size][/font][font=Tahoma][size=10.5pt][font=宋体]可以看到最后一行是[/font][/size][/font][font=Tahoma][size=10.5pt]ADIC Scalar100[/size][/font][font=Tahoma][size=10.5pt][font=宋体]的机械手,还有两个[/font][/size][/font][font=Tahoma][size=10.5pt]Drive[/size][/font][font=Tahoma][size=10.5pt][font=宋体]。[/font][/size][/font][font=Tahoma][size=10.5pt]
mkdir /dev/sctl
lsdev -d schgr [/size][/font][font=Tahoma][size=10.5pt][font=宋体]查看[/font][/size][/font][font=Tahoma][size=10.5pt]major number
/etc/mknod c7t2l0 c 203 0x072000 [/size][/font][font=Tahoma][size=10.5pt][font=宋体]为机械手臂创建设备文件[/font][/size][/font][font=Tahoma][size=10.5pt]
/etc/mknod c7t1l0 c 203 0x071000[/size][/font][font=Tahoma][size=10.5pt][font=宋体]和[/font][/size][/font][font=Tahoma][size=10.5pt]/etc/mknod c7t0l0 c 203 0x070000 [/size][/font][font=Tahoma][size=10.5pt][font=宋体]为[/font][/size][/font][font=Tahoma][size=10.5pt]tape drive[/size][/font][font=Tahoma][size=10.5pt][font=宋体]创建设备文件[/font][/size][/font]
[font=Tahoma][size=10.5pt][font=宋体]然后可以在[/font][/size][/font][font=Tahoma][size=10.5pt]/dev/sctl[/size][/font][font=Tahoma][size=10.5pt][font=宋体]目录下面看到[/font][/size][/font][font=Tahoma][size=10.5pt]c7t2I0,c7t1I0,c7t0I0[/size][/font][font=Tahoma][size=10.5pt][font=宋体]。[/font][/size][/font]
[font=Tahoma][size=10.5pt][font=宋体]例二:[/font][/size][/font][font=Tahoma][size=10.5pt]
STK9740[/size][/font][font=Tahoma][size=10.5pt][font=宋体]连接[/font][/size][/font][font=Tahoma][size=10.5pt] FC HBA
[/size][/font][font=Tahoma][size=10.5pt][font=宋体]使用[/font][/size][/font][font=Tahoma][size=10.5pt]ioscan -f[/size][/font][font=Tahoma][size=10.5pt][font=宋体]的输出结果:[/font][/size][/font][font=Tahoma][size=10.5pt]
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
ext_bus 3 0/0/0.8.0.0.0 fcpmux CLAIMED INTERFACE HP A3308
FCP-SCSI MUX Interface
target 0 0/0/0.8.0.0.0.0 tgt CLAIMED DEVICE
tape 0 0/0/0.8.0.0.0.0.0 stape CLAIMED DEVICE QUANTUM DLT7000
target 1 0/0/0.8.0.0.0.1 tgt CLAIMED DEVICE
autoch 0 0/0/0.8.0.0.0.1.0 schgr CLAIMED DEVICE STK9740
target 2 0/0/0.8.0.0.0.7 tgt CLAIMED DEVICE
ctl 3 0/0/0.8.0.0.0.7.0 sctl CLAIMED DEVICE Initiator
cd /dev/sctl
/etc/mknod c3t1l0 c 203 0x031000 [/size][/font][font=Tahoma][size=10.5pt][font=宋体]创建机械手臂设备文件[/font][/size][/font][font=Tahoma][size=10.5pt]
/etc/mknod c3t0l0 c 203 0x031000 [/size][/font][font=Tahoma][size=10.5pt][font=宋体]创建[/font][/size][/font][font=Tahoma][size=10.5pt]Tape Drive[/size][/font][font=Tahoma][size=10.5pt][font=宋体]的设备文件![/font][/size][/font]
[font=Tahoma][size=10.5pt][font=宋体]在[/font][/size][/font][font=Tahoma][size=10.5pt]/dev/rmt[/size][/font][font=Tahoma][size=10.5pt][font=宋体]下面可以看到诸如[/font][/size][/font][font=Tahoma][size=10.5pt]dev/rmt/c3t0d0BESTnb[/size][/font][font=Tahoma][size=10.5pt][font=宋体]等设备![/font][/size][/font][font=Tahoma][size=10.5pt]OK[/size][/font][font=Tahoma][size=10.5pt][font=宋体],大功告成![/font][/size][/font]
[font=Tahoma][size=10.5pt][font=宋体]可以使用[/font][/size][/font][font=Tahoma][size=10.5pt]Legato[/size][/font][font=Tahoma][size=10.5pt][font=宋体]或[/font][/size][/font][font=Tahoma][size=10.5pt]NetBackup[/size][/font][font=Tahoma][size=10.5pt][font=宋体]等软件来备份了![/font][/size][/font][font=Tahoma][size=10.5pt][/size][/font]
[[i] 本帖最后由 pyockee 于 2007-7-12 01:34 编辑 [/i]]
2007-7-11 23:10
maping
没有人看,没有人顶!
我很失望!
2007-7-12 01:32
pyockee
哥们,我不是来了吗:D
不过因为咱不没怎么玩过HP,所以不方便发表言论:$
表伤心啊
2007-7-12 08:58
crazyshow
我来顶!
但是,说实话,给HP装带库的机会太少了。
问不出来什么问题呀,只是看看过程:L
2007-7-12 16:18
hetian127
没用过HP,先顶!
2007-8-28 10:26
qingzi128
谢谢 版主,我今天准备装一下磁带库,正好搜到这篇帖子,呵呵
thank you!
2007-8-28 12:20
callme
顶下哈
2007-8-28 15:13
argenw
hao hao hao 好 好 好
2007-8-28 17:42
hanbingyu78
我来顶顶!!!
做人要厚道!!!
咱不能让大侠失望!!!
2007-8-28 21:28
wxhanshan
顶顶:handshake
2007-8-28 21:51
lj_cd
顶,只是实在不懂HP的东东,还要自己创建文件,还要重新编译内核,晕哟
2007-8-28 23:06
kui
good stuff
thanks and learn lots
2008-1-7 11:27
lxs0377
只有ibm的环境,没有hp的环境,路过
2008-1-31 12:21
assult
看看
没用过HP的设备.研究下
2008-2-3 10:19
emc2665
very nice!!!:victory: :victory: :victory:
2008-2-17 00:35
mjxjackxun
顶兄弟顶了,谢谢:lu11:
2008-3-15 22:07
鬼怪童子
好东西一定要顶。。。
2008-4-12 16:14
zhaoxinbbs
从来都是DB及关键系统上RAID10,管它几个T呢,保数据要紧。
为了安全,再做个存储同步,然后在目标卷的基础上,做一个异步拷贝用于备份
2008-4-14 14:30
ljgzznode
谢谢!正在收集这方面资料!
页:
[1]
Powered by Discuz! Archiver 5.5.0
© 2001-2006 Comsenz Inc.