my rhel5+lin_tape1.34+mhvtl-0.18-12 installed lin_tape don‘t work

classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|

my rhel5+lin_tape1.34+mhvtl-0.18-12 installed lin_tape don‘t work

zengold
i was install rhel5 x32 system,use auto install scripts to install mhvtl-0.18-12 and tgt success!but i want to tsm5.5 on mhvtl config emulation 3584L23 library & IBM LTO1 drviers for testing

according 《Success: TSM 5.5.4 + mhvtl-0.18-11 (** UPDATED) 》to config my device.conf & library_contents.150

http://mhvtl-linux-virtual-tape-library-community-forums.966029.n3.nabble.com/Success-TSM-5-5-4-mhvtl-0-18-11-UPDATED-td1684574.html

device.conf file below

Library: 150 CHANNEL: 17 TARGET: 00 LUN: 00
Vendor identification: IBM
Product identification: 03584L32
Product revision level: 4.02
Unit serial number: 9890400
NAA: 150:22:33:44:ab:00:00:00

Drive: 151 CHANNEL: 17 TARGET: 01 LUN: 00
Library ID: 150 Slot: 01
Vendor identification: IBM
Product identification: ULT3580-TD1
Product revision level: 0BN1
Unit serial number: 9825111
NAA: 150:22:33:44:ab:00:01:00
Compression: factor 1 enabled 1

Drive: 152 CHANNEL: 17 TARGET: 02 LUN: 00
Library ID: 150 Slot: 02
Vendor identification: IBM
Product identification: ULT3580-TD1
Product revision level: 0BN1
Unit serial number: 9825112
NAA: 150:22:33:44:ab:00:02:00
Compression: factor 1 enabled 1

Drive: 153 CHANNEL: 17 TARGET: 03 LUN: 00
Library ID: 150 Slot: 03
Vendor identification: IBM
Product identification: ULT3580-TD1
Product revision level: 0BN1
Unit serial number: 9825113
NAA: 150:22:33:44:ab:00:03:00
Compression: factor 1 enabled 1

Drive: 154 CHANNEL: 17 TARGET: 04 LUN: 00
Library ID: 150 Slot: 04
Vendor identification: IBM
Product identification: ULT3580-TD1
Product revision level: 0BN1
Unit serial number: 9825114
NAA: 150:22:33:44:ab:00:04:00
Compression: factor 1 enabled 1

Drive: 155 CHANNEL: 17 TARGET: 05 LUN: 00
Library ID: 150 Slot: 05
Vendor identification: IBM
Product identification: ULT3580-TD1
Product revision level: 0BN1
Unit serial number: 9825115
NAA: 150:22:33:44:ab:00:05:00
Compression: factor 1 enabled 1
-----------------------------------------------------
library_contents.150 file below

Drive 1:
Drive 2:
Drive 3:
Drive 4:
Drive 5:

Picker 1:

MAP 1:
MAP 2:
MAP 3:
MAP 4:
MAP 5:


Slot 1: ULT001L1
Slot 2: ULT002L1
Slot 3: ULT003L1
Slot 4: ULT004L1
Slot 5: ULT005L1
Slot 6: ULT006L1
Slot 7: ULT007L1
Slot 8: ULT008L1
Slot 9: ULT009L1
Slot 10: ULT010L1
Slot 11: ULT011L1
Slot 12: ULT012L1
Slot 13: ULT013L1
Slot 14: ULT014L1
Slot 15: ULT015L1
Slot 16: ULT016L1
--------------------------------------------------------------
/etc/init.d/mhvtl start
vtltape: version 0.18.12
vtltape: version 0.18.12
vtltape: version 0.18.12
vtltape: version 0.18.12
vtltape: version 0.18.12
vtllibrary: version 0.18.12
vtllibrary process PID is 22162
----------------------------------------------------------------
root@localhost mhvtl]# lsscsi -g
[0:0:0:0]    disk    VMware,  VMware Virtual S 1.0   /dev/sda  /dev/sg0
[1:17:0:0]   mediumx IBM      03584L3          4.02  -         /dev/sg6
[1:17:1:0]   tape    IBM      ULT3580-TD       0BN1  /dev/st0  /dev/sg1
[1:17:2:0]   tape    IBM      ULT3580-TD       0BN1  /dev/st1  /dev/sg2
[1:17:3:0]   tape    IBM      ULT3580-TD       0BN1  /dev/st2  /dev/sg3
[1:17:4:0]   tape    IBM      ULT3580-TD       0BN1  /dev/st3  /dev/sg4
[1:17:5:0]   tape    IBM      ULT3580-TD       0BN1  /dev/st4  /dev/sg5

continue to lin_tape was install complete!
switch lin_tape service on after,can only display below(IBMchanger0,pick)

