Problem with Tape Drive using Generic SCSI bridge device

Windows iSCSI SAN, Linux iSCSI SAN, Mac OS X iSCSI SAN and Virtual Native SAN.
Post Reply
rnelson
Posts: 5
Joined: Thu Feb 25, 2010 10:16 am

Problem with Tape Drive using Generic SCSI bridge device

Post by rnelson » Thu Feb 25, 2010 9:17 pm

I created a Generic SCSI bridge device with a Tape drive. But when I connect to it from a Centos 5.4 client the inquiry data is messed up, here is the output from the tapeinfo command:

Product Type: Disk Drive
Vendor ID: ''
Product ID: ''
Revision: ''
Attached Changer API: No
SerialNumber: ''
MinBlock: 0
MaxBlock: 0
SCSI ID: 0
SCSI LUN: 0
Ready: no

Olivia (staff)
Posts: 205
Joined: Thu Nov 05, 2009 5:52 pm
Contact:

Re: Problem with Tape Drive using Generic SCSI bridge device

Post by Olivia (staff) » Mon Mar 01, 2010 2:59 am

We have just resolved a compatibility issue working with SCSI adapter, it is very similar to this problem.
Please upgrade to the following version.

http://www.kernsafe.com/download/iStorageServer1.61.exe
and
http://www.kernsafe.com/download/iStora ... 4.1.61.exe
KernSafe Support Team
iSCSI SAN, iSCSI Target, iSCSI initiator and related technological support.
[email protected]

rnelson
Posts: 5
Joined: Thu Feb 25, 2010 10:16 am

Re: Problem with Tape Drive using Generic SCSI bridge device

Post by rnelson » Fri Mar 12, 2010 8:12 am

Thanks that fixed the inquiry problem.

Now I have a new problem :-)

Access to the tape drive works okay until the device is closed and the LInux st driver issues a rewind. It looks like maybe the device stops responding while the rewind takes place.

Here are the messages logged on the Linux system:

Mar 12 07:32:23 server-03 kernel: connection10:0: ping timeout of 5 secs expired, recv timeout 5, last rx 4498278615, last ping 4498283615, now 4498288615
Mar 12 07:32:23 server-03 kernel: connection10:0: detected conn error (1011)
Mar 12 07:32:23 server-03 kernel: st0: Error e0000 (driver bt 0x0, host bt 0xe).
Mar 12 07:32:24 server-03 iscsid: Kernel reported iSCSI connection 10:0 error (1011) state (3)
Mar 12 07:32:25 server-03 iscsid: connection10:0 is operational after recovery (1 attempts)

The cpio command returns:

cpio: error closing archive: Input/output error

I tried to attach a tcpdump pcap file of the packets from the rewind command to the TCP session reset but got an error:

Could not upload attachment to ./files/631_da6dac209e86f2850ca3f8a21ad20919.

rnelson
Posts: 5
Joined: Thu Feb 25, 2010 10:16 am

Re: Problem with Tape Drive using Generic SCSI bridge device

Post by rnelson » Fri Mar 12, 2010 8:35 am

Here is the packet capture in text form:

Code: Select all

No.     Time            Source                Destination           Protocol Info
      1 07:39:19.727704 192.168.1.3           192.168.1.1           iSCSI    SCSI Command: 0x01 LUN:0x00 

Frame 1 (114 bytes on wire, 114 bytes captured)
Ethernet II, Src: SuperMic_01:37:49 (00:25:90:01:37:49), Dst: IntelCor_07:36:86 (00:1b:21:07:36:86)
Internet Protocol, Src: 192.168.1.3 (192.168.1.3), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 52030 (52030), Dst Port: iscsi-target (3260), Seq: 1, Ack: 1, Len: 48
iSCSI (SCSI Command)
    Opcode: SCSI Command (0x01)
    .0.. .... = I: Queued delivery
    Flags: 0x81
    TotalAHSLength: 0x00
    DataSegmentLength: 0x00000000
    LUN: 0000000000000000
    InitiatorTaskTag: 0x54000010
    ExpectedDataTransferLength: 0x00000000
    CmdSN: 0x0043d19b
    ExpStatSN: 0x0001d801
SCSI CDB 0x01

No.     Time            Source                Destination           Protocol Info
      2 07:39:19.927775 192.168.1.1           192.168.1.3           TCP      iscsi-target > 52030 [ACK] Seq=1 Ack=49 Win=279 Len=0 TSV=13354749 TSER=203737654

Frame 2 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: IntelCor_07:36:86 (00:1b:21:07:36:86), Dst: SuperMic_01:37:49 (00:25:90:01:37:49)
Internet Protocol, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.3 (192.168.1.3)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 52030 (52030), Seq: 1, Ack: 49, Len: 0

