AIX中如何确定磁带库设备和操作系统设备文件的对应关系

产品:lto
主机平台:IBM-eServer PSerise
操作系统:AIX
其他软件版本:NONE

在实际中配置备份软件、命令操作等情况下,我们经常要使用磁带库设备的element号,有时还需要使用相应的设备文件。为此我们通常通过测试观察的方法确定他们的对应关系。在设备过多或条件不允许的情况下如何确定磁带库设备和操作系统设备文件的对应关系?
我们介绍一种方法:
1)查看有那些磁带设备:
p615:/>lsdev -Cc tape
rmt0 Available 1H-08-01 IBM 3580 Ultrium Tape Drive (FCP)
rmt1 Available 1H-08-01 IBM 3580 Ultrium Tape Drive (FCP)
smc0 Available 1H-08-01 IBM 3583 Library Medium Changer (FCP)
smc1 Available 1H-08-01 IBM 3583 Library Medium Changer (FCP)
2)查看磁带库中的磁带位置情况:
p615:/>tapeutil -f /dev/smc0 invent | more
Reading element status...

Robot Address 1 /*机械臂*/
Robot State .................... Normal
ASC/ASCQ ....................... 0000
Media Present .................. No
Source Element Address Valid ... No
Media Inverted ................. No
Volume Tag .....................

Import/Export Station Address 16 /*I/O口*/
Import/Export State ............ Normal
ASC/ASCQ ....................... 0000
Media Present .................. No
Import Enabled ................. Yes
Export Enabled ................. Yes
Robot Access Allowed ........... Yes
Source Element Address Valid ... No
Media Inverted ................. No
Volume Tag .....................
……
Drive Address 256 /*机械臂*/
Drive State .................... Normal
ASC/ASCQ ....................... 0000
Media Present .................. No
Robot Access Allowed ........... Yes
Source Element Address Valid ... No
Media Inverted ................. No
Same Bus as Medium Changer ..... Yes
SCSI Bus Address ............... 1
Logical Unit Number Valid ...... No
Volume Tag .....................
……
Slot Address 4096 /*槽位*/
Slot State ..................... Abnormal
ASC/ASCQ ....................... 8300
Media Present .................. Yes
Robot Access Allowed ........... Yes
Source Element Address ......... 4096
Media Inverted ................. No
Volume Tag ...................../*我们知道这里有1合lto1没有条码标签*/

Slot Address 4097
Slot State ..................... Normal
ASC/ASCQ ....................... 0000
Media Present .................. Yes
Robot Access Allowed ........... Yes
Source Element Address ......... 4099
Media Inverted ................. No
Volume Tag ..................... CLNU54L1/*清洗带*/

Slot Address 4098
Slot State ..................... Normal
ASC/ASCQ ....................... 0000
Media Present .................. Yes
Robot Access Allowed ........... Yes
Source Element Address ......... 4096
Media Inverted ................. No
Volume Tag ..................... A00004L2
……

3)查看rmtx和element号之间的对应关系:

3、1)物理位置和sn的关系
3583的控制面板上status/drivers可以看到驱动器的物理位置和sn;wwn:
设备 sn wwn
------ ------ ------
lib 1319585
drv1 1110119982 500308C1426A1001
drv2 1110140955 500308C1426A1004

3、2)物理位置和element的关系
每种带库的都有自己的对应关系,请查阅手册(setup and operation guide):

3、3)sn和element关系:
综合1,2可知
drvx sn element
---- ------ ------
drv1 1110119982 256
drv2 1110140955 257

3、4)rmtx和sn的关系:
使用命令
p615:/>lscfg -vps -l rmt0
rmt0 U0.1-P1-I5/Q1-W500308C1426A1001-L0
IBM 3580 Ultrium Tape Drive (FCP)
Manufacturer................IBM
Machine Type and Model......ULT3580-TD2
Serial Number...............1110119982
Device Specific.(FW)........38D0
p615:/>lscfg -vps -l rmt1
rmt1 U0.1-P1-I5/Q1-W500308C1426A1004-L0
IBM 3580 Ultrium Tape Drive (FCP)
Manufacturer................IBM
Machine Type and Model......ULT3580-TD2
Serial Number...............1110140955
Device Specific.(FW)........38D0

3、6)rmtx和element的关系:
综合3,4可知
rmtx drvx sn element
---- ---- ------ ------
rmt0 drv1 1110119982 256
rmt1 drv2 1110140955 257

另外,如果是光纤设备,wwn也是一个识别的方法。
AIX查看每个设备的wwn:
p615:/>lsattr -El rmt1

你可能感兴趣的:(IBM,软件测试,F#,Access,AIX)