service lin_tape start
Starting lin_tape:

service running ok!

[root@localhost mhvtl]# ls -l /dev/IBM*
crw------- 1 root root 253, 2048 Nov 19 11:06 /dev/IBMchanger0

i found this error for tail /var/log/message:
Nov 19 11:06:28 localhost kernel: lin_tape: attached IBMchanger0
Nov 19 11:06:28 localhost vtllibrary[16823]: add_lu: Wrote add 150 17 0 0  (15 bytes)
Nov 19 11:06:28 localhost vtllibrary[16829]: CDB (283) 12 01 00 00 fe 00
Nov 19 11:06:28 localhost vtllibrary[16823]: add_lu: Child anounces 'lu created'.
Nov 19 11:06:29 localhost vtllibrary[16829]: spc_inquiry: INQUIRY *** (283)
Nov 19 11:06:29 localhost vtllibrary[16829]: spc_inquiry: Page code 0x00
Nov 19 11:06:29 localhost vtllibrary[16829]: completeSCSICommand: OP s/n: (283), sz: 11, sam_status: 0
Nov 19 11:06:29 localhost vtllibrary[16829]: CDB (284) 12 01 00 00 fe 00
Nov 19 11:06:29 localhost vtllibrary[16829]: spc_inquiry: INQUIRY *** (284)
Nov 19 11:06:29 localhost vtllibrary[16829]: spc_inquiry: Page code 0x00
Nov 19 11:06:29 localhost vtllibrary[16829]: completeSCSICommand: OP s/n: (284), sz: 11, sam_status: 0
Nov 19 11:06:29 localhost vtllibrary[16829]: CDB (285) 12 01 83 00 fe 00
Nov 19 11:06:29 localhost vtllibrary[16829]: spc_inquiry: INQUIRY *** (285)
Nov 19 11:06:29 localhost vtllibrary[16829]: spc_inquiry: Page code 0x83
Nov 19 11:06:29 localhost vtllibrary[16829]: spc_inquiry: Found page 0x83
Nov 19 11:06:29 localhost vtllibrary[16829]: completeSCSICommand: OP s/n: (285), sz: 54, sam_status: 0
Nov 19 11:06:29 localhost vtllibrary[16829]: CDB (286) 12 01 83 00 fe 00
Nov 19 11:06:29 localhost vtllibrary[16829]: spc_inquiry: INQUIRY *** (286)
Nov 19 11:06:29 localhost vtllibrary[16829]: spc_inquiry: Page code 0x83
Nov 19 11:06:29 localhost vtllibrary[16829]: spc_inquiry: Found page 0x83
Nov 19 11:06:29 localhost vtllibrary[16829]: completeSCSICommand: OP s/n: (286), sz: 54, sam_status: 0
Nov 19 11:07:58 localhost vtltape[14385]: CDB (287) 12 00 00 00 38 00
Nov 19 11:07:58 localhost vtltape[14385]: spc_inquiry: INQUIRY *** (287)
Nov 19 11:07:58 localhost vtltape[14385]: completeSCSICommand: OP s/n: (287), sz: 66, sam_status: 0
Nov 19 11:07:59 localhost vtltape[15066]: CDB (288) 12 00 00 00 38 00
Nov 19 11:07:59 localhost vtltape[15066]: spc_inquiry: INQUIRY *** (288)
Nov 19 11:07:59 localhost vtltape[15066]: completeSCSICommand: OP s/n: (288), sz: 66, sam_status: 0
Nov 19 11:07:59 localhost vtltape[15365]: CDB (289) 12 00 00 00 38 00
Nov 19 11:07:59 localhost vtltape[15365]: spc_inquiry: INQUIRY *** (289)
Nov 19 11:07:59 localhost vtltape[15365]: completeSCSICommand: OP s/n: (289), sz: 66, sam_status: 0
Nov 19 11:07:59 localhost vtltape[15706]: CDB (290) 12 00 00 00 38 00
Nov 19 11:07:59 localhost vtltape[15706]: spc_inquiry: INQUIRY *** (290)
Nov 19 11:07:59 localhost vtltape[15706]: completeSCSICommand: OP s/n: (290), sz: 66, sam_status: 0
Nov 19 11:08:00 localhost vtltape[16003]: CDB (291) 12 00 00 00 38 00
Nov 19 11:08:00 localhost vtltape[16003]: spc_inquiry: INQUIRY *** (291)
Nov 19 11:08:00 localhost vtltape[16003]: completeSCSICommand: OP s/n: (291), sz: 66, sam_status: 0
Nov 19 11:08:00 localhost vtllibrary[16829]: CDB (292) 12 00 00 00 38 00
Nov 19 11:08:00 localhost vtllibrary[16829]: spc_inquiry: INQUIRY *** (292)
Nov 19 11:08:00 localhost vtllibrary[16829]: completeSCSICommand: OP s/n: (292),

