MHVTL + TSM on WIN + TD5 tape drive

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

MHVTL + TSM on WIN + TD5 tape drive

crippa.andrea
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: MHVTL + TSM on WIN + TD5 tape drive

Mark Harvey
Administrator

Not much to report in the messages file..

Lots of scary looking errors from SCST like:
Sep  7 00:56:48 centos6vtl kernel: [0]: scst_check_unblock_dev:160:cmd c6122e90 (tag 788529152): unblocking dev 3:1:0:2
Sep  7 00:56:48 centos6vtl kernel: [0]: scst_unblock_dev:6596:Device UNBLOCK(new 0), dev 3:1:0:2
Sep  7 00:56:48 centos6vtl kernel: [0]: __scst_check_blocked_dev:6569:cmd c6122e90 (tag 805306368, op 5e): blocking further cmds on dev 3:1:0:2 due to serialized cmd
Sep  7 00:56:48 centos6vtl kernel: [0]: scst_block_dev:6519:Device BLOCK (new count 1), dev 3:1:0:2
Sep  7 00:56:48 centos6vtl kernel: [2060]: scst: scst_persistent_reserve_in_local:2079:***WARNING***: PR commands for pass-through devices not supported (device 3:1:0:2)
Sep  7 00:56:48 centos6vtl kernel: [0]: scst_check_unblock_dev:160:cmd c6122e90 (tag 805306368): unblocking dev 3:1:0:2

But I think these are informational..

The only "error" I can see is an attempt to query mode page 25h
i.e.
Sep  7 00:56:32 centos6vtl vtltape[1928]: CDB (159) 5a 00 25 00 00 00 00 00 30 00
Sep  7 00:56:32 centos6vtl vtltape[1928]: spc_mode_sense: MODE SENSE (159) **
Sep  7 00:56:32 centos6vtl vtltape[1928]: mkSenseBuf: SENSE [Key/ASC/ASCQ] [05 24 00]

I can't find this referenced in my IBM LTO (11th edition) SCSI Reference Guide.
The SSC4 defines mode pages between 20h - 3Eh as 'Vendor Specific' - So no luck there either.

The earlier attempt to get to mode page 24h was successful:
i.e.
Sep  7 00:56:32 centos6vtl vtltape[1928]: CDB (158) 5a 00 24 00 00 00 00 00 28 00
Sep  7 00:56:32 centos6vtl vtltape[1928]: spc_mode_sense: MODE SENSE (158) **


FWIW: The initiator is suppose to issue a 'list supported mode pages', and then send queries if the target supports the mode page in question. I see no request for mode page '3f' (list supported mode pages).

I'm thinking that this is a driver issue on the Windows side of the world. Perhaps the driver is failing because it can't get this mode page (improbable), or the LTO tape driver is not correct.
I do know the Windows drivers and NetBackup results in lots of heartache. Hence why I've gone the STK / T10000B drive config. Windows is able to automagically install a working driver. The SDLT / LTO drivers seem to be such fragile things on Windows.

Another check is to setup iSCSI initiator on a Linux host and test TSM access to this 'centos6vtl' host. i.e. Rule out Windows tape drivers as being the cause.

Or install the sg3_utils on Windows and check device connectivity using the sg3 utilities (sg_turs, sg_inq, sg_logs, sg_modes etc)

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

Re: MHVTL + TSM on WIN + TD5 tape drive

crippa.andrea
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: MHVTL + TSM on WIN + TD5 tape drive

Mark Harvey
Administrator
I'll put together come commands and options and post here in a few hrs.

What version of LTO tape drivers are you using ?

I'll attempt to test my end with NBU and your version of windows drivers.

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

Re: MHVTL + TSM on WIN + TD5 tape drive

crippa.andrea
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: MHVTL + TSM on WIN + TD5 tape drive

Mark Harvey
Administrator
A little bit of testing on 64bit windows -> iSCSI -> stgt -> mhvtl (ULT3580-TD4)

Using the IBM driver 6.2.1.7 (10/06/2011).

The device is visible under Win2k3 Device Manager and says "This device is working properly"
However, neither NetBackup or IBM Tape Diag can detect the devices.

I am getting the same request for mode page 25h. Found the latest LTO-5 IBM doco but this does not describe this mode page.

Testing against a real IBM tape drive I get the following:

# sg_raw -r 1k /dev/sg2 5a 00 25 00 00 00 00 00 30 00

SCSI Status: Good

Sense Information:
sense buffer empty

Received 48 bytes of data:
00     00 2e 00 10 00 00 00 08  46 00 00 00 00 00 00 00    ........F.......
10     25 1e 00 00 00 00 00 00  00 00 00 00 00 00 00 00    %...............
20     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................

Now to try and find out what this all means...
Regards from Australia
Mark Harvey
Reply | Threaded
Open this post in threaded view
|

Re: MHVTL + TSM on WIN + TD5 tape drive

Mark Harvey
Administrator
OK, having a better look at this, I realise I've got a broken 'MODE SELECT' implementation.