No.     Time            Source                Destination           Protocol Info
      3 07:39:23.713910 192.168.1.1           192.168.1.3           TCP      [TCP segment of a reassembled PDU]

Frame 3 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: IntelCor_07:36:86 (00:1b:21:07:36:86), Dst: SuperMic_01:37:49 (00:25:90:01:37:49)
Internet Protocol, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.3 (192.168.1.3)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 56010 (56010), Seq: 1, Ack: 1, Len: 1

No.     Time            Source                Destination           Protocol Info
      4 07:39:23.713936 192.168.1.3           192.168.1.1           TCP      56010 > iscsi-target [ACK] Seq=1 Ack=2 Win=157 Len=0 TSV=203741640 TSER=13354629 SLE=1 SRE=2

Frame 4 (78 bytes on wire, 78 bytes captured)
Ethernet II, Src: SuperMic_01:37:49 (00:25:90:01:37:49), Dst: IntelCor_07:36:86 (00:1b:21:07:36:86)
Internet Protocol, Src: 192.168.1.3 (192.168.1.3), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 56010 (56010), Dst Port: iscsi-target (3260), Seq: 1, Ack: 2, Len: 0

No.     Time            Source                Destination           Protocol Info
      5 07:39:23.719349 192.168.1.3           192.168.1.1           iSCSI    NOP Out

Frame 5 (114 bytes on wire, 114 bytes captured)
Ethernet II, Src: SuperMic_01:37:49 (00:25:90:01:37:49), Dst: IntelCor_07:36:86 (00:1b:21:07:36:86)
Internet Protocol, Src: 192.168.1.3 (192.168.1.3), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 56010 (56010), Dst Port: iscsi-target (3260), Seq: 1, Ack: 2, Len: 48
iSCSI (NOP Out)
    Opcode: NOP Out (0x00)
    .1.. .... = I: Immediate delivery
    TotalAHSLength: 0x00
    DataSegmentLength: 0x00000000
    LUN: 0000000000000000
    InitiatorTaskTag: 0x7d000070
    TargetTransferTag: 0xffffffff
    CmdSN: 0x00000045
    ExpStatSN: 0x00001ac3

No.     Time            Source                Destination           Protocol Info
      6 07:39:23.720046 192.168.1.1           192.168.1.3           iSCSI    NOP In

Frame 6 (114 bytes on wire, 114 bytes captured)
Ethernet II, Src: IntelCor_07:36:86 (00:1b:21:07:36:86), Dst: SuperMic_01:37:49 (00:25:90:01:37:49)
Internet Protocol, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.3 (192.168.1.3)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 56010 (56010), Seq: 2, Ack: 49, Len: 48
iSCSI (NOP In)
    Opcode: NOP In (0x20)
    TotalAHSLength: 0x00
    DataSegmentLength: 0x00000000
    LUN: 0000000000000000
    InitiatorTaskTag: 0x7d000070
    TargetTransferTag: 0xffffffff
    StatSN: 0x00001ac3
    ExpCmdSN: 0x00000046
    MaxCmdSN: 0x00001b24

No.     Time            Source                Destination           Protocol Info
      7 07:39:23.720069 192.168.1.3           192.168.1.1           TCP      56010 > iscsi-target [ACK] Seq=49 Ack=50 Win=157 Len=0 TSV=203741646 TSER=13355129

Frame 7 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: SuperMic_01:37:49 (00:25:90:01:37:49), Dst: IntelCor_07:36:86 (00:1b:21:07:36:86)
Internet Protocol, Src: 192.168.1.3 (192.168.1.3), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 56010 (56010), Dst Port: iscsi-target (3260), Seq: 49, Ack: 50, Len: 0

No.     Time            Source                Destination           Protocol Info
      8 07:39:24.727465 192.168.1.3           192.168.1.1           iSCSI    NOP Out

Frame 8 (114 bytes on wire, 114 bytes captured)
Ethernet II, Src: SuperMic_01:37:49 (00:25:90:01:37:49), Dst: IntelCor_07:36:86 (00:1b:21:07:36:86)
Internet Protocol, Src: 192.168.1.3 (192.168.1.3), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 52030 (52030), Dst Port: iscsi-target (3260), Seq: 49, Ack: 1, Len: 48
iSCSI (NOP Out)
    Opcode: NOP Out (0x00)
    .1.. .... = I: Immediate delivery
    TotalAHSLength: 0x00
    DataSegmentLength: 0x00000000
    LUN: 0000000000000000
    InitiatorTaskTag: 0x55000010
    TargetTransferTag: 0xffffffff
    CmdSN: 0x0043d19c
    ExpStatSN: 0x0001d801