tell me  spc_inquiry: INQUIRY *** (289)

pls help me to resolve problem thxs
Reply | Threaded
Open this post in threaded view
|

Re: my rhel5+lin_tape1.34+mhvtl-0.18-12 installed lin_tape don‘t work

Mark Harvey
Administrator
The snippet of the log provided. shows a continued polling of the tape drive for a standard SCSI INQUIRY.

Nov 19 11:07:58 localhost vtltape[14385]: CDB (287) 12 00 00 00 38 00
Nov 19 11:07:58 localhost vtltape[14385]: spc_inquiry: INQUIRY *** (287)
Nov 19 11:07:58 localhost vtltape[14385]: completeSCSICommand: OP s/n: (287), sz: 66, sam_status: 0


The 'number' in () is the internal SCSI serial number assigned by the Linux SCSI mid-layer stack.
i.e. The three above log entries belong to the same operation.

The STATUS returned by the vtltape daemon is a 'GOOD' (sam_status: 0) and returned 66 bytes of information.

i.e. A SCSI INQUIRY was sent to the device and the data was returned successfully..

So, the lin_tape started and reported it started successfully, a SCSI Inquiry was sent to each tape device with no error.

From the information you have supplied, everything is working.
What sort of assistance are you after ?

You may need to take with TSM support for futher assistance with TSM..

Cheers
Regards from Australia
Mark Harvey
nia
Reply | Threaded
Open this post in threaded view
|

Re: my rhel5+lin_tape1.34+mhvtl-0.18-12 installed lin_tape don‘t work

nia
Administrator
In reply to this post by zengold
If you look at your lsscsi -g output, you will notice that library and drive devices are missing the last character ..
I have seen this before when people copy and paste device.conf and not embedding spaces correctly ..

Mark, this was a bug seen before .. This can get confusing if MHVTL code continue to not validate configuration files.

zengold, please update your device.conf as seen below and restart MHVTL .. I am using RAW text format in this forum so text can show spaces correctly:


Library: 150 CHANNEL: 17 TARGET: 00 LUN: 00
 Vendor identification: IBM
 Product identification: 03584L32
 Product revision level: 4.02
 Unit serial number: 98904000
 NAA: 99:22:33:44:cd:00:00:00

Drive: 151 CHANNEL: 17 TARGET: 01 LUN: 00
 Library ID: 150 Slot: 01
 Vendor identification: IBM
 Product identification: ULTRIUM-TD1
 Product revision level: 4561
 Unit serial number: 09825111
 NAA: 99:22:33:44:cd:00:01:00
 Compression: factor 1 enabled 1
 READ_WRITE: LTO_1

Drive: 152 CHANNEL: 17 TARGET: 02 LUN: 00
 Library ID: 150 Slot: 02
 Vendor identification: IBM
 Product identification: ULTRIUM-TD1
 Product revision level: 4561
 Unit serial number: 09825112
 NAA: 99:22:33:44:cd:00:02:00
 Compression: factor 1 enabled 1
 READ_WRITE: LTO_1

Drive: 153 CHANNEL: 17 TARGET: 03 LUN: 00
 Library ID: 150 Slot: 03
 Vendor identification: IBM
 Product identification: ULTRIUM-TD1
 Product revision level: 4561
 Unit serial number: 09825113
 NAA: 99:22:33:44:cd:00:03:00
 Compression: factor 1 enabled 1
 READ_WRITE: LTO_1

Drive: 154 CHANNEL: 17 TARGET: 04 LUN: 00
 Library ID: 150 Slot: 04
 Vendor identification: IBM
 Product identification: ULTRIUM-TD1
 Product revision level: 4561
 Unit serial number: 09825114
 NAA: 99:22:33:44:cd:00:04:00
 Compression: factor 1 enabled 1
 READ_WRITE: LTO_1

Drive: 155 CHANNEL: 17 TARGET: 05 LUN: 00
 Library ID: 150 Slot: 05
 Vendor identification: IBM
 Product identification: ULTRIUM-TD1
 Product revision level: 4561
 Unit serial number: 09825115
 NAA: 99:22:33:44:cd:00:05:00
 Compression: factor 1 enabled 1
 READ_WRITE: LTO_1


