(1) 查看磁带机状态 #:/tmp # vmoprcmd DRIVE STATUS Drive Name Label Ready RecMID ExtMID Wr.Enbl. Type Host DrivePath Status ============================================================================= IBM.ULT3580-TD4.003 No No No hcart BEIFEN /dev/rmt4.1 DOWN-TLD
databak {5,0,3,0} TLD newabossdb1_BEIFEN /dev/nst3 ACTIVE newabossdb2_BEIFEN /dev/nst3 SCAN-TLD
(2) 查看磁带机运行情况
#tpconfig -l
Device Robot Drive Robot Drive Device Type Num Index Type DrNum Status Comment Name Path robot 0 - TLD - - - - /dev/ovpass0 drive - 1 hcart 4 UP - IBM.ULT3580-TD4.002 /dev/rmt1.1 drive - 2 hcart3 3 UP - IBM.ULT3580-TD3.000 /dev/rmt2.1 drive - 3 hcart3 1 UP - IBM.ULT3580-TD3.001 /dev/rmt3.1 drive - 4 hcart 2 DOWN - IBM.ULT3580-TD4.003 /dev/rmt4.1 drive - 0 pcd - DISABL - IBM.DDSGEN5.000 /dev/rmt0.1
(3) 进入带库
#robtest Configured robots with local control supporting test utilities: TLD(0) robotic path = /dev/ovpass0 Robot Selection --------------- TLD 0
none/quit Enter choice: 1 (选择带库) Robot selected: TLD(0) robotic path = /dev/ovpass0 Invoking robotic test utility: /usr/openv/volmgr/bin/tldtest -rn 0 -r /dev/ovpass0 Opening /dev/ovpass0 MODE_SENSE complete Enter tld commands (? returns help information)
s d (显示带库以下的所有磁带机信息)
drive 1 (addr 257) access = 0 Contains Cartridge = yes Source address = 1121 (slot 97) Barcode = Y00000L3 SCSI ID from drive 1 is 17 READ_ELEMENT_STATUS complete
s t
address 1,contains cartridge = no sense code = 0x0,code qualifier = 0x0 READ_ELEMENT_STATUS complete