LTFS / mkltfs with HP devices does not work

806 views
Skip to first unread message

David Enjolras

unread,
Jul 25, 2013, 12:15:19 PM7/25/13
to quadst...@googlegroups.com

Hello, I have an issue formating an LTFS tape with HP tools.

I'm using VTL 2.2.8 running on a centos 6.4
The emulated library is :

[root@ada-vtl-des /]# lsscsi
[1:0:0:0]    cd/dvd  NECVMWar VMware IDE CDR10 1.00  /dev/sr0
[2:0:0:0]    disk    VMware   Virtual disk     1.0   /dev/sda
[2:0:1:0]    disk    VMware   Virtual disk     1.0   /dev/sdb
[8:0:0:0]    mediumx HP       MSL G3 Series    6.24  /dev/sch0
[9:0:0:0]    tape    HP       Ultrium 6-SCSI   B170  /dev/st0
[10:0:0:0]   tape    HP       Ultrium 6-SCSI   B170  /dev/st1
[11:0:0:0]   tape    HP       Ultrium 6-SCSI   B170  /dev/st2
[12:0:0:0]   tape    HP       Ultrium 6-SCSI   B170  /dev/st3

I'm working directly on the CentOS where quadStor is installed.

the HP tools have been installed from HPLTFS_BINARIES_RHEL.tar.gz
mkltfs don't report any version, 
but the ltfs binary does ;
[root@ada-vtl-des bin]# ltfs -V
HP LTFS standalone version 2.0.0
LTFS Format Specification version 2.0.0

I have mounted a tape ;

[root@ada-vtl-des /]# mt -f /dev/st2 status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 262144 bytes. Density code 0x5a (no translation).
Soft error count since last status=0
General status bits on (1010000):
 ONLINE IM_REP_EN

an tried a format, but it generate:

[root@ada-vtl-des /]# mkltfs -d /dev/st2 -n "test"
LTFS15000I mkltfs starting, LTFS version 2.0.0, log level 2
LTFS15003I Formatting device '/dev/st2'
LTFS15004I LTFS volume blocksize: 524288
LTFS15005I Index partition placement policy: None

LTFS20013I Drive type is HP LTO6, serial number is QDRS000003
LTFS17160I Maximum device block size is 524288
LTFS12015I Attempting to load the medium
LTFS20074E Failed to read attribute 0x1500 (-1)
LTFS15010I Creating data partition b on SCSI partition 1
LTFS15011I Creating index partition a on SCSI partition 0
LTFS12015I Attempting to load the medium
LTFS20074E Failed to read attribute 0x1500 (-1)
LTFS20074E Failed to read attribute 0x801 (-1)
LTFS11097I Partitioning the medium
LTFS20068E Format operation failed (-1)
LTFS12053E Cannot format medium: backend call failed (-1)
LTFS11100I Writing label to partition b
LTFS20064E Locate failed (-1)
LTFS12037E Cannot seek: backend call failed (-1)
LTFS11101E Cannot format: failed to locate (-1) to partition 1, block 0
LTFS15012E Failed to format the medium
LTFS15023I Formatting failed

and, with trace ( using another drive to get a blank tape )

[root@ada-vtl-des bin]# mkltfs -d /dev/st3 -n "test" -t
LTFS15000I mkltfs starting, LTFS version 2.0.0, log level 3
LTFS15025D Validating command line options
LTFS15037D Command line options are valid
LTFS15003I Formatting device '/dev/st3'
LTFS15004I LTFS volume blocksize: 524288
LTFS15005I Index partition placement policy: None