[2:17:0:0]   mediumx IBM      03584L32         4.02  /dev/sch0  /dev/sg9
[2:17:1:0]   tape    IBM      ULTRIUM-TD1      4561  /dev/st0   /dev/sg4
[2:17:2:0]   tape    IBM      ULTRIUM-TD1      4561  /dev/st1   /dev/sg5
[2:17:3:0]   tape    IBM      ULTRIUM-TD1      4561  /dev/st2   /dev/sg6
[2:17:4:0]   tape    IBM      ULTRIUM-TD1      4561  /dev/st3   /dev/sg7
[2:17:5:0]   tape    IBM      ULTRIUM-TD1      4561  /dev/st4   /dev/sg8

Reply | Threaded
Open this post in threaded view
|

Re: my rhel5+lin_tape1.34+mhvtl-0.18-12 installed lin_tape don‘t work

Mark Harvey
Administrator
Re: This can get confusing if MHVTL code continue to not validate configuration files.

Agreed.

I'm not a big fan of the existing config files and the amount of manual work to add new devices.

Some sort of xml format would be nice, except then it adds extra complexities / dependencies at compile time.

The web interface is a good middle ground. i.e. The config file is generated by a script (which should get it correct).

I'll think about how to perform some sort of validation checks on the config file.

p.s. BTW:  Good pick up on the cause of the problem.

Cheers
Mark
Regards from Australia
Mark Harvey
Reply | Threaded
Open this post in threaded view
|

Re: my rhel5+lin_tape1.34+mhvtl-0.18-12 installed lin_tape don‘t work

zengold
In reply to this post by nia
manay thks nia brother's reply i will try it again!but i want to you give me more mhvtl for tsm suggestion!
nia
Reply | Threaded
Open this post in threaded view
|

Re: my rhel5+lin_tape1.34+mhvtl-0.18-12 installed lin_tape don‘t work

nia
Administrator
For TSM, I have atchieved best results with the following :

Use the device.conf I supplied above for IBM devices, LTO-1 only .. (device type LTO) + IBM lin_tape driver ..

You can also use "STK" type library with T10000A (device type ECARTRIDGE) drives + TSM mt driver also will work fine in TSM ..Anything else causes problems at this time ..

In TSM, I used the following :


DEFINE Library 03584L32 libtype=scsi serial=autodetect AutoLabel=yes RelabelScratch=yes
DEFINE Devc 03584L32 library=03584L32 devt=lto estcapacity=2048m mountwait=5 mountret=1
DEFINE stgp mhvtl 03584L32 maxscr=400
DEFINE PATH TSM6 03584L32 SRCType=SERVER DESTType=LIBRary Device=/dev/IBMchanger0 ONLine=yes
DEFINE drive 03584L32 drive1 serial=autodetect element=1 online=yes
DEFINE drive 03584L32 drive2 serial=autodetect element=2 online=yes
DEFINE drive 03584L32 drive3 serial=autodetect element=3 online=yes
DEFINE drive 03584L32 drive4 serial=autodetect element=4 online=yes
DEFINE drive 03584L32 drive5 serial=autodetect element=5 online=yes
DEFINE PATH TSM6 drive1 SRCType=SERVER DESTType=drive LIBRary=03584L32 Device=/dev/IBMtape0 ONLine=yes
DEFINE PATH TSM6 drive2 SRCType=SERVER DESTType=drive LIBRary=03584L32 Device=/dev/IBMtape1 ONLine=yes
DEFINE PATH TSM6 drive3 SRCType=SERVER DESTType=drive LIBRary=03584L32 Device=/dev/IBMtape2 ONLine=yes
DEFINE PATH TSM6 drive4 SRCType=SERVER DESTType=drive LIBRary=03584L32 Device=/dev/IBMtape3 ONLine=yes
DEFINE PATH TSM6 drive5 SRCType=SERVER DESTType=drive LIBRary=03584L32 Device=/dev/IBMtape4 ONLine=yes
AUDIT LIBRary 03584L32 CHECKLabel=yes
CHECKIn LIBVolume 03584L32 CHECKLabel=barcode SEARCH=Yes status=scratch devt=lto


Let me know if you need more help in TSM ...

n.i.a
Reply | Threaded
Open this post in threaded view
|

Re: my rhel5+lin_tape1.34+mhvtl-0.18-12 installed lin_tape don‘t work

zengold
i was following n.i.a brother's method(according uper config list and tsm config issue ) to configure my mhvtl and TSM,but continue to define library command display error below

tsm: SERVER1>DEFINE PATH TSM6 03584L32 SRCType=SERVER DESTType=LIBRary Device=/d             ev/IBMchanger0 ONLine=yes
ANR8957E DEFINE PATH: The serial number reported by the library did not match
the serial number in the library definition.
ANS8001I Return code 15.

i founding my linux errorlog is below

