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
|  
Report Content as Inappropriate
star

MHVTL + TSM on WIN + TD5 tape drive

crippa.andrea
Hello,
I still can't use TSM with TD5 drives using TSM on Windows ad Iscsi


Tryed both centos 5.6 and centos 6.0 , both scst and stgt

Mhvtl latest git available (1.0.0-b475337)
Kernel : 2.6.32scst (based on original centos 6.0 kernel src.rpm)

The error on TSM is : An I/O error occurred while accessing drive Drive0
The error is reported when I run the command "define path"

Attached messages log messages.log.

Hope this help
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + TSM on WIN + TD5 tape drive

Mark Harvey

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)

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + TSM on WIN + TD5 tape drive

crippa.andrea
Hello,
I would try to install the sg3 utils on windows.

Can you help me through some checks ?

TIA



2011/9/7 Mark Harvey [via MHVTL - Linux Virtual Tape Library - Community Forums] <[hidden email]>

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)




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



--
Crippa Andrea


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + TSM on WIN + TD5 tape drive

Mark Harvey
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + TSM on WIN + TD5 tape drive

crippa.andrea
I'm using IBM Driver ..... if ill'try to use LTO Windows driver I can define path on TSM but i'm unable to see library to work.


If I use LTO-1 with ibm driver i've got no problem at all (windows drivers with LTO1 still don't work)


Tomorrow i'll try some other test (TD4 drive .....) and i'll post here my results.

Bye

2011/9/7 Mark Harvey [via MHVTL - Linux Virtual Tape Library - Community Forums] <[hidden email]>
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


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



--
Crippa Andrea


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + TSM on WIN + TD5 tape drive

Mark Harvey
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...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + TSM on WIN + TD5 tape drive

Mark Harvey
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + TSM on WIN + TD5 tape drive

Mark Harvey
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.
nia
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

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
|  
Report Content as Inappropriate
star

Re: MHVTL + TSM on WIN + TD5 tape drive

Mark Harvey
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 ?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + TSM on WIN + TD5 tape drive

crippa.andrea
Hello,
I've tried both  TD2 TD4 and TD5 drives and have got same results. At the moment only TD1 are working ..... I've not tried TD3 ;)

The problem is not related to tape formats becouse the problem is showing up during the define path (before the use of any tapes).

When i've got some times, I'll try to find IBM driver for HP Tapes. After that i will try to use them.


I also have tried to use the windows standard driver for IBM TD tape drives (also know as LTO tape drive in device manager)...... TSM doesn't like that.
It can define path both for TD1 -2 -3-4-5 tape drives but after that TSM was unable to checkin new tapes.

Bye

Crippa Andrea

2011/9/10 Mark Harvey [via MHVTL - Linux Virtual Tape Library - Community Forums] <[hidden email]>
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 ?



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



--
Crippa Andrea


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

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
|  
Report Content as Inappropriate
star

Re: MHVTL + TSM on WIN + TD5 tape drive

crippa.andrea
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


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + TSM on WIN + TD5 tape drive

crippa.andrea
In reply to this post by [nia]
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


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + TSM on WIN + TD5 tape drive

Mark Harvey
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + TSM on WIN + TD5 tape drive

crippa.andrea
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.


I have succesfully checked in a new tape ... and can view it from 'q libv'

I'll try to do some backup ..... i need to install the client first .... 




2011/9/10 Mark Harvey [via MHVTL - Linux Virtual Tape Library - Community Forums] <[hidden email]>
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.



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



--
Crippa Andrea


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + TSM on WIN + TD5 tape drive

Mark Harvey
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>'..
;)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + TSM on WIN + TD5 tape drive

crippa.andrea
In reply to this post by Mark Harvey
Some news .....

I really need TSM driver for HP tape drive, becouse my TSM server have installed the tape drive as GENRICTAPE , so I can't backup/restore using this drives.

Do someone know what is the driver i need to install ..... maybe the driver are in this page , but i don't recognise it: IBM Software Support : Tivoli : IBM Tivoli Storage Manager Supported Devices for AIX HPUX SUN WIN


I see only HP Ultrium 1760 or 1840  .....

Bye


2011/9/10 Andrea Crippa <[hidden email]>
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.


I have succesfully checked in a new tape ... and can view it from 'q libv'

I'll try to do some backup ..... i need to install the client first .... 




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

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.



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



--
Crippa Andrea





--
Crippa Andrea


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + TSM on WIN + TD5 tape drive

crippa.andrea
In reply to this post by Mark Harvey
Hi Mark ....

>For the ULT3580-TD4 or HP SCSI-4 type ?

i'm checkin the HP configuration .....

>I can see a feature request here.. If mktape is run as root, do a 'chown vtl:vtl <tape>'.. 
Yeah ...  i've just chowned ;) ....But have some other problems as you see from my new messages .....

Bye

--
Crippa Andrea


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + TSM on WIN + TD5 tape drive

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

Its worked for me with NetBackup.

mode_25h.diff

12
Loading...