Dec 10

[转]红旗Linux下使用HP MSL 6060磁带库 不指定

linuxing , 14:02 , 基础知识 » 硬件处理 , 评论(0) , 引用(0) , 阅读(35466) , Via 本站原创 | |

四、操作磁带库
1.使用mtx包
主要用于控制机械手作导带换带、连接slot(插槽)到driver(驱动器)操作
红旗Linux DC Server 4.1有自带mtx-1.2.18-1.i386.rpm安装包,在第一张光盘,安装完之后,会在/usr/sbin/mtx
[1]mtx作检查磁带库状态操作
引用
# mtx –f  /dev/nsth0-0c0i0l0  status
Storage Changer /dev/nsth0-0c0i0l0:4 Drives, 60 Slots ( 2 Import/Export )
Data Transfer Element 0:Empty
Data Transfer Element 1:Empty
Data Transfer Element 2:Empty
Data Transfer Element 3:Empty
     Storage Element 1:Full
     Storage Element 2:Full
     Storage Element 3:Full
     Storage Element 4:Full
     Storage Element 5:Full
     Storage Element 6:Full
     Storage Element 7:Full
     Storage Element 8:Full
     Storage Element 9:Full
     Storage Element 10:Full
     Storage Element 11:Empty
     Storage Element 12:Empty
     Storage Element 13:Empty
     Storage Element 14:Empty
     Storage Element 15:Full
     Storage Element 16:Full
     Storage Element 17:Full
     Storage Element 18:Full
     Storage Element 19:Full
     Storage Element 20:Full
     Storage Element 21:Full
     Storage Element 22:Empty
     Storage Element 23:Full
     Storage Element 24:Empty
     Storage Element 25:Empty
     Storage Element 26:Empty
     Storage Element 27:Empty
     Storage Element 28:Empty
     Storage Element 29:Empty
     Storage Element 30:Full :VolumeTag=NK0224L1                        
     Storage Element 31:Full :VolumeTag=NK0225L1                        
     Storage Element 32:Full
     Storage Element 33:Full
     Storage Element 34:Full
     Storage Element 35:Full
     Storage Element 36:Full
     Storage Element 37:Full
     Storage Element 38:Full
     Storage Element 39:Full
     Storage Element 40:Empty
     Storage Element 41:Empty
     Storage Element 42:Empty
     Storage Element 43:Empty
     Storage Element 44:Empty
     Storage Element 45:Full
     Storage Element 46:Full
     Storage Element 47:Empty
     Storage Element 48:Empty
     Storage Element 49:Empty
     Storage Element 50:Empty
     Storage Element 51:Full
     Storage Element 52:Full
     Storage Element 53:Full
     Storage Element 54:Full
     Storage Element 55:Empty
     Storage Element 56:Full
     Storage Element 57:Full
     Storage Element 58:Full
     Storage Element 59 IMPORT/EXPORT:Empty
     Storage Element 60 IMPORT/EXPORT:Empty

从以上信息显示4个驱动器(driver)全为空,有60个slot,其中有磁带的slot显示为Full,那么我们可以做将slot中的磁带放到驱动器中
[2]放带操作
命令格式为mtx –f 机械手设备号 slot号 driver号
# mtx –f  /dev/nsth0-0c0i0l0 load 56 0

[3]拨带操作
# mtx –f  /dev/nsth0-0c0i0l0 unload 56 0

除了以上简单操作之外,还可以实现将slot移位,如将原有的slot 56的磁带移动到50,这只是逻辑上的移动;
更详细的操作请查阅man mtx

五、重做核心
加载QLA驱动之后,必须重启系统测试QLA驱动是否加载成功,重启之后再检查磁带机的驱动器(st)和机械手(sg)是否识别到,若识别到,一切OK。
当一切测试通过后,应更新启动时加载的驱动。
[1]备份原先操作核心
# cp –a  /boot/initrd-`uname -r`.img  /boot/initrd-`uname -r`-`date +%Y%m%d`.img

[2]重做核心命令:
# mkinitrd -f /boot/initrd-`uname -r`.img `uname -r
`
六、备注
原文由:wylonwong wlhuang#redflag-linux.com提供。
内文分页: [1] [2]
Tags: , ,
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]