No.     Time            Source                Destination           Protocol Info
      9 07:39:24.918041 192.168.1.1           192.168.1.3           TCP      iscsi-target > 52030 [ACK] Seq=1 Ack=97 Win=279 Len=0 TSV=13355248 TSER=203742654

Frame 9 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: IntelCor_07:36:86 (00:1b:21:07:36:86), Dst: SuperMic_01:37:49 (00:25:90:01:37:49)
Internet Protocol, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.3 (192.168.1.3)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 52030 (52030), Seq: 1, Ack: 97, Len: 0

No.     Time            Source                Destination           Protocol Info
     10 07:39:28.714198 192.168.1.1           192.168.1.3           TCP      [TCP Keep-Alive] iscsi-target > 56010 [ACK] Seq=49 Ack=49 Win=255 Len=1

Frame 10 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: IntelCor_07:36:86 (00:1b:21:07:36:86), Dst: SuperMic_01:37:49 (00:25:90:01:37:49)
Internet Protocol, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.3 (192.168.1.3)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 56010 (56010), Seq: 49, Ack: 49, Len: 1

No.     Time            Source                Destination           Protocol Info
     11 07:39:28.714229 192.168.1.3           192.168.1.1           TCP      [TCP Keep-Alive ACK] 56010 > iscsi-target [ACK] Seq=49 Ack=50 Win=157 Len=0 TSV=203746641 TSER=13355129 SLE=49 SRE=50

Frame 11 (78 bytes on wire, 78 bytes captured)
Ethernet II, Src: SuperMic_01:37:49 (00:25:90:01:37:49), Dst: IntelCor_07:36:86 (00:1b:21:07:36:86)
Internet Protocol, Src: 192.168.1.3 (192.168.1.3), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 56010 (56010), Dst Port: iscsi-target (3260), Seq: 49, Ack: 50, Len: 0

No.     Time            Source                Destination           Protocol Info
     12 07:39:28.719260 192.168.1.3           192.168.1.1           iSCSI    NOP Out

Frame 12 (114 bytes on wire, 114 bytes captured)
Ethernet II, Src: SuperMic_01:37:49 (00:25:90:01:37:49), Dst: IntelCor_07:36:86 (00:1b:21:07:36:86)
Internet Protocol, Src: 192.168.1.3 (192.168.1.3), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 56010 (56010), Dst Port: iscsi-target (3260), Seq: 49, Ack: 50, Len: 48
iSCSI (NOP Out)
    Opcode: NOP Out (0x00)
    .1.. .... = I: Immediate delivery
    TotalAHSLength: 0x00
    DataSegmentLength: 0x00000000
    LUN: 0000000000000000
    InitiatorTaskTag: 0x7e000070
    TargetTransferTag: 0xffffffff
    CmdSN: 0x00000045
    ExpStatSN: 0x00001ac4

No.     Time            Source                Destination           Protocol Info
     13 07:39:28.720170 192.168.1.1           192.168.1.3           iSCSI    NOP In

Frame 13 (114 bytes on wire, 114 bytes captured)
Ethernet II, Src: IntelCor_07:36:86 (00:1b:21:07:36:86), Dst: SuperMic_01:37:49 (00:25:90:01:37:49)
Internet Protocol, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.3 (192.168.1.3)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 56010 (56010), Seq: 50, Ack: 97, Len: 48
iSCSI (NOP In)
    Opcode: NOP In (0x20)
    TotalAHSLength: 0x00
    DataSegmentLength: 0x00000000
    LUN: 0000000000000000
    InitiatorTaskTag: 0x7e000070
    TargetTransferTag: 0xffffffff
    StatSN: 0x00001ac4
    ExpCmdSN: 0x00000046
    MaxCmdSN: 0x00001b25

No.     Time            Source                Destination           Protocol Info
     14 07:39:28.720196 192.168.1.3           192.168.1.1           TCP      56010 > iscsi-target [ACK] Seq=97 Ack=98 Win=157 Len=0 TSV=203746647 TSER=13355629

Frame 14 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: SuperMic_01:37:49 (00:25:90:01:37:49), Dst: IntelCor_07:36:86 (00:1b:21:07:36:86)
Internet Protocol, Src: 192.168.1.3 (192.168.1.3), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 56010 (56010), Dst Port: iscsi-target (3260), Seq: 97, Ack: 98, Len: 0

No.     Time            Source                Destination           Protocol Info
     15 07:39:29.718255 192.168.1.1           192.168.1.3           TCP      [TCP Keep-Alive] iscsi-target > 52030 [ACK] Seq=0 Ack=97 Win=279 Len=1

