Open pae23 opened 1 year ago
ioctl()
returned EINVAL
against a SCSI READ
command for index reading (with 512KB length read).
Before this SCSI READ
, LTFS did issue one or more SCSI READ
command for reading ANSI labels and LTFS labels (with 4KB length read).
I guess 4KB READ
is successfully handled in the lower drivers but 512KB READ
cannot be handled correctly.
Sometimes MagaRAID HBA got this type of problems because basically it is designed only for HDD. In HDD commands, length of read is 4KB maximum.
The only thing I can comment is to confirm the setting of HBA firmware below.
81a7 LTFS11005I Mounting the volume from device.
81a7 LTFS30252I Logical block protection is disabled.
81a7 LTFS30200I Failed to execute SG_IO ioctl, opcode = 08 (22).
81a7 LTFS30263I READ returns ioctl error (-21700) /dev/sg5.
81a7 LTFS12049E Cannot read: backend call failed (-21700).
81a7 LTFS17039E XML parser: failed to read a block from the medium (-21700).
We are seeing a similar issue, but I believe a different result.
/usr/local/bin/ltfs -o devname=/dev/sg2 /mnt/lto9-2
134a LTFS14000I LTFS starting, LTFS version 2.5.0.0 (Prelim), log level 2.
134a LTFS14058I LTFS Format Specification version 2.4.0.
134a LTFS14104I Launched by "/usr/local/bin/ltfs -o devname=/dev/sg2 /mnt/lto9-2".
134a LTFS14105I This binary is built for Linux (x86_64).
134a LTFS14106I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-4).
134a LTFS17087I Kernel version: Linux version 4.18.0-372.19.1.el8_6.x86_64 ([mockbuild@dal1-prod-builder001.bld.equ.rockylinux.org](mailto:mockbuild@dal1-prod-builder001.bld.equ.rockylinux.org)) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-10) (GCC)) #1 SMP Tue Aug 2 16:19:42 UTC 2022 i386.
134a LTFS17089I Distribution: Rocky Linux release 8.6 (Green Obsidian).
134a LTFS17089I Distribution: NAME="Rocky Linux".
134a LTFS17089I Distribution: Rocky Linux release 8.6 (Green Obsidian).
134a LTFS17089I Distribution: Rocky Linux release 8.6 (Green Obsidian).
134a LTFS17089I Distribution: Rocky Linux release 8.6 (Green Obsidian).
134a LTFS14063I Sync type is "time", Sync time is 300 sec.
134a LTFS17085I Plugin: Loading "sg" tape backend.
134a LTFS17085I Plugin: Loading "unified" iosched backend.
134a LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
134a LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg2).
134a LTFS30213I Unsupported Drive 'QUANTUM ' / 'ULTRIUM-HH9 '.
134a LTFS12012E Cannot open device: failed backend open call.
134a LTFS10004E Cannot open device '/dev/sg2'.
Describe the bug
I upgrade the firmware to PA61 and recompile ltfs with the --enable-buggy-ifs option but I didn't had more success:
To Reproduce Steps to reproduce the behavior:
Expected behavior a mounted volume
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context The drive is working as expected with the tapeinfo and mt command (status and rewind for example) and tar (tested in write (tar cvf /dev/st0 /etc) and read (tar xvf /dev/st0 -C /tmp/test/))