Chinaunix

标题: vistor+nbu6.5使用robtest,可以把磁带移动到dirver,但移出来就有问题 [打印本页]

作者: lookfriend    时间: 2010-08-17 12:06
标题: vistor+nbu6.5使用robtest,可以把磁带移动到dirver,但移出来就有问题
vistor+centos5.4+nbu6.5使用robtest,可以把磁带移动到dirver,但移出来就有问题,请问是什么原因。

[root@vtl ~]# /usr/openv/volmgr/bin/tpconfig -d
Id  DriveName           Type   Residence
      Drive Path                                                       Status
****************************************************************************
0   c51dec171000         hcart  TLD(0)  DRIVE=1
      /dev/nst0                                                        DOWN
1   c51dec172000         hcart  TLD(0)  DRIVE=2
      /dev/nst1                                                        DOWN
2   c51dec173000         hcart  TLD(0)  DRIVE=3
      /dev/nst2                                                        DOWN
3   c51dec174000         hcart  TLD(0)  DRIVE=4
      /dev/nst3                                                        DOWN

Currently defined robotics are:
  TLD(0)     robotic path = /dev/sg2

EMM Server = vtl

[root@vtl ~]# /usr/openv/volmgr/bin/tpautoconf -t
TPAC60 STK     9840            1.00 c51dec174 -1 -1 -1 -1 /dev/nst3 - -
TPAC60 STK     9840            1.00 c51dec173 -1 -1 -1 -1 /dev/nst2 - -
TPAC60 STK     9840            1.00 c51dec172 -1 -1 -1 -1 /dev/nst1 - -
TPAC60 STK     9840            1.00 c51dec171 -1 -1 -1 -1 /dev/nst0 - -


[root@vtl ~]# /usr/openv/volmgr/bin/robtest
Configured robots with local control supporting test utilities:
  TLD(0)     robotic path = /dev/sg2

Robot Selection
---------------
  1)  TLD 0
  2)  none/quit
Enter choice: 1

Robot selected: TLD(0)   robotic path = /dev/sg2

Invoking robotic test utility:
/usr/openv/volmgr/bin/tldtest -rn 0 -r /dev/sg2

Opening /dev/sg2
MODE_SENSE complete
Enter tld commands (? returns help information)
s d
drive 1 (addr 2051) access = 0 Contains Cartridge = yes
Barcode = QQ0001
SCSI ID from drive 1 is 1
drive 2 (addr 2052) access = 0 Contains Cartridge = no
SCSI ID from drive 2 is 2
drive 3 (addr 2053) access = 0 Contains Cartridge = no
SCSI ID from drive 3 is 3
drive 4 (addr 2054) access = 0 Contains Cartridge = no
SCSI ID from drive 4 is 4
READ_ELEMENT_STATUS complete

Invalid command
s s
slot 1 (addr 1) contains Cartridge = no
slot 2 (addr 2) contains Cartridge = yes
Barcode = QQ0002
slot 3 (addr 3) contains Cartridge = yes
Barcode = QQ0003
slot 4 (addr 4) contains Cartridge = yes
Barcode = QQ0004
slot 5 (addr 5) contains Cartridge = yes
Barcode = QQ0005
slot 6 (addr 6) contains Cartridge = yes
Barcode = QQ0006
slot 7 (addr 7) contains Cartridge = yes
Barcode = QQ0007
slot 8 (addr contains Cartridge = no
slot 9 (addr 9) contains Cartridge = no
slot 10 (addr 10) contains Cartridge = no
slot 11 (addr 11) contains Cartridge = no
slot 12 (addr 12) contains Cartridge = no
slot 13 (addr 13) contains Cartridge = no
slot 14 (addr 14) contains Cartridge = no
slot 15 (addr 15) contains Cartridge = no
<< Press return to continue, or q and return to stop >>

slot 16 (addr 16) contains Cartridge = yes
Barcode = QQ0008
READ_ELEMENT_STATUS complete

Invalid command

Invalid command
m s16 d2
Initiating MOVE_MEDIUM from address 16 to 2052
MOVE_MEDIUM complete
m d2 s16
Initiating MOVE_MEDIUM from address 2052 to 16
move_medium failed
sense key = 0x5, asc = 0x3b, ascq = 0x90, UNKNOWN ERROR, KEY: 0x05, ASC: 0x3B, ASCQ: 0x90
作者: 无牙    时间: 2010-08-17 13:39
s d

这个命令是什么结果?
作者: lookfriend    时间: 2010-08-17 14:18
非常感谢版主老大的关注,不胜感谢。
[root@vtl ~]# /usr/openv/volmgr/bin/robtest
Configured robots with local control supporting test utilities:
  TLD(0)     robotic path = /dev/sg2

Robot Selection
---------------
  1)  TLD 0
  2)  none/quit