Nov 20 12:25:33 localhost vtllibrary[6622]: smc_read_element_status: READ ELEMENT STATUS (185) **
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (186) 17 00 00 00 00 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_release: RESERVE UNIT (186) **
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (187) 12 00 00 00 ff 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_inquiry: INQUIRY *** (187)
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (188) 12 01 80 00 ff 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_inquiry: INQUIRY *** (188)
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (189) 00 00 00 00 00 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_tur: ** Test Unit Ready : Returning =>  (189) Online **
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (190) 16 00 00 00 00 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_reserve: RESERVE UNIT (190) **
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (191) 12 00 00 00 ff 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_inquiry: INQUIRY *** (191)
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (192) 12 01 80 00 ff 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_inquiry: INQUIRY *** (192)
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (193) 12 01 83 00 ff 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_inquiry: INQUIRY *** (193)
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (194) 17 00 00 00 00 00

error look like mhvtl internal error? i wish n.i.a brother resolved problem again!@ very thxs
cheers!
Reply | Threaded
Open this post in threaded view
|

Re: my rhel5+lin_tape1.34+mhvtl-0.18-12 installed lin_tape don‘t work

zengold
addional my lin_tape version is lin_tape-1.34.0-1,install be OK

[root@localhost mhvtl]# ls -l /dev/IBM*
crw------- 1 root root 253, 2048 Nov 20 12:13 /dev/IBMchanger0
crw------- 1 root root 253,    0 Nov 20 12:13 /dev/IBMtape0
crw------- 1 root root 253, 1024 Nov 20 12:13 /dev/IBMtape0n
crw------- 1 root root 253,    1 Nov 20 12:13 /dev/IBMtape1
crw------- 1 root root 253, 1025 Nov 20 12:13 /dev/IBMtape1n
crw------- 1 root root 253,    2 Nov 20 12:13 /dev/IBMtape2
crw------- 1 root root 253, 1026 Nov 20 12:13 /dev/IBMtape2n
crw------- 1 root root 253,    3 Nov 20 12:13 /dev/IBMtape3
crw------- 1 root root 253, 1027 Nov 20 12:13 /dev/IBMtape3n
crw------- 1 root root 253,    4 Nov 20 12:13 /dev/IBMtape4
crw------- 1 root root 253, 1028 Nov 20 12:13 /dev/IBMtape4n

show message was normal to use n.i.a brother's config list


more detial for linux errorlog

Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (170) 12 00 00 00 ff 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_inquiry: INQUIRY *** (170)
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (171) 12 01 80 00 ff 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_inquiry: INQUIRY *** (171)
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (172) 00 00 00 00 00 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_tur: ** Test Unit Ready : Returning =>  (172) Online **
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (173) 16 00 00 00 00 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_reserve: RESERVE UNIT (173) **
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (174) 12 00 00 00 ff 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_inquiry: INQUIRY *** (174)
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (175) 1a 08 1d 00 18 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_mode_sense: MODE SENSE (175) ***
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (176) 1a 08 1d 00 18 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_mode_sense: MODE SENSE (176) ***
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (177) 1a 08 1d 00 18 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_mode_sense: MODE SENSE (177) ***
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (178) b8 14 00 01 00 05 00 00 01 14 00 00
Nov 20 12:25:33 localhost vtllibrary[6622]: smc_read_element_status: READ ELEMENT STATUS (178) **
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (179) b8 13 02 00 00 05 00 00 01 14 00 00
Nov 20 12:25:33 localhost vtllibrary[6622]: smc_read_element_status: READ ELEMENT STATUS (179) **
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (180) b8 12 04 00 00 10 00 00 03 50 00 00
Nov 20 12:25:33 localhost vtllibrary[6622]: smc_read_element_status: READ ELEMENT STATUS (180) **
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (181) b8 11 01 00 00 01 00 00 00 44 00 00
Nov 20 12:25:33 localhost vtllibrary[6622]: smc_read_element_status: READ ELEMENT STATUS (181) **
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (182) 1a 08 1d 00 18 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_mode_sense: MODE SENSE (182) ***
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (183) b8 14 00 01 00 05 00 00 01 14 00 00
Nov 20 12:25:33 localhost vtllibrary[6622]: smc_read_element_status: READ ELEMENT STATUS (183) **
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (184) 1a 08 1d 00 18 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_mode_sense: MODE SENSE (184) ***
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (185) b8 04 00 01 00 05 01 00 01 a0 00 00
Nov 20 12:25:33 localhost vtllibrary[6622]: smc_read_element_status: READ ELEMENT STATUS (185) **
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (186) 17 00 00 00 00 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_release: RESERVE UNIT (186) **
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (187) 12 00 00 00 ff 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_inquiry: INQUIRY *** (187)
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (188) 12 01 80 00 ff 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_inquiry: INQUIRY *** (188)
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (189) 00 00 00 00 00 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_tur: ** Test Unit Ready : Returning =>  (189) Online **
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (190) 16 00 00 00 00 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_reserve: RESERVE UNIT (190) **
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (191) 12 00 00 00 ff 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_inquiry: INQUIRY *** (191)
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (192) 12 01 80 00 ff 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_inquiry: INQUIRY *** (192)
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (193) 12 01 83 00 ff 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_inquiry: INQUIRY *** (193)
Nov 20 12:25:33 localhost vtllibrary[6622]: CDB (194) 17 00 00 00 00 00
Nov 20 12:25:33 localhost vtllibrary[6622]: spc_release: RESERVE UNIT (194) **
nia
Reply | Threaded
Open this post in threaded view
|

