scsitape / stenc

SCSI Tape Encryption Manager - stenc (formerly on https://sourceforge.net/projects/stenc/)
GNU General Public License v2.0
70 stars 17 forks source link

New IBM LTO8 drive firmware returns 0x24 error #55

Open dalvenjah opened 2 years ago

dalvenjah commented 2 years ago

This looks like issue #11 but is different (this error code is 0x24 vs issue 11's 0x26).

Latest (as of May 3 2022) stenc works fine with an IBM Ultrium-TD8 drive with J4D0 and JAYE firmwares; but with the latest N4Q0 firmware, stenc returns an error:

$ sudo ./stenc -f /dev/nst0 --detail
Status for /dev/nst0
--------------------------------------------------
Device Mfg:              IBM
Product ID:              ULTRIUM-TD8
Product Revision:        N4Q0
Sense Code:              Illegal Request (0x05)
 ASC:                    0x24
 ASCQ:                   0x00
 Additional data:        0x00000c01504230303030340000000abb00000001080080a2704c38000000040000000000000000000000000000000000000000000000000000000000000000000000000054314d5930484756444100000000000000000000

Per IBM's doc at https://www.ibm.com/docs/en/ts3500-tape-library?topic=information-sense-key-illegal-request , ASC 0x24 and ASCQ 0x00 means "Invalid Field in CDB". Not sure if this means the data structure's the wrong length or what; I'll continue to do investigating on my end to see if I can work out what the drive needs with this firmware, but wanted to open this issue in case others can help take a look.

Also in case it helps, here's the link to IBM's fixlist showing what's changed between J4D0/JAYE firmwares and the latest N4Q0 firmware: https://delivery04.dhe.ibm.com/sar/CMA/STA/09qkh/0/LTO8_N4Q0_fixlist.txt

jmwilson commented 2 years ago

Is it possible to build with SCSI debugging on and dump the output? Unfortunately it has to be given at compile time.

./autogen.sh && ./configure --with-scsi-debug && make
sudo ./src/stenc -f /dev/nst0 --detail
sunwire commented 2 years ago

@dalvenjah Can you run this command and show what it returns? sg_raw -r 44 /dev/your_tape_dev a2 00 00 00 00 00 00 01 00 00 00

jonasstein commented 2 years ago

@dalvenjah ping

jonasstein commented 2 years ago

@dalvenjah any news?