Byte 1 of the MODE PARAMETER HEADER should indicate the Media Type (LTO-1 data / LTO-4 WORM etc)..
I fail to set this at all. The value of '0' indicates no mounted media - The current behaviour..
:(

While I do have a 'media type' field set in the MAM of each media, it is mhvtl unique code and does not match hardware vendor's code(s).
So, I have two options here.
1. Break media compatibility and update the mhvtl media_type to match hardware vendors values (Hopefully I can find all relevant documentation).
2. Keep my unique 'media_type' and have a lookup table between mhvtl media_type -> vendor's media_type.

Option 2 is most likely the way I'll go. It requires more code but I don't need to find all correct values on the first go. (i.e. I can always have a media_type == VENDOR_media_type_unknown value).

More info as it comes to hand..

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

Re: MHVTL + TSM on WIN + TD5 tape drive

Mark Harvey
Administrator
Mark Harvey wrote
I realise I've got a broken 'MODE SELECT' implementation.

Byte 1 of the MODE PARAMETER HEADER should indicate the Media Type (LTO-1 data / LTO-4 WORM etc)..
I fail to set this at all. The value of '0' indicates no mounted media - The current behaviour..
It's not as bad as I first feared.. It appears (from the limited doco I have), IBM drives are the only vendor who use the MEDIUM TYPE field in the MODE PARAMETER HEADER.

AIT-4, SDLT-600, STK 9x40/T10K all document this byte as either not used (reserved) or a value of '0'.

The IBM (03592 and Ultrium) models however do use this.
Some tweaking within the personality module(s) will be required.
Regards from Australia
Mark Harvey
nia
Reply | Threaded
Open this post in threaded view
|

Re: MHVTL + TSM on WIN + TD5 tape drive

nia
Administrator
Let me know if there is a test patch .. I am currently testing similar setup as crippa.andrea but with stgt, and getting same results.

-nia
Reply | Threaded
Open this post in threaded view
|

Re: MHVTL + TSM on WIN + TD5 tape drive

Mark Harvey
Administrator
A couple of ideas that need testing..

What version of tape drivers are being used ?
Is there any difference if HP LTO4 is configured (i.e. Different Windows tape drivers)..
Has LTO2 or LTO3 been tried and does that also fail the same way ?
Regards from Australia
Mark Harvey
Reply | Threaded
Open this post in threaded view
|

Re: MHVTL + TSM on WIN + TD5 tape drive

crippa.andrea
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: MHVTL + TSM on WIN + TD5 tape drive

[nia]
Administrator
crippa.andrea,
 
My test environment is currently down, can you try a drive config like this below.
ALso do you use the TSM Windows Device Driver ?
 
 Vendor identification: HP
 Product identification: Ultrium 4-SCSI
 
Reply | Threaded
Open this post in threaded view
|

Re: MHVTL + TSM on WIN + TD5 tape drive

crippa.andrea
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: MHVTL + TSM on WIN + TD5 tape drive

crippa.andrea
In reply to this post by [nia]
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: MHVTL + TSM on WIN + TD5 tape drive

Mark Harvey
Administrator
If VERBOSE = 3 in mhvtl.conf,

can you send/post the syslog after trying this ?

Cheers

Sent from my iPad

On Sep 11, 2011, at 4:26, "crippa.andrea [via MHVTL - Linux Virtual Tape Library - CommunityForums]" <[hidden email]> wrote:

Some updates ....

If I use standard windows hp driver for tape drives, when trying to label libv or checkin libv , after the reply I get this error code :
ANR8446W Manual intervention required for library LIBRARY_NAME

Same error that I get if I use windows driver for IBM TD tape drives.

So, I think that I need to find the TSM HP driver ..... can someone help me ?


Bye

2011/9/10 Andrea Crippa <[hidden email]>
Hi nia ... some question .....


1) - Do I need to use IBM library + HP drives or I need to setup HP library & drives ?
2) - I can't find TSM HP Ultrium 4 driver ......What version I can use ..... See link below : http://www-01.ibm.com/software/sysmgmt/products/support/IBM_TSM_Supported_Devices_for_AIXHPSUNWIN.html

Bye


2011/9/10 [nia] [via MHVTL - Linux Virtual Tape Library - Community Forums] <[hidden email]>

crippa.andrea,
 
My test environment is currently down, can you try a drive config like this below.
ALso do you use the TSM Windows Device Driver ?
 
 Vendor identification: HP
 Product identification: Ultrium 4-SCSI
 



To unsubscribe from MHVTL + TSM on WIN + TD5 tape drive, click here.



--
Crippa Andrea





--
Crippa Andrea





To start a new topic under MHVTL - Linux Virtual Tape Library - Community Forums, email [hidden email]
To unsubscribe from MHVTL - Linux Virtual Tape Library - Community Forums, click here.
Regards from Australia
Mark Harvey
Reply | Threaded
Open this post in threaded view
|

Re: MHVTL + TSM on WIN + TD5 tape drive

crippa.andrea
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: MHVTL + TSM on WIN + TD5 tape drive

Mark Harvey
Administrator
crippa.andrea wrote
Wops , i've found the problem ..... wrog user and group on the TAPE in
/opt/mhvtl ..... I've created some tapes manually from root user.
For the ULT3580-TD4 or HP SCSI-4 type ?

The file permission shouldn't impact anything until a tape load is attempted.

crippa.andrea wrote
I've created some tapes manually from root user.
I can see a feature request here.. If mktape is run as root, do a 'chown vtl:vtl <tape>'..
;)
Regards from Australia
Mark Harvey
Reply | Threaded
Open this post in threaded view
|

Re: MHVTL + TSM on WIN + TD5 tape drive

crippa.andrea
In reply to this post by Mark Harvey
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: MHVTL + TSM on WIN + TD5 tape drive

crippa.andrea
In reply to this post by Mark Harvey
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: MHVTL + TSM on WIN + TD5 tape drive

Mark Harvey
Administrator
A patch to test the IBM LTO Windows drivers..

Its worked for me with NetBackup.

mode_25h.diff

Regards from Australia
Mark Harvey
12