Frame 15 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: IntelCor_07:36:86 (00:1b:21:07:36:86), Dst: SuperMic_01:37:49 (00:25:90:01:37:49)
Internet Protocol, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.3 (192.168.1.3)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 52030 (52030), Seq: 0, Ack: 97, Len: 1

No.     Time            Source                Destination           Protocol Info
     16 07:39:29.718282 192.168.1.3           192.168.1.1           TCP      [TCP Keep-Alive ACK] 52030 > iscsi-target [ACK] Seq=97 Ack=1 Win=157 Len=0 TSV=203747645 TSER=13355248 SLE=0 SRE=1

Frame 16 (78 bytes on wire, 78 bytes captured)
Ethernet II, Src: SuperMic_01:37:49 (00:25:90:01:37:49), Dst: IntelCor_07:36:86 (00:1b:21:07:36:86)
Internet Protocol, Src: 192.168.1.3 (192.168.1.3), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 52030 (52030), Dst Port: iscsi-target (3260), Seq: 97, Ack: 1, Len: 0

No.     Time            Source                Destination           Protocol Info
     17 07:39:29.978417 192.168.1.3           192.168.1.1           TCP      52030 > iscsi-target [FIN, ACK] Seq=97 Ack=1 Win=157 Len=0 TSV=203747905 TSER=13355248

Frame 17 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: SuperMic_01:37:49 (00:25:90:01:37:49), Dst: IntelCor_07:36:86 (00:1b:21:07:36:86)
Internet Protocol, Src: 192.168.1.3 (192.168.1.3), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 52030 (52030), Dst Port: iscsi-target (3260), Seq: 97, Ack: 1, Len: 0

No.     Time            Source                Destination           Protocol Info
     18 07:39:29.978496 192.168.1.3           192.168.1.1           TCP      34460 > iscsi-target [SYN] Seq=0 Win=17920 Len=0 MSS=8960 TSV=203747905 TSER=0 WS=7

Frame 18 (74 bytes on wire, 74 bytes captured)
Ethernet II, Src: SuperMic_01:37:49 (00:25:90:01:37:49), Dst: IntelCor_07:36:86 (00:1b:21:07:36:86)
Internet Protocol, Src: 192.168.1.3 (192.168.1.3), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 34460 (34460), Dst Port: iscsi-target (3260), Seq: 0, Len: 0

No.     Time            Source                Destination           Protocol Info
     19 07:39:29.978540 192.168.1.1           192.168.1.3           TCP      iscsi-target > 52030 [ACK] Seq=1 Ack=98 Win=279 Len=0 TSV=13355754 TSER=203747905

Frame 19 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: IntelCor_07:36:86 (00:1b:21:07:36:86), Dst: SuperMic_01:37:49 (00:25:90:01:37:49)
Internet Protocol, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.3 (192.168.1.3)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 52030 (52030), Seq: 1, Ack: 98, Len: 0

No.     Time            Source                Destination           Protocol Info
     20 07:39:29.978635 192.168.1.1           192.168.1.3           TCP      iscsi-target > 34460 [SYN, ACK] Seq=0 Ack=1 Win=8192 Len=0 MSS=8960 WS=8 TSV=13355754 TSER=203747905

Frame 20 (74 bytes on wire, 74 bytes captured)
Ethernet II, Src: IntelCor_07:36:86 (00:1b:21:07:36:86), Dst: SuperMic_01:37:49 (00:25:90:01:37:49)
Internet Protocol, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.3 (192.168.1.3)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 34460 (34460), Seq: 0, Ack: 1, Len: 0

No.     Time            Source                Destination           Protocol Info
     21 07:39:29.978654 192.168.1.3           192.168.1.1           TCP      34460 > iscsi-target [ACK] Seq=1 Ack=1 Win=17920 Len=0 TSV=203747905 TSER=13355754

Frame 21 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: SuperMic_01:37:49 (00:25:90:01:37:49), Dst: IntelCor_07:36:86 (00:1b:21:07:36:86)
Internet Protocol, Src: 192.168.1.3 (192.168.1.3), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 34460 (34460), Dst Port: iscsi-target (3260), Seq: 1, Ack: 1, Len: 0

No.     Time            Source                Destination           Protocol Info
     22 07:39:30.228927 192.168.1.3           192.168.1.1           TCP      [TCP segment of a reassembled PDU]

Frame 22 (114 bytes on wire, 114 bytes captured)
Ethernet II, Src: SuperMic_01:37:49 (00:25:90:01:37:49), Dst: IntelCor_07:36:86 (00:1b:21:07:36:86)
Internet Protocol, Src: 192.168.1.3 (192.168.1.3), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 34460 (34460), Dst Port: iscsi-target (3260), Seq: 1, Ack: 1, Len: 48

Post Reply