在这里介绍一下WIN平台上面怎么测试带库是否可以正常的读写数据库。

WIN这个是个好东西,但是在用于服务器方案,我切不会的。

这里不介绍厂商自己提供的软件来测试带库。

WIN下面同样用两种方案:

方案一:使用mtx与tar来实现

方案二:使用robtest与nt_ttu工具

方案一:

方案一需要用到两个工具,mtx与tar,这两个工具都需要到第三方去下载。

mtx下载地址http://sourceforge.net/projects/mtx/files/Windows/

tar下载地址http://sourceforge.net/projects/guntar/?source=directory

软件安装完成后记得在PATH里面增加好环境变量。

  1. 1.1 查看已经配置的设备的状态
  2. C:\Documents and Settings\Administrator>tpconfig -l
  3. Device Robot Drive       Robot                    Drive                Device
  4. Type     Num Index  Type DrNum Status  Comment    Name                 Path
  5. robot      0    -    TLD    -       -  -          -                    {3,0,0,0}
  6. drive    -    0  hcart    1      UP  -          IBM.ULTRIUM-TD1.000  {3,0,0,1}
  7. drive    -    1  hcart    2      UP  -          IBM.ULTRIUM-TD1.001  {3,0,0,2}
  8. 1.2 查看机械手的状态
  9. C:\Documents and Settings\Administrator>mtx -f 3:0:0:0 status
  10. Storage Changer 3:0:0:0:2 Drives, 40 Slots ( 20 Import/Export )
  11. Data Transfer Element 0:Empty
  12. Data Transfer Element 1:Full (Storage Element 2 Loaded):VolumeTag = 00580001
  13. Storage Element 1:Full :VolumeTag=00580000
  14. Storage Element 2:Empty
  15. Storage Element 3:Full :VolumeTag=00580002
  16. Storage Element 4:Full :VolumeTag=00580003
  17. Storage Element 5:Full :VolumeTag=00580004
  18. 1.3 加载槽位3的磁带到driver 0
  19. C:\Documents and Settings\Administrator>mtx -f 3:0:0:0 load 3 0
  20. Loading media from Storage Element 3 into drive 0...done
  21. C:\Documents and Settings\Administrator>mtx -f 3:0:0:0 status|more
  22. Storage Changer 3:0:0:0:2 Drives, 40 Slots ( 20 Import/Export )
  23. Data Transfer Element 0:Full (Storage Element 3 Loaded):VolumeTag = 00580002
  24. Data Transfer Element 1:Full (Storage Element 2 Loaded):VolumeTag = 00580001
  25. Storage Element 1:Full :VolumeTag=00580000
  26. Storage Element 2:Empty
  27. Storage Element 3:Empty
  28. Storage Element 4:Full :VolumeTag=00580003
  29. Storage Element 5:Full :VolumeTag=00580004
  30. Storage Element 6:Full :VolumeTag=00580005
  31. Storage Element 7:Full :VolumeTag=00580006
  32. Storage Element 8:Full :VolumeTag=00580007
  33. Storage Element 9:Full :VolumeTag=00580008
  34. Storage Element 10:Empty
  35. 1.4 查看tape的名字
  36. C:\Documents and Settings\Administrator>scan -tape
  37. ************************************************************
  38. *********************** SDT_TAPE    ************************
  39. ************************************************************
  40. ------------------------------------------------------------
  41. Device Name  : "Tape0"
  42. Passthru Name: "Tape0"
  43. Volume Header: ""
  44. Port: 3; Bus: 0; Target: 0; LUN: 1
  45. Inquiry    : "IBM     ULTRIUM-TD1     18N2"
  46. Vendor ID  : "IBM     "
  47. Product ID : "ULTRIUM-TD1     "
  48. Product Rev: "18N2"
  49. Serial Number: "92FUC00601"
  50. WWN          : ""
  51. WWN Id Type  : 0
  52. Device Identifier: "IBM     ULTRIUM-TD1     92FUC00601  "
  53. Device Type    : SDT_TAPE
  54. NetBackup Drive Type: 3
  55. Removable      : Yes
  56. Device Supports: SCSI-3
  57. Flags : 0x0
  58. Reason: 0x0
  59. ------------------------------------------------------------
  60. Device Name  : "Tape1"
  61. Passthru Name: "Tape1"
  62. Volume Header: ""
  63. Port: 3; Bus: 0; Target: 0; LUN: 2
  64. Inquiry    : "IBM     ULTRIUM-TD1     18N2"
  65. Vendor ID  : "IBM     "
  66. Product ID : "ULTRIUM-TD1     "
  67. Product Rev: "18N2"
  68. Serial Number: "92FUC00602"
  69. WWN          : ""
  70. WWN Id Type  : 0
  71. Device Identifier: "IBM     ULTRIUM-TD1     92FUC00602  "
  72. Device Type    : SDT_TAPE
  73. NetBackup Drive Type: 3
  74. Removable      : Yes
  75. Device Supports: SCSI-3
  76. Flags : 0x0
  77. Reason: 0x0
  78. 1.5 向tape 0写数据
  79. C:\Documents and Settings\Administrator>tar -cvf Tape0 "C:\Program Files\mtx"
  80. C:\\Program Files\\mtx/
  81. C:\\Program Files\\mtx/loaderinfo.exe
  82. C:\\Program Files\\mtx/mtx.exe
  83. C:\\Program Files\\mtx/README.win32
  84. C:\\Program Files\\mtx/scsieject.exe
  85. C:\\Program Files\\mtx/scsitape.exe
  86. C:\\Program Files\\mtx/tapeinfo.exe
  87. 1.6 查看已经备份的数据
  88. C:\Documents and Settings\Administrator>tar -tvf Tape0 "C:\Program Files\mtx"
  89. drw-rw-rw- Administrator/0   0 2012-10-13 18:33 C:\\Program Files\\mtx/
  90. -rwxrwxrwx Administrator/0 77824 2008-08-20 23:52 C:\\Program Files\\mtx/loaderinfo.exe
  91. -rwxrwxrwx Administrator/0 90112 2008-08-20 23:52 C:\\Program Files\\mtx/mtx.exe
  92. -rw-rw-rw- Administrator/0  1360 2008-08-20 23:53 C:\\Program Files\\mtx/README.win32
  93. -rwxrwxrwx Administrator/0 81920 2008-08-20 23:52 C:\\Program Files\\mtx/scsieject.exe
  94. -rwxrwxrwx Administrator/0 81920 2008-08-20 23:52 C:\\Program Files\\mtx/scsitape.exe
  95. -rwxrwxrwx Administrator/0 81920 2008-08-20 23:52 C:\\Program Files\\mtx/tapeinfo.exe