LTFS15006D Opening the device
LTFS20031D Looking for sg device corresponding to /dev/st3
LTFS20034D Mapped /dev/st3 to /dev/sg6 (12.0.0.0)
LTFS20020D SG_RESERVED_SIZE (max block size) now set to 524288 bytes
LTFS20010D SCSI request: [ 12 00 00 00 F0 00 ] Requested length=240
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=96
LTFS20084D Drive identification is 'Ultrium 6-SCSI  '
LTFS20010D SCSI request: [ 12 01 80 00 20 00 ] Requested length=32
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=14
LTFS20013I Drive type is HP LTO6, serial number is QDRS000004
LTFS20010D SCSI request: [ 00 00 00 00 00 00 ] Requested length=0
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=0
LTFS20061D Backend modesense: 0x11
LTFS20010D SCSI request: [ 5A 00 51 00 00 00 00 00 20 00 ] Requested length=32
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=32
LTFS12023D Reserving device
LTFS20010D SCSI request: [ 16 00 00 00 00 00 ] Requested length=0
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=0
LTFS20061D Backend modesense: 0x00
LTFS20010D SCSI request: [ 5A 00 00 00 00 00 00 00 08 00 ] Requested length=8
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=8
LTFS20010D SCSI request: [ 05 00 00 00 00 00 ] Requested length=6
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=6
LTFS17160I Maximum device block size is 524288
LTFS20061D Backend modesense: 0x10
LTFS20010D SCSI request: [ 5A 00 10 01 00 00 00 00 30 00 ] Requested length=48
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=48
LTFS20061D Backend modesense: 0x10
LTFS20010D SCSI request: [ 5A 00 10 01 00 00 00 00 30 00 ] Requested length=48
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=48
LTFS15007D Device opened
LTFS12015I Attempting to load the medium
LTFS20010D SCSI request: [ 1B 00 00 00 01 00 ] Requested length=0
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=0
LTFS20010D SCSI request: [ 34 06 00 00 00 00 00 00 00 00 ] Requested length=32
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=32
LTFS20060D Backend ReadPosition: Partition=0, LogObject=0, FMcount=0
LTFS20061D Backend modesense: 0x1D
LTFS20010D SCSI request: [ 5A 00 1D 00 00 00 00 00 40 00 ] Requested length=64
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=48
LTFS20010D SCSI request: [ 00 00 00 00 00 00 ] Requested length=0
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=0
LTFS12026D Locking medium in the drive
LTFS20010D SCSI request: [ 1E 00 00 00 01 00 ] Requested length=0
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=0
LTFS20010D SCSI request: [ 34 06 00 00 00 00 00 00 00 00 ] Requested length=32
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=32
LTFS20060D Backend ReadPosition: Partition=0, LogObject=0, FMcount=0
LTFS20061D Backend modesense: 0x00
LTFS20010D SCSI request: [ 5A 00 00 00 00 00 00 00 10 00 ] Requested length=16
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=16
LTFS20010D SCSI request: [ 55 10 00 00 00 00 00 00 10 00 ] Requested length=16
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=16
LTFS20061D Backend modesense: 0x00
LTFS20010D SCSI request: [ 5A 00 00 00 00 00 00 00 08 00 ] Requested length=8
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=8
LTFS20010D SCSI request: [ 05 00 00 00 00 00 ] Requested length=6
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=6
LTFS20057D Backend readattr: (0, 5376)
LTFS20010D SCSI request: [ 8C 00 00 00 00 00 00 00 15 00 00 00 00 0D 00 00 ] Requested length=13
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x02 Actual length=0
LTFS20012D SCSI sense  : 70 00 05 00 00 00 00 0A 00 00 00 00 24 00 00 00 00 00
LTFS20074E Failed to read attribute 0x1500 (-1)
LTFS15010I Creating data partition b on SCSI partition 1
LTFS15011I Creating index partition a on SCSI partition 0
LTFS12015I Attempting to load the medium
LTFS20010D SCSI request: [ 1B 00 00 00 01 00 ] Requested length=0
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=0
LTFS20010D SCSI request: [ 34 06 00 00 00 00 00 00 00 00 ] Requested length=32
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=32
LTFS20060D Backend ReadPosition: Partition=0, LogObject=0, FMcount=0
LTFS20061D Backend modesense: 0x1D
LTFS20010D SCSI request: [ 5A 00 1D 00 00 00 00 00 40 00 ] Requested length=64
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=48
LTFS20010D SCSI request: [ 00 00 00 00 00 00 ] Requested length=0
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=0
LTFS20010D SCSI request: [ 34 06 00 00 00 00 00 00 00 00 ] Requested length=32
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=32
LTFS20060D Backend ReadPosition: Partition=0, LogObject=0, FMcount=0
LTFS20061D Backend modesense: 0x00
LTFS20010D SCSI request: [ 5A 00 00 00 00 00 00 00 10 00 ] Requested length=16
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=16
LTFS20010D SCSI request: [ 55 10 00 00 00 00 00 00 10 00 ] Requested length=16
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=16
LTFS20061D Backend modesense: 0x00
LTFS20010D SCSI request: [ 5A 00 00 00 00 00 00 00 08 00 ] Requested length=8
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=8
LTFS20010D SCSI request: [ 05 00 00 00 00 00 ] Requested length=6
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=6
LTFS20057D Backend readattr: (0, 5376)
LTFS20010D SCSI request: [ 8C 00 00 00 00 00 00 00 15 00 00 00 00 0D 00 00 ] Requested length=13
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x02 Actual length=0
LTFS20012D SCSI sense  : 70 00 05 00 00 00 00 0A 00 00 00 00 24 00 00 00 00 00
LTFS20074E Failed to read attribute 0x1500 (-1)
LTFS20057D Backend readattr: (0, 2049)
LTFS20010D SCSI request: [ 8C 00 00 00 00 00 00 00 08 01 00 00 00 29 00 00 ] Requested length=41
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x02 Actual length=0
LTFS20012D SCSI sense  : 70 00 05 00 00 00 00 0A 00 00 00 00 24 00 00 00 00 00
LTFS20074E Failed to read attribute 0x801 (-1)
LTFS20061D Backend modesense: 0x00
LTFS20010D SCSI request: [ 5A 00 00 00 00 00 00 00 08 00 ] Requested length=8
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=8
LTFS20010D SCSI request: [ 05 00 00 00 00 00 ] Requested length=6
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=6
LTFS11097I Partitioning the medium
LTFS20010D SCSI request: [ 1B 00 00 00 01 00 ] Requested length=0
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=0
LTFS20010D SCSI request: [ 34 06 00 00 00 00 00 00 00 00 ] Requested length=32
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=32
LTFS20060D Backend ReadPosition: Partition=0, LogObject=0, FMcount=0
LTFS20061D Backend modesense: 0x1D
LTFS20010D SCSI request: [ 5A 00 1D 00 00 00 00 00 40 00 ] Requested length=64
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=48
LTFS20061D Backend modesense: 0x11
LTFS20010D SCSI request: [ 5A 00 11 00 00 00 00 00 20 00 ] Requested length=32
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=32
LTFS20010D SCSI request: [ 55 10 00 00 00 00 00 00 20 00 ] Requested length=32
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=32
LTFS20010D SCSI request: [ 04 00 02 00 00 00 ] Requested length=0
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x02 Actual length=0
LTFS20012D SCSI sense  : 70 00 05 00 00 00 00 0A 00 00 00 00 26 02 00 00 00 00
LTFS20068E Format operation failed (-1)
LTFS12053E Cannot format medium: backend call failed (-1)
LTFS20059D Backend writeattr: 0
LTFS20010D SCSI request: [ 8D 00 00 00 00 00 00 00 00 00 00 00 00 0D 00 00 ] Requested length=13
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=13
LTFS20025D Stored EWSTATE attribute as 0
LTFS20061D Backend modesense: 0x0F
LTFS20010D SCSI request: [ 5A 00 0F 00 00 00 00 00 20 00 ] Requested length=32
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=32
LTFS20010D SCSI request: [ 55 10 00 00 00 00 00 00 20 00 ] Requested length=32
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=32
LTFS11100I Writing label to partition b
LTFS20057D Backend locate: (1, 0)
LTFS20010D SCSI request: [ 92 02 00 01 00 00 00 00 00 00 00 00 00 00 00 00 ] Requested length=0
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x02 Actual length=0
LTFS20012D SCSI sense  : 70 00 03 00 00 00 00 0A 00 00 00 00 3B 00 00 00 00 00
LTFS20064E Locate failed (-1)
LTFS20010D SCSI request: [ 34 06 00 00 00 00 00 00 00 00 ] Requested length=32
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=32
LTFS20060D Backend ReadPosition: Partition=0, LogObject=0, FMcount=0
LTFS12037E Cannot seek: backend call failed (-1)
LTFS11101E Cannot format: failed to locate (-1) to partition 1, block 0
LTFS15012E Failed to format the medium
LTFS12028D Unlocking medium
LTFS20010D SCSI request: [ 1E 00 00 00 00 00 ] Requested length=0
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=0
LTFS12025D Releasing device
LTFS20010D SCSI request: [ 17 00 00 00 00 00 ] Requested length=0
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=0
LTFS20010D SCSI request: [ 01 00 00 00 00 00 ] Requested length=0
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=0
LTFS20010D SCSI request: [ 34 06 00 00 00 00 00 00 00 00 ] Requested length=32
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=32
LTFS20060D Backend ReadPosition: Partition=0, LogObject=0, FMcount=0
LTFS15023I Formatting failed
[root@ada-vtl-des bin]#