Re: my rhel5+lin_tape1.34+mhvtl-0.18-12 installed lin_tape don‘t work

nia
Administrator
In reply to this post by zengold
I don't know if had any previous TSM definitions done before updating mhvtl, but if you did, please delete all TSM configs/Restart TSM and then redefine all new again.
Reply | Threaded
Open this post in threaded view
|

Re: my rhel5+lin_tape1.34+mhvtl-0.18-12 installed lin_tape don‘t work

zengold
i just resolved tsm problem,here is TSM was not support serial=autodetect prarmeters,need manual to change serial=(config list SerialNumber)

DEFINE Library 03584L32 libtype=scsi serial=98904000 AutoLabel=yes RelabelScratch=yes

DEFINE Devc 03584L32 library=03584L32 devt=lto estcapacity=2048m mountwait=5 mountret=1

DEFINE stgp mhvtl 03584L32 maxscr=400

DEFINE PATH TSM6 03584L32 SRCType=SERVER DESTType=LIBRary Device=/dev/IBMchanger0 ONLine=yes

DEFINE drive 03584L32 drive1 serial=09825111 element=1 online=yes

DEFINE drive 03584L32 drive2 serial=09825112 element=2 online=yes

DEFINE drive 03584L32 drive3 serial=09825113 element=3 online=yes

DEFINE drive 03584L32 drive4 serial=09825114 element=4 online=yes

DEFINE drive 03584L32 drive5 serial=09825115 element=5 online=yes

DEFINE PATH TSM6 drive1 SRCType=SERVER DESTType=drive LIBRary=03584L32 Device=/dev/IBMtape0 ONLine=yes

DEFINE PATH TSM6 drive2 SRCType=SERVER DESTType=drive LIBRary=03584L32 Device=/dev/IBMtape1 ONLine=yes

DEFINE PATH TSM6 drive3 SRCType=SERVER DESTType=drive LIBRary=03584L32 Device=/dev/IBMtape2 ONLine=yes

DEFINE PATH TSM6 drive4 SRCType=SERVER DESTType=drive LIBRary=03584L32 Device=/dev/IBMtape3 ONLine=yes

DEFINE PATH TSM6 drive5 SRCType=SERVER DESTType=drive LIBRary=03584L32 Device=/dev/IBMtape4 ONLine=yes

AUDIT LIBRary 03584L32 CHECKLabel=yes

CHECKIn LIBVolume 03584L32 CHECKLabel=barcode SEARCH=Yes status=scratch devt=lto

------------------------------------------------------------------------------------------------------------
was successful!

TSM ENV

sm: TSM6>q path

Source Name     Source Type     Destination     Destination     On-Line
                                Name            Type            
-----------     -----------     -----------     -----------     -------
TSM6            SERVER          03584L32        LIBRARY         Yes    
TSM6            SERVER          DRIVE1          DRIVE           Yes    
TSM6            SERVER          DRIVE2          DRIVE           Yes    
TSM6            SERVER          DRIVE3          DRIVE           Yes    
TSM6            SERVER          DRIVE4          DRIVE           Yes    
TSM6            SERVER          DRIVE5          DRIVE           Yes    

tsm: TSM6>q drive

Library Name     Drive Name       Device Type     On-Line            
------------     ------------     -----------     -------------------
03584L32         DRIVE1           LTO             Yes                
03584L32         DRIVE2           LTO             Yes                
03584L32         DRIVE3           LTO             Yes                
03584L32         DRIVE4           LTO             Yes                
03584L32         DRIVE5           LTO             Yes                

tsm: TSM6>q libv

Library Name Volume Name Status           Owner      Last Use  Home    Device
                                                               Element Type  