Enter choice: 1

Robot selected: TLD(0)   robotic path = /dev/sg2

Invoking robotic test utility:
/usr/openv/volmgr/bin/tldtest -rn 0 -r /dev/sg2

Opening /dev/sg2
MODE_SENSE complete
Enter tld commands (? returns help information)
s d
drive 1 (addr 2051) access = 0 Contains Cartridge = yes
Barcode = QQ0001
SCSI ID from drive 1 is 1
drive 2 (addr 2052) access = 0 Contains Cartridge = yes
Barcode = QQ0008
SCSI ID from drive 2 is 2
drive 3 (addr 2053) access = 0 Contains Cartridge = no
SCSI ID from drive 3 is 3
drive 4 (addr 2054) access = 0 Contains Cartridge = no
SCSI ID from drive 4 is 4
READ_ELEMENT_STATUS complete
作者: 无牙    时间: 2010-08-17 16:04
做robtest的时候驱动状态是down还是up?
作者: lookfriend    时间: 2010-08-17 16:36
本帖最后由 lookfriend 于 2010-08-17 16:48 编辑

我另外开了个窗口,看到状态是这样,但是我从slot移动磁带到driver没问题。

[root@vtl bin]# /usr/openv/volmgr/bin/tpconfig -d
Id  DriveName           Type   Residence
      Drive Path                                                       Status
****************************************************************************
0   c51dec171000         hcart  TLD(0)  DRIVE=1
      /dev/nst0                                                        DOWN
1   c51dec172000         hcart  TLD(0)  DRIVE=2
      /dev/nst1                                                        DOWN
2   c51dec173000         hcart  TLD(0)  DRIVE=3
      /dev/nst2                                                        DOWN
3   c51dec174000         hcart  TLD(0)  DRIVE=4
      /dev/nst3                                                        DOWN

Currently defined robotics are:
  TLD(0)     robotic path = /dev/sg2

EMM Server = vtl

[root@vtl bin]#
作者: xzc999    时间: 2010-08-17 20:38
这个是index的问题,我遇到过
LZ换个mhvtl软件看看
作者: lookfriend    时间: 2010-08-17 21:57
多谢楼上大哥,
但是我已经把序列调整好了啊。
您看:

[root@vtl ~]# /usr/openv/volmgr/bin/tpconfig -d
Id  DriveName           Type   Residence
      Drive Path                                                       Status
****************************************************************************
0   c51dec171000         hcart  TLD(0)  DRIVE=1
      /dev/nst0                                                        DOWN
1   c51dec172000         hcart  TLD(0)  DRIVE=2
      /dev/nst1                                                        DOWN
2   c51dec173000         hcart  TLD(0)  DRIVE=3
      /dev/nst2                                                        DOWN
3   c51dec174000         hcart  TLD(0)  DRIVE=4
      /dev/nst3                                                        DOWN

Currently defined robotics are:
  TLD(0)     robotic path = /dev/sg2

EMM Server = vtl
作者: xzc999    时间: 2010-08-18 09:04
你driver是down掉的,重新up下。
作者: lookfriend    时间: 2010-08-18 11:28
多谢楼上,大哥,如何把driver up,
我的带库都在开着啊




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2