【带库测试】AIX上tapeutil带库测试过程

教程发布:风哥 教程分类:ITPUX技术网 更新日期:2022-02-12 浏览学习:443

【带库测试】AIX上tapeutil带库测试过程

p630#tapeutil
General Commands:
1. Open a Device 5. Inquiry 9. Log Sense Page
2. Close a Device 6. Test Unit Ready 10. Mode Sense Page
3. Device Info 7. Reserve Device 11. Release Device
4. Tape Drive Service Aids 8. Request Sense Q. Quit Program
Medium Changer Commands:
12. Element Information 16. Move Medium
13. Position To Element 17. Load/Unload Medium
14. Element Inventory 18. Initialize Element Status
15. Exchange Medium 19. Prevent/Allow Medium Removal
Tape Commands:
20. Query/Set Parameters 30. Read and Write Tests
21. Prevent/Allow Medium Removal 31. Unload Tape
22. Rewind 32. Erase
23. Erase Gap 33. Write Filemarks
24. Forward Space Filemarks 34. Backward Space Filemarks
25. Forward Space Records 35. Backward Space Records
26. Space to End of Data 36. Query/Set Tape Position
27. Log Sense 37. Read or Write Files
28. Display Message 38. Query/Create/Change Partition
29. Synchronize Buffers 39. Report Density Support
Enter Selection: q

Tapeutil and IBM ..
I have a question to ask. Currently I'm having a problem to write to tape using TSM. I run tapeutil test as below on AIX 5.3 and IBM TS3100 Tape Library:
# tapeutil -f /dev/rmtX rwtest -b 1024 -c 10 -r 2 (ok)
# tapeutil -f /dev/rmtX rwtest -b 153600 -c 10 -r 2
(Operation failed with errno 5: I/O error)
IBM has collected the dump file for analysis and the report says that :
"There is no problem with the tape drive , the problem is with TSM "
Is that correct or IBM just bluff me.

# tapeutil
General Commands:
1. Open a Device 5. Inquiry 9. Log Sense Page
2. Close a Device 6. Test Unit Ready 10. Mode Sense Page
3. Device Info 7. Reserve Device 11. Release Device
4. Tape Drive Service Aids 8. Request Sense Q. Quit Program
Medium Changer Commands:
12. Element Information 16. Move Medium
13. Position To Element 17. Load/Unload Medium
14. Element Inventory 18. Initialize Element Status
15. Exchange Medium 19. Prevent/Allow Medium Removal
Tape Commands:
20. Query/Set Parameters 30. Read and Write Tests
21. Prevent/Allow Medium Removal 31. Unload/Load Tape
22. Rewind 32. Erase
23. Erase Gap 33. Write Filemarks
24. Forward Space Filemarks 34. Backward Space Filemarks
25. Forward Space Records 35. Backward Space Records
26. Space to End of Data 36. Query/Set Tape Position
27. Log Sense 37. Read or Write Files
28. Display Message 38. Get Drive Encryption Settings
29. Synchronize Buffers 39. Report Density Support
40. Test Encryption Key Path/Setup
Enter Selection:

如何验证磁带驱动器是否正确安装:
1. 打开 AIX 窗口
2. 输入 tapeutil
3. 输入 1(打开一个设备)
4. 输入 /dev/rmt0(需要验证的设备文件)
5. 输入 1(Read/Write)
6. 输入 3(Device Info)
7. 输入 5(Inquiry)选择 0,对设备进行基本测试
8. 输入 6(Test Unit Read)确认没有错误。
9. 输入 18(Initialize Element Status)
10. 输入 14(Element Inventory)查看所有带库中所有磁带
11. 从上一步结果中,选择一个可写的空闲磁带,查看其序列号,并选择一个空闲的磁带插槽
12. 输入 16(Move Medium),指定磁带的地址和空闲磁带插槽的地址。确认磁带被放置到正确的位置
13. 输入 14 (Element Inventory),确认磁带库信息被更新
14. 输入 2 (Close a Device)
15. 输入 Q (退出程序)

如何验证机械臂是否工作正常:
1. 打开 AIX 窗口
2. 输入 tapeutil
3. 输入 1(打开一个设备)
4. 输入 /dev/smc0
5. 输入 1 (Read/Write)
6. 输入 3 (Device Info)
7. 输入 5 (Inquiry)选择 0,对设备进行基本测试
8. 输入 6 (Test Unit Read)确认没有错误
9. 输入 22(Rewind)
10. 输入 30 (Read and Write Tests)进行读写测试
11. 输入 1 (Read/Write). 开始测试
12. 输入 31(Unload Tape)取出磁带
13. 输入 2 (Close a Device)
14. 输入 Q (退出程序)

本文标签:
网站声明:本文由风哥整理发布,转载请保留此段声明,本站所有内容将不对其使用后果做任何承诺,请读者谨慎使用!
【上一篇】
【下一篇】