------------ ----------- ---------------- ---------- --------- ------- ------
03584L32     ULT001L1    Scratch                               1,024   LTO  
03584L32     ULT002L1    Scratch                               1,025   LTO  
03584L32     ULT003L1    Scratch                               1,026   LTO  
03584L32     ULT004L1    Scratch                               1,027   LTO  
03584L32     ULT005L1    Scratch                               1,028   LTO  
03584L32     ULT006L1    Scratch                               1,029   LTO  
03584L32     ULT007L1    Scratch                               1,030   LTO  
03584L32     ULT008L1    Scratch                               1,031   LTO  
03584L32     ULT009L1    Scratch                               1,032   LTO  
03584L32     ULT010L1    Scratch                               1,033   LTO  
03584L32     ULT011L1    Scratch                               1,034   LTO  
03584L32     ULT012L1    Scratch                               1,035   LTO  
03584L32     ULT013L1    Scratch                               1,036   LTO  
03584L32     ULT014L1    Scratch                               1,037   LTO  
03584L32     ULT015L1    Scratch                               1,038   LTO  
03584L32     ULT016L1    Scratch                               1,039   LTO  

-------------------------------------------------------------------------------
next targets is use mhvtl on tsm backup my oracle,or my file test!many many thxs n.i.a brother warm help!
nia
Reply | Threaded
Open this post in threaded view
|

Re: my rhel5+lin_tape1.34+mhvtl-0.18-12 installed lin_tape don‘t work

nia
Administrator
Congratulations  
Reply | Threaded
Open this post in threaded view
|

Re: my rhel5+lin_tape1.34+mhvtl-0.18-12 installed lin_tape don‘t work

zengold
n.i.a's brother i have a little request to you!~  can you post me < you have Experience
 to build "STK" type library with T10000A (device type ECARTRIDGE) drives + TSM mt driver also will work fine in TSM >  device.conf file & library_contents.XXX file to me and TSM build Method?a Thousands thks for you
nia
Reply | Threaded
Open this post in threaded view
|

Re: my rhel5+lin_tape1.34+mhvtl-0.18-12 installed lin_tape don‘t work

nia
Administrator
Yes, add below to your existing device.conf

Library: 60 CHANNEL: 06 TARGET: 00 LUN: 00
 Vendor identification: STK
 Product identification: L700
 Product revision level: 3.14
 Unit serial number: 00103800
 NAA: 60:22:33:44:ab:06:00:00

Drive: 61 CHANNEL: 06 TARGET: 01 LUN: 00
 Library ID: 60 Slot: 01
 Vendor identification: STK
 Product identification: T10000A
 Product revision level: 1.46
 Unit serial number: 04003291
 NAA: 60:22:33:44:ab:06:01:00
 Compression: factor 1 enabled 1

Drive: 62 CHANNEL: 06 TARGET: 02 LUN: 00
 Library ID: 60 Slot: 02
 Vendor identification: STK
 Product identification: T10000A
 Product revision level: 1.46
 Unit serial number: 04003292
 NAA: 60:22:33:44:ab:06:02:00
 Compression: factor 1 enabled 1

Drive: 63 CHANNEL: 06 TARGET: 03 LUN: 00
 Library ID: 60 Slot: 03
 Vendor identification: STK
 Product identification: T10000A
 Product revision level: 1.46
 Unit serial number: 04003293
 NAA: 60:22:33:44:ab:06:03:00
 Compression: factor 1 enabled 1

Drive: 64 CHANNEL: 06 TARGET: 04 LUN: 00
 Library ID: 60 Slot: 04
 Vendor identification: STK
 Product identification: T10000A
 Product revision level: 1.46
 Unit serial number: 04003294
 NAA: 60:22:33:44:ab:06:04:00
 Compression: factor 1 enabled 1

Drive: 65 CHANNEL: 06 TARGET: 05 LUN: 00
 Library ID: 60 Slot: 05
 Vendor identification: STK
 Product identification: T10000A
 Product revision level: 1.46
 Unit serial number: 04003295
 NAA: 60:22:33:44:ab:06:05:00
 Compression: factor 1 enabled 1


# cat library_contents.60

Drive 1:
Drive 2:
Drive 3:
Drive 4:
Drive 5:

Picker 1:

MAP 1:
MAP 2:
MAP 3:
MAP 4:
MAP 5:

Slot 1: STK001TA
Slot 2: STK002TA
Slot 3: STK003TA
Slot 4: STK004TA
Slot 5: STK005TA
Slot 6: STK006TA
Slot 7: STK007TA
Slot 8: STK008TA
Slot 9: STK009TA

For TSM, first run the mt driver auto-configuration script :

/opt/tivoli/tsm/devices/bin/autoconf

Then define library and drive as following:

