First time command error The same as Old Time SCSI's case(2013/05/24)

60 views
Skip to first unread message

tkte...@gmail.com

unread,
Jan 21, 2014, 9:54:13 PM1/21/14
to ioscsitap...@googlegroups.com
tar fails only the first time. OK after that.

rst0: SENSE: Unit Attention (Key: 0x6, ASC: 0x28, ASCQ: 0x00)
SCSI SENSE DATA: 0x70 0x00 0x06 0x00 0x00 0x00 0x00 0x58 0x00 0x00 0x00 0x00 0x28 0x00 0x30 0x00 0x10 0x21

compiled on 10.8.2(Xcode4.5.2)
run on 10.8.2 & 10.9.0(the same result)


SAS Domain 0:
  Vendor:    LSILogic
  Product:    SAS3041E
  Revision:    Firmware 1.9.0.0
  Initiator Identifier:    63
  SAS Address:    50:06:05:B0:00:09:13:14
SCSI Target Device @ 0:
  SAS Address:    50:05:07:63:12:47:02:A5
  SCSI Target Identifier:    0
  SCSI Peripheral Device Type:    1
  Manufacturer:    IBM
  Model:    ULTRIUM-HH4
  Revision:    97F1

Billy Bryce

unread,
Jan 22, 2014, 4:05:11 AM1/22/14
to ioscsitap...@googlegroups.com
Hello!

Hrmm, im not sure what is going on but i did a quick search on SCSI Sense Data and, in order of the numbers i found this, maybe it will help. Please be aware, this information may be incorrect.



RST0: SENSE (0x6 - Unit Attention   0x28 = Not Ready to Ready Change, Medium may have changed!!   0x00 = No Additional SENSE information)

SCSI SENSE DATA:

0x70 = SENSE BYTE/BIT IS VALID

0x06 = Unit Attention   

0x58 = Drive Ready! Seek to complete Data request   

0x28 = Unit Attention - not-ready to ready transition, Medium may have changed!!   

0x30 = COMMAND FAILURE  (Possibly: Command Aborted (or Terminated) 

0x10 = Medium Error - ID CRC error  

0x21 = Illegal Request - LBA out of range


If any of the information above is incorrect i do apologise, please feel free to correct it :)

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

Jesse Peterson

unread,
Jan 23, 2014, 10:35:40 AM1/23/14
to ioscsitap...@googlegroups.com
Lots of possibilities there.

Could you try rewinding the tape first as a test? And perhaps supply a 'mt status' before and after a successful and non-successful tar run?

Thanks,
- Jesse

tkte...@gmail.com

unread,
Jan 23, 2014, 9:26:53 PM1/23/14
to ioscsitap...@googlegroups.com
Hello Jesse

First time mt command also fails.
    mt: /dev/rst0: rewind: Operation not supported by device     (SCSI SENSE DATA is the same)
After that tar is OK.  Also second time mt rewind is OK.

-------------------------------------------------------------------------------
---- before non successful
tkd$ mt status
SCSI tape drive, residual=0
ds=5<>
er=0
blocksize: 0 (0, 0, 0, 0)
density: 70 (0, 0, 0, 0)
current file number: 0
current block number: 0
---- tar tvf fails
---- after non successful (only current block number is different)
tkd$ mt status
SCSI tape drive, residual=0
ds=5<>
er=0
blocksize: 0 (0, 0, 0, 0)
density: 70 (0, 0, 0, 0)
current file number: 0
current block number: 10118
-------------------------------------------------------------------------------
Successful case's before/after 'mt status' is the same as above.

First time any mt/tar command fails, after that any mt/tar command is OK.
Except 'mt status' command. 'mt status' does not change 'this error status' .

Thanks,
- Tamo
Reply all
Reply to author
Forward
0 new messages