重启虚拟机后, 带库 不能 work 的解决方案
最近 tsm 研究,所获很大啊!
最近,搞了虚拟带库玩tsm, 昨天把虚拟机停了以后,今天发现虚拟带库不能用了,分享一下解决的经验:
今天启动 tsm server 端后:
ANR8840E Unable to open device /dev/tsmscsi/lb0 with file handle 2
原因找到:
是server 的虚拟带库没有启动:
解决方法:
cd /usr/cofi/vistor
./vistor start
在把库启动起来:还是这个目录:
./vs-library --setstate online --libid 1
就会发现:
cd /proc/scsi
[root@sheng scsi]# more scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: VMware, Model: VMware Virtual S Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: QUANTUM Model: Scalar i500 Rev: 1.00
Type: Medium Changer ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 01 Lun: 00
Vendor: HP Model: Ultrium 2-SCSI Rev: 1.00
Type: Sequential-Access ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 02 Lun: 00
Vendor: HP Model: Ultrium 2-SCSI Rev: 1.00
Type: Sequential-Access ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 03 Lun: 00
Vendor: HP Model: Ultrium 2-SCSI Rev: 1.00
Type: Sequential-Access ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 04 Lun: 00
Vendor: HP Model: Ultrium 2-SCSI Rev: 1.00
Type: Sequential-Access ANSI SCSI revision: 03
如果没有启动起来的话,只有:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: VMware, Model: VMware Virtual S Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
注意,现在还不是最后的解决方案,
现在:ls -l /dev/tsmscsi/.. 发现dev 下面没有tsm
而且:tsm :> show slots vtl01 也报没有该库 vtl01的信息
原因找到,是tsm 没有和vistor 虚拟带库关联
解决方法:
cd /opt/tivoli/tsm/devices/bin
./autoconf
现在发现:
[root@sheng bin]# ./autoconf
Tivoli Tape Drives:
===================
Index Minor Host CHN ID LUN Type Vendor_ID Device_Serial_Number Product_ID Rev.
000 002 001 000 001 000 001 HP 58d85c3f1 Ultrium 2-SCSI 1.00
001 003 001 000 002 000 001 HP 58d85c3f2 Ultrium 2-SCSI 1.00
002 004 001 000 003 000 001 HP 58d85c3f3 Ultrium 2-SCSI 1.00
003 005 001 000 004 000 001 HP 58d85c3f4 Ultrium 2-SCSI 1.00
Tivoli Medium Changer Devices:
==============================
Index Minor Host CHN ID LUN Type Vendor_ID Device_Serial_Number Product_ID Rev.
000 001 001 000 000 000 008 QUANTUM 58d85c3f0
[root@sheng dev]# cd tsmscsi/
[root@sheng tsmscsi]# ls -l
total 8
lrwxrwxrwx 1 root root 8 May 22 18:35 lb0 -> /dev/sg1
-rw-r--r-- 1 root root 175 May 22 18:35 lbinfo
lrwxrwxrwx 1 root root 8 May 22 18:35 mt0 -> /dev/sg2
lrwxrwxrwx 1 root root 8 May 22 18:35 mt1 -> /dev/sg3
lrwxrwxrwx 1 root root 8 May 22 18:35 mt2 -> /dev/sg4
lrwxrwxrwx 1 root root 8 May 22 18:35 mt3 -> /dev/sg5
-rw-r--r-- 1 root root 436 May 22 18:35 mtinfo
所以问题解决,很高兴。
这个时候,
TSM :> show slots vtl01 发现还没有库:vtl01 的信息,是为是么呢?
重新启动tsm server
问题解决:
show slots vtl01
ANR2017I Administrator SERVER_CONSOLE issued command: show slots vtl01
PVR slot information for library VTL01.
Library : VTL01
Product Id : Scalar i500
Support module : 2
Mount count : 0
Drives : 4
Slots : 4
Changers : 1
Import/Exports : 0
Device : /dev/tsmscsi/lb0
Drive 0, element 2051
Drive 1, element 2052
Drive 2, element 2053
Drive 3, element 2054
Changer 0, element 0
Slot 0, status Allocated, element number 1, barcode not present, barcode value <>,
devT=ANY, mediaT=-1, elemT=ANY
Slot 1, status Allocated, element number 2, barcode not present, barcode value <>,
devT=ANY, mediaT=-1, elemT=ANY
Slot 2, status Allocated, element number 3, barcode not present, barcode value <>,
devT=ANY, mediaT=-1, elemT=ANY
Slot 3, status Allocated, element number 4, barcode not present, barcode value <>,
devT=ANY, mediaT=-1, elemT=ANY
slot element range 1 - 4
更多推荐
所有评论(0)