扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
2007年9月8日
关键字:
产品:LTO3581/3582/3583/3584
主机平台:HP 9000 Series L (rp5400),
操作系统:HP-UX V11.0
其他软件版本:N/A
如果在HP-UX中需要改变默认的参数如压缩、块大小、缓冲区等,可以使用/opt/OMImag/bin/atdd_cfg命令。
具体的方法如下:
1)获得设备的H/W Path:
>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/...
我们可以知道两个磁带驱动器:
tape 0 h/w path= 0/0.0.0 atdd CLAIMED DEVICE IBM ULT3580-TD1
tape 1 h/w path= 0/0.1.0 atdd CLAIMED DEVICE IBM ULT3580-TD1
2)获得每个tape设备的instance
>/opt/OMImag/bin/atdd_cfg -g INSTANCE 0/0.0.0
INSTANCE: 1
>/opt/OMImag/bin/atdd_cfg -g INSTANCE 0/0.1.0
INSTANCE: 2
3)参数:
3.1)显示现有的命令参数:
/opt/OMImag/bin/atdd_cfg -g DENSITY <instance>
/opt/OMImag/bin/atdd_cfg -g SILI <instance>
/opt/OMImag/bin/atdd_cfg -g DEVICES
/opt/OMImag/bin/atdd_cfg -g BLOCKSIZE <instance>
/opt/OMImag/bin/atdd_cfg -g COMPRESSION <instance>
/opt/OMImag/bin/atdd_cfg -g BUFFERING <instance>
/opt/OMImag/bin/atdd_cfg -g IMMEDIATE <instance>
/opt/OMImag/bin/atdd_cfg -g TRAILER <instance>
/opt/OMImag/bin/atdd_cfg -g ERRNO_LEOT <instance>
3.2)设置参数的命令:
/opt/OMImag/bin/atdd_cfg -s DENSITY <density> <instance>
/opt/OMImag/bin/atdd_cfg -s SILI <sili> <instance>
/opt/OMImag/bin/atdd_cfg -s BLOCKSIZE <block size> <instance>
/opt/OMImag/bin/atdd_cfg -s COMPRESSION <compression> <instance>
/opt/OMImag/bin/atdd_cfg -s BUFFERING <buffering> <instance>
/opt/OMImag/bin/atdd_cfg -s IMMEDIATE <immediate> <instance>
/opt/OMImag/bin/atdd_cfg -s TRAILER <trailer> <instance>
/opt/OMImag/bin/atdd_cfg -s ERRNO_LEOT <errno_leot> <instance>
4)以上的改变只使临时的,重新启动HP-UX后,改变就不存在了。如果要长期生效可以修改
/etc/rc.config.d/atdd.cfg文件.
用户可以直接修改atdd.cfg.ex之类的临时文件,再复制到atdd.cfg文件.
下面的例子将改变压缩参数从off (0)到on (1)
# Sample configuration file for IBM SCSI and Ultrium Tape Drive and Medium
Changer
#------------------------------------------------------#
# IBM 3583 Ultrium Scalable Tape Library #
# SCSI ID: Tape drive 1 (3580): 0 #
# Tape drive 2 (3580): 1 #
# Medium Changer (3583): 6 #
# HP-UX 11.00 A, L, N Class Server #
#------------------------------------------------------#
# HW Path for Tape drive 1
ATDD_HWPATH[0]=0/7/0/0.0.0
ATDD_COMPRESSION[0]=1
# HW Path for Tape drive 2
ATDD_HWPATH[1]=0/7/0/0.1.0
# HW Path for Medium Changer
ATDD_HWPATH[2]=0/7/0/0.6.0
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者