[stgt] Passthrough / tape issue

Fabrice Clement Fabrice.Clement at orange.fr
Fri Nov 16 17:20:57 CET 2012


Hi,

    The initiator can't use the iSCSI tape target correctly. Here is my 
configuration :

* On the TARGET ( using tgt-1.0.33 , ubuntu 10.04, 2.6.32-43-server ) :

root at TARGET:~/tgt/tgt-1.0.33# usr/tgtadm --lld iscsi --op show --mode 
target

Target 1: iqn.2001-04.backup.orange:vtl1
     System information:
         Driver: iscsi
         State: ready
     I_T nexus information:
     LUN information:
         LUN: 0
             Type: controller
             SCSI ID: IET     00010000
             SCSI SN: beaf10
             Size: 0 MB, Block size: 1
             Online: Yes
             Removable media: No
             Prevent removal: No
             Readonly: No
             Thin-provisioning: No
             Backing store type: null
             Backing store path: None
             Backing store flags:
         LUN: 1
             Type: passthrough
             SCSI ID: IET     00010001
             SCSI SN: beaf11
             Size: 0 MB, Block size: 1
             Online: Yes
             Removable media: No
             Prevent removal: No
             Readonly: No
             Thin-provisioning: No
             Backing store type: sg
             Backing store path: /dev/sg6
             Backing store flags:
         LUN: 2
             Type: passthrough
             SCSI ID: IET     00010002
             SCSI SN: beaf12
             Size: 0 MB, Block size: 1
             Online: Yes
             Removable media: No
             Prevent removal: No
             Readonly: No
             Thin-provisioning: No
             Backing store type: sg
             Backing store path: /dev/sg5
             Backing store flags:
     Account information:
     ACL information:
         ALL


root at TARGET:~/tgt/tgt-1.0.33# mtx -f /dev/sg5 status
   Storage Changer /dev/sg5:1 Drives, 16 Slots ( 0 Import/Export )
etc.....=> OK

---------------------------------

* On the INITIATOR : (Centos 5.6, 2.6.18-149.el5xen )

[root at INITIATOR tmp]# iscsiadm --version
iscsiadm version 2.0-872

[root at INITIATOR tmp]# lsscsi -g
[15:0:0:0]   storage IET      Controller       0001  -         /dev/sg0
[15:0:0:1]   tape    HP       Ultrium 2-SCSI   F59W  /dev/st0  /dev/sg1
[15:0:0:2]   mediumx HP       UHDL-LTO         0014  -         /dev/sg2

[root at backup02 tmp]# mtx -f /dev/sg2 status
mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=0 (Unknown?!)
mtx: Request Sense: Sense Key=No Sense
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 00
mtx: Request Sense: Additional Sense Qualifier = 00
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
READ ELEMENT STATUS Command Failed
=> KO

      I hope someone know this issue, thanks a lot !

-- 
Fabrice

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list