DEFINE Library L700 libtype=scsi serial=autodetect AutoLabel=yes RelabelScratch=yes
DEFINE Devc L700 library=L700 devt=ECARTRIDGE estcapacity=2048m
DEFINE stgp mhvtl2 L700 maxscr=200 pooltype=copy
DEFINE PATH TSM6 L700 SRCType=SERVER DESTType=LIBRary Device=/dev/tsmscsi/lb0 ONLine=yes
DEFINE drive L700 drive1 serial=autodetect element=1 online=yes
DEFINE drive L700 drive2 serial=autodetect element=2 online=yes
DEFINE drive L700 drive3 serial=autodetect element=3 online=yes
DEFINE drive L700 drive4 serial=autodetect element=4 online=yes
DEFINE drive L700 drive5 serial=autodetect element=5 online=yes
DEFINE PATH TSM6 drive1 SRCType=SERVER DESTType=drive LIBRary=L700 Device=/dev/tsmscsi/mt0 ONLine=yes
DEFINE PATH TSM6 drive2 SRCType=SERVER DESTType=drive LIBRary=L700 Device=/dev/tsmscsi/mt1 ONLine=yes
DEFINE PATH TSM6 drive3 SRCType=SERVER DESTType=drive LIBRary=L700 Device=/dev/tsmscsi/mt2 ONLine=yes
DEFINE PATH TSM6 drive4 SRCType=SERVER DESTType=drive LIBRary=L700 Device=/dev/tsmscsi/mt3 ONLine=yes
DEFINE PATH TSM6 drive5 SRCType=SERVER DESTType=drive LIBRary=L700 Device=/dev/tsmscsi/mt4 ONLine=yes
AUDIT LIBRary L700 CHECKLabel=yes
CHECKIn LIBVolume L700 CHECKLabel=barcode SEARCH=Yes status=scratch devt=ECARTRIDGE



Reply | Threaded
Open this post in threaded view
|

Re: my rhel5+lin_tape1.34+mhvtl-0.18-12 installed lin_tape don‘t work

zengold
In reply to this post by zengold
many thanks again to your help! n.i.a brother i wish MHVTL to emulation on another backup software ,for example :EMC legato ,Netbackup,Arcserver,an so on....!are you getting successful one ?i feeling MHVTL maybeing become opensource's great software
nia
Reply | Threaded
Open this post in threaded view
|

Re: my rhel5+lin_tape1.34+mhvtl-0.18-12 installed lin_tape don‘t work

nia
Administrator
Yes, actually MHVTL works quite well right out of the box with NetBackup and EMC NetWorker .. I am sure one day it will do the same for many backup software ..
Reply | Threaded
Open this post in threaded view
|

Re: my rhel5+lin_tape1.34+mhvtl-0.18-12 installed lin_tape don‘t work

Mark Harvey
Administrator
What is needed to make working with TSM easy "out of the box" ?

Sent from my iPhone

On 21/11/2010, at 3:07, "n.i.a [via MHVTL - Linux Virtual Tape Library - Community Forums]"<[hidden email]> wrote:

Yes, actually MHVTL works quite well right out of the box with NetBackup and EMC NetWorker .. I am sure one day it will do the same for many backup software ..


Regards from Australia
Mark Harvey
nia
Reply | Threaded
Open this post in threaded view
|

Re: my rhel5+lin_tape1.34+mhvtl-0.18-12 installed lin_tape don‘t work

nia
Administrator
Mark Harvey wrote
What is needed to make working with TSM easy "out of the box" ?
If mhvtl can include additional verbose logging,  then it can help us find out what TSM is trying to do when errors are encountered. Other than this, we need to have access to TSM source code ...

But really, the million dollar question here, .. Why should mhvtl be any different from any other real physical or even virtual tape devices that already work with TSM right out of the box mostly ?

MHVTL is great, but perhaps it is still missing some more code.

n.i.a

Reply | Threaded
Open this post in threaded view
|

Re: my rhel5+lin_tape1.34+mhvtl-0.18-12 installed lin_tape don‘t work

Mark Harvey
Administrator


Sent from my iPhone

On 21/11/2010, at 13:00, "n.i.a [via MHVTL - Linux Virtual Tape Library - Community Forums]"<[hidden email]> wrote:

Mark Harvey wrote:
What is needed to make working with TSM easy "out of the box" ?
If mhvtl can include additional verbose logging,  then it can help us find out what TSM is trying to do when errors are encountered. Other than this, we need to have access to TSM source code ...
Or somebody with some real hardware that can run some commands (sg_raw)  and supply the results. 


But really, the million dollar question here, .. Why should mhvtl be any different from any other real physical or even virtual tape devices that already work with TSM right out of the box mostly ?

MHVTL is great, but perhaps it is still missing some more code.

Agreed.


n.i.a

One extra thought (until the mhvtl code has full functionality) is to use the GUI and provide a drop-down box with NetBackup/NetWorker/TSM/etc so a default working configuration is generated for that platform. 

Regards from Australia
Mark Harvey