方案二:

要使用此方案,是需要安装NBU软件与配置设备的

  1. 2.1 robtest测试带库
  2. C:\Documents and Settings\Administrator>robtest
  3. Configured robots with local control supporting test utilities:
  4. TLD(0)     robotic path = {3,0,0,0}
  5. Robot Selection
  6. ---------------
  7. 1)  TLD 0
  8. 2)  none/quit
  9. Enter choice: 1
  10. 1
  11. Robot selected: TLD(0)   robotic path = {3,0,0,0}
  12. Invoking robotic test utility:
  13. C:\Program Files\Veritas\Volmgr\bin\tldtest.exe -rn 0 -r {3,0,0,0}
  14. Opening {3,0,0,0}
  15. MODE_SENSE complete
  16. Enter tld commands (? returns help information)
  17. ?
  18. To exit the utility, type q or Q.
  19. init                      - Initialize element status
  20. initrange <d#|s#|p#|t> [#]- Init element status range
  21. allow                     - Allow media removal
  22. prevent                   - Prevent media removal
  23. extend                    - Extend media access port
  24. retract                   - Retract media access port
  25. mode                      - Mode sense
  26. m <from> <to>             - Move medium
  27. pos <to>                  - Position to drive or slot
  28. s [d|p|t|s [n]] [raw]      - Read element status
  29. inquiry                   - Display vendor and product ID
  30. rezero                    - Rezero unit
  31. inport                    - Ready inport (media access port)
  32. debug                     - Toggle debug mode for this utility
  33. test_ready                - Send a TEST UNIT READY to the device
  34. <from> <to> specifies drive (d#), slot (s#), media access port (p#),
  35. or transport (t#)
  36. <d#|s#|p#|t#> is drive #, slot #, media access port #, or transport #
  37. [#] is number of elements for d, s, p, or t
  38. NOTE - drive # is 1 - Number of drives
  39. slot # is 1 - Number of slots
  40. media access port # is 1 - Number of media access port elements
  41. transport # is 1 - Number of transports
  42. <type> = (d)rive, (s)lot, media access (p)ort, or (t)ransport
  43. unload <drive>           - Issue SCSI unload
  44. <drive> = d1 or 1, d2 or 2, d3 or 3 ... d648 or 648
  45. multipath [enable|disable]             - turn multipathing on/off
  46. multipath [auto|manual]                - turn auto path discovery on/off
  47. multipath [addpath|removepath] [path]  - for manual mode, add/remove path
  48. multipath [showpaths]      - show currently configured paths for auto or manual
  49. mode
  50. s d
  51. drive 1 (addr 500) access = 1 Contains Cartridge = no
  52. drive 2 (addr 501) access = 1 Contains Cartridge = no
  53. READ_ELEMENT_STATUS complete
  54. s s
  55. slot 1 (addr 1000) contains Cartridge = yes
  56. Source address = 500
  57. Barcode = 00580000
  58. slot 2 (addr 1001) contains Cartridge = yes
  59. Source address = 500
  60. Barcode = 00580002
  61. slot 3 (addr 1002) contains Cartridge = yes
  62. Source address = 501
  63. Barcode = 00580001
  64. slot 4 (addr 1003) contains Cartridge = yes
  65. Source address = 0
  66. Barcode = 00580003
  67. slot 5 (addr 1004) contains Cartridge = yes
  68. Source address = 0
  69. Barcode = 00580004
  70. slot 6 (addr 1005) contains Cartridge = yes
  71. Source address = 0
  72. Barcode = 00580005
  73. slot 7 (addr 1006) contains Cartridge = yes
  74. Source address = 0
  75. Barcode = 00580006
  76. << Press return to continue, or q and return to stop >>
  77. q
  78. READ_ELEMENT_STATUS complete
  79. m s1 d1
  80. Initiating MOVE_MEDIUM from address 1000 to 500
  81. MOVE_MEDIUM complete
  82. s d
  83. drive 1 (addr 500) access = 0 Contains Cartridge = yes
  84. Source address = 1000 (slot 1)
  85. Barcode = 00580000
  86. drive 2 (addr 501) access = 1 Contains Cartridge = no
  87. READ_ELEMENT_STATUS complete
  88. q
  89. Robot Selection
  90. ---------------
  91. 1)  TLD 0
  92. 2)  none/quit
  93. Enter choice: 2
  94. 2
  95. 2.2 向tape0写数据
  96. C:\Documents and Settings\Administrator>nt_ttu -f Tape0
  97. Welcome to nt_ttu, h[elp] or ? for help.
  98. Data Buffer Initial Address - 0000000002164000
  99. nt_ttu> open t
  100. OPEN elapsed time = 16 msecs.
  101. nt_ttu> ioctl c=rew
  102. cmd = rew
  103. now rewinding the tape
  104. nt_ttu> write t b=65536
  105. WRITE time=0 msec; records=1; bytes/record=65536; bytes/msec=65536.000
  106. nt_ttu> c t
  107. CLOSE elapsed time = 0 msecs.
  108. nt_ttu> exit

已经成功。

本文转自7343696 51CTO博客,原文链接:http://blog.51cto.com/luoping/1027147,如需转载请自行联系原作者

nbu WIN平台下面(mtx/robtest/tar/nt_ttu)手动测试driver是否正常相关推荐

  1. win平台搭建Lnmp环境

    win10上面安装的phpStudy这些天有时候打不开网页 502,请求一直loading,就算是代码问题我也扶不住,安装个Redis,mongodb都超级麻烦,并且好多都模拟Linux做的东西,最终 ...

  2. 如何简单利用git_stats脚本统计项目的代码量(以及win平台使用时的错误排除)...

    废话不多说,先放上几张插件生成的页面的预览图 (页面主页) (每日提交量) (代码行数统计,因为是练习项目,很多代码是copy的,不要在意细节) 预览大致就到这里,当然还有很多其他功能,大家可以自己去 ...

  3. php 动态引用dll文件路径,win平台环境变量与dll动态链接库搜索路径小结

    今日需要做一个在cmd命令窗口下使用php.exe执行的php小程序,用于循环获取某API提供的json数据并进行分析后实时发送短信提醒. 用惯了linux下的直接命令窗口输入curl.php等命令而 ...

  4. 最新WIN平台服务器安全解决方案【青云原创】

    前言 我们先来看一些目前网络上比较成熟的WIN平台服务器安全加固方案,因都是一些教程和链接我把他们放在本文的最后列出. 其实这些方案再加上一个合格的服务器管理员就已经可以做到服务器相当高水平的安全了, ...

  5. 使用RMAN实现异机备份恢复(WIN平台)

    --================================= -- 使用RMAN实现异机备份恢复(WIN平台) --================================= 在有些 ...

  6. linux打开gaussian16软件,win平台下最新版Gaussian16使用经验分享

    本帖最后由 tjchkj 于 2017-12-7 16:04 编辑 看到论坛里几乎是清一色的在linux下使用Gaussian16的交流,使我这个linux门外汉感到居然找不到在windows平台下的 ...

  7. win平台使用惯导模块:WHEELTEC N100 模块

    win平台使用惯导模块:WHEELTEC N100 模块 模块介绍 WHEELTEC N100 参数 WIN驱动安装 连接上位机 电路设计 修改波特率 修改数据包发布频率 模块调平校准 模块介绍 WH ...

  8. 原始复古的forfiles的使用(win平台)

    最近因为项目需要,在linux安装basemap图像库的时候,安装成功后,一直提示缺失mpl_toolkits.Basemap.尝试了半天时间没有解决问题,可能问题出在其他依赖库的版本上.遂在win平 ...

  9. Qt 程序中获取 CPUID UUID 等系统信息的方法(win 平台,wmic)

    Qt 程序中获取 CPUID UUID 等系统信息的方法(win 平台,wmic) 最近的程序中要加入序列号注册的功能.这就需要获得电脑的一些基本信息,比如 UUID .或者 CPUID 一类的固定的 ...

最新文章

  1. Fastcgi是什么
  2. Java5线程并发库之保障变量的原子性操作
  3. java 高并发解决方案
  4. 数据库——修改表信息(转)
  5. 学习webpack(二)
  6. mc服务器村民交易修改,【原创】【教程】MCPE自定义村民交易内容
  7. alinq mysql_ALinq让Mysql变得如此简单_MySQL
  8. 产品经理必看:终于有人把数据指标讲明白了
  9. JavaScript里的函数加或不加括号的区别
  10. 多线多IP的服务器配置
  11. 经典排序算法(八)--选择排序Selection Sort
  12. JAVA开发环境搭建
  13. BigGAN(2019)
  14. 计算机课程word教学,Word教学方法及使用技巧
  15. 新年计划(2018)
  16. 【无标题】程序员的一大步
  17. 使用FileZilla连接时超时,无法连接到服务器
  18. brk系统调用和copy-on-write机制
  19. 缺芯导致全球汽车减产超一千万辆
  20. 完整的DJ表演工具包djay Pro 2 Mac,DJ打碟神器

热门文章

  1. python shutil模块用法实例分析_python之shutil模块使用方法(三分钟了解)
  2. java 正则判断二进制_regex – 正则表达式,用于定义一些二进制序列
  3. python 指针_C++的动态内存:C++的指针
  4. delphi mysql 加密_Delphi对Access文件加密
  5. 简述php的发展和特点,有关PHP特点的详细介绍
  6. android adbd代码在哪个目录下,Android源代码目录结构
  7. java 显示服务器的图片,【JavaWeb】实现读取本地服务器路径下的图片
  8. 用计算机弹奏体面6,抖音能用计算器按出音乐有哪些?计算器乐谱分享
  9. qt5 传输 图片压缩_图片如何转换成pdf?免费教你几个宝藏方法,请低调使用!...
  10. html区域背景,保存/恢复HTML5 Canvas的背景区域