and while trying to use it :
[root@ada-vtl-des bin]# ltfs -o /dev/st3 /media/ltfs1
LTFS14000I LTFS starting, LTFS version 2.0.0, log level 2
LTFS14058I LTFS Format Specification version 2.0.0
LTFS14063I Sync type is "time", Sync time is 300 sec
LTFS20013I Drive type is HP LTO6, serial number is QDRS000001
LTFS17160I Maximum device block size is 524288
LTFS11005I Mounting the volume
LTFS12015I Attempting to load the medium
LTFS17168E Cannot read volume: medium is not partitioned
LTFS14013E Cannot mount the volume
LTFS20076I Triggering drive diagnostic dump
LTFS20077W Unable to generate drive dump
LTFS20096I Diagnostic dump complete

any help is welcome :-)

David Enjolras

unread,
Jul 25, 2013, 12:30:48 PM7/25/13
to quadst...@googlegroups.com

Here are the SCSI info I have :

LTFS20010D SCSI request: [ 8C 00 00 00 00 00 00 00 15 00 00 00 00 0D 00 00 ] Requested length=13
LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x02 Actual length=0
LTFS20012D SCSI sense  : 70 00 05 00 00 00 00 0A 00 00 00 00 24 00 00 00 00 00
LTFS20074E Failed to read attribute 0x1500 (-1)

