lsdev - list devices information that are based upon information in the Customized Devices (Cudv) or Predefined Devices(PdDv) object class.
lspath - show all MPIO-capable chinld devices of the specified parent.
lsdev
-C lists a device information in the Customized Devices object class. The -C flag is not required, but is maintained for compatibility reasons.
-c Class
specifies a device class name. This flag can be used to restrict output to devices in a specified class.
# lsdev -Cc tape 列出系统所带的所有磁带设备
# lsdev -Cc adapter 列出系统所带的所有Adapter
# lslpp -l Atape.driver 查看Atape安装的版本和状态
# lscfg -vl rmt0 查看磁带驱动器rmt0的信息
# rmdev -l rmt0 将磁带驱动器rmt0置于离线状态(Defined)
# mkdev -l rmt0 使已定义的磁带机rmt0可用(Available)
# rmdev -ld rmt0 将磁带驱动器rmt0删除(Delete)(置于离线状态并且清除磁带驱动器在配置数据库中的定义)
# cfgmgr -v 重新发现系统连接的设备(所有的)
# cfgmgr -l scsi0 -v 重新配置scsi0及其子设备
# tapeutil 是 Atape 提供的磁带机及带库测试应用程序,它是对磁带库以及驱动器进行直接操作的接口,使用很方便
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:
# /usr/lpp/diagnostics/bin/utape -cd rmt0 –n 磁带机清洁的检查命令,显示结果为磁带机使用的小时数,若大于72小时,则不论磁带机黄灯是否亮都应用清洁带清洗
# tctl -f /dev/rmt0 rewind 重绕磁带设备
用tar对文件进行备份和恢复,检测磁带机:
1、在/tmp下,建test.txt文件
#cd /tmp
#vi test.txt
2、将test.txt写到磁带上
#tar -cvf /dev/rmt0 ./test.txt
3、显示磁带上备份的文件
#tar -tvf /dev/rmt0
4、删除/tmp下的test.txt
#rm test.txt
5、恢复test.txt文件
#tar -xvf /dev/rmt0 ./test.txt#lsdev -Cc tape
#lsdev -Cc adapter
阅读(1193) | 评论(0) | 转发(0) |