0: Operation Code: 8C => READ ATTRIBUTE 
1: Attribute Values: 00 => : Returns the attribute values. 
..
8&9: First Attribute ID: 15 00 => The identifier of the first attribute to be returned. If it does not exist in MAM, but there are
more attributes available after this one, the data returned will contain the values of those
attributes. Otherwise CHECK CONDITION is returned with ILLEGAL REQUEST sense.

10 to 13: Allocation Length: 00 00 00 OD

The HP documentation I have don't mention any MAM attribute 15 00 
I'm not sure to have well interpret  the SCSI request :-(



QUADStor VTL Support

unread,
Jul 25, 2013, 1:21:05 PM7/25/13
to quadstor-vtl
On Thu, Jul 25, 2013 at 10:00 PM, David Enjolras <david.e...@gmail.com> wrote:

The HP documentation I have don't mention any MAM attribute 15 00 
I'm not sure to have well interpret  the SCSI request :-(
From the LTFS source : 
/*
* Vendor-unique attribute 0x1500 is used to mark a tape that has passed EWEOM
* on writes
* Format is a four-byte binary attribute, with a five byte standard header.
* It has a "signature" of 'HPE' with the EW state (0 or 1) following.
*/
#define TC_MAM_PAGE_EWSTATE 0x1500

We believe it used primarily to know if the early warning was reached before or not

QUADStor VTL Support

unread,
Jul 25, 2013, 1:32:21 PM7/25/13
to quadstor-vtl
Works for us. Attached is the log of various operations.  The errors below are fine during the first format as these attributes are not set by default

LTFS20074E Failed to read attribute 0x1500 (-1)
LTFS20074E Failed to read attribute 0x801 (-1)

Its at this point that the format is failing for you but succeeding for us

LTFS11097I Partitioning the medium
LTFS20068E Format operation failed (-1)

The m/c is a CentOS 6.2 one with kernel 2.6.32-220.el6.x86_64 but that should not matter. Also we are using git but there have been zero changes since yesterdays release. 

However the following shows that the formatting for you did fail because of a bad previous mode select. It could be that we have understood the mode select page wrong. (medium partitioning page)

LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x02 Actual length=0
LTFS20012D SCSI sense : 70 00 05 00 00 00 00 0A 00 00 00 00 26 02 00 00 00 00
LTFS20068E Format operation failed (-1)
LTFS12053E Cannot format medium: backend call failed (-1)

But it is surprising that for the same ltfs version one works but the other doesn't. We will check if our ltfs version is the latest




--
You received this message because you are subscribed to the Google Groups "QUADStor VTL" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quadstor-vtl...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

mkltfs.txt

David Enjolras

unread,
Jul 25, 2013, 3:23:03 PM7/25/13
to quadst...@googlegroups.com
As seen with support guys :

This error occurs ONLY with custom size for tapes. With the default size: it's OK !!


QUADStor VTL Support

unread,
Jul 30, 2013, 7:06:51 AM7/30/13
to quadst...@googlegroups.com
LTFS with custom sized vcartridges is now possible. A very small
vcartridge size 1GB.. 2GB etc is however not possible. We have tested
with 30 GB vcartridge size and it works fine.
Reply all
Reply to author
Forward
0 new messages