Can't mount LTFS tape with HBA in Thunderbolt PCIe Enclosure
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- c, linux, ubuntu
調査の方向性
まず ltfs -o devname=/dev/sg1 /mnt/ltfs と ltfsck /dev/sg1 を使って失敗を再現し、sg バックエンドの失敗した SCSI READ 呼び出しと SG_IO 呼び出しに焦点を当てます。Thunderbolt エンクロージャーでの動作を直接 HBA 構成と比較し、レポートに示されている qla2xxx デバイスの詳細を確認します。トランスポートまたはバックエンドの原因を特定し、マウントに成功できるようにするか、再現可能な非互換性を文書化できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
I have written several LTO-7 tapes with LTFS, never had a major problem with old QLogic 8GB FC HBA (HP part number) directly connected to the mainboard.
For a portable solution, I put an HBA into a Thunderbolt 3 expansion enclosure. Thunderbolt works, HBA and tape drive are recognized, but I can't mount tapes.
I have tested it via Thunderbolt on several devices with Ubuntu, it is always the same error messages.
Tapes were formatted weeks ago with mkltfs -d ... without further arguments and written with data and unmounted cleanly.
Does anyone have any idea what the problem could be?
To Reproduce
# sudo ltfs -o device_list
11ab LTFS14000I LTFS starting, LTFS version 2.5.0.0 (Prelim), log level 2.
11ab LTFS14058I LTFS Format Specification version 2.4.0.
11ab LTFS14104I Launched by "ltfs -o device_list".
11ab LTFS14105I This binary is built for Linux (x86_64).
11ab LTFS14106I GCC version is 14.2.0.
11ab LTFS17087I Kernel version: Linux version 6.14.0-15-generic (buildd@lcy02-amd64-022) (x86_64-linux-gnu-gcc-14 (Ubuntu 14.2.0-19ubuntu2) 14.2.0, GNU ld (GNU Binutils for Ubuntu) 2.44) #15-Ubuntu SMP PREEMPT_DYNAMIC Sun Apr 6 15:05:05 UTC 2025 i386.
11ab LTFS17089I Distribution: PRETTY_NAME="Ubuntu 25.04".
11ab LTFS17089I Distribution: DISTRIB_ID=Ubuntu.
11ab LTFS17085I Plugin: Loading "sg" tape backend.
Tape Device list:.
Device Name = /dev/sg1 (2.0.0.0), Vendor ID = IBM , Product ID = ULTRIUM-TD7 , Serial Number = F002------, Product Name =[ULTRIUM-TD7].
# sudo ltfs -o devname=/dev/sg1 /mnt/ltfs
138c LTFS14000I LTFS starting, LTFS version 2.5.0.0 (Prelim), log level 2.
138c LTFS14058I LTFS Format Specification version 2.4.0.
138c LTFS14104I Launched by "ltfs -o devname=/dev/sg1 /mnt/ltfs".
138c LTFS14105I This binary is built for Linux (x86_64).
138c LTFS14106I GCC version is 14.2.0.
138c LTFS17087I Kernel version: Linux version 6.14.0-15-generic (buildd@lcy02-amd64-022) (x86_64-linux-gnu-gcc-14 (Ubuntu 14.2.0-19ubuntu2) 14.2.0, GNU ld (GNU Binutils for Ubuntu) 2.44) #15-Ubuntu SMP PREEMPT_DYNAMIC Sun Apr 6 15:05:05 UTC 2025 i386.
138c LTFS17089I Distribution: PRETTY_NAME="Ubuntu 25.04".
138c LTFS17089I Distribution: DISTRIB_ID=Ubuntu.
138c LTFS14063I Sync type is "time", Sync time is 300 sec.
138c LTFS17085I Plugin: Loading "sg" tape backend.
138c LTFS17085I Plugin: Loading "unified" iosched backend.
138c LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
138c LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg1).
138c LTFS30250I Opened the SCSI tape device 2.0.0.0 (/dev/sg1).
138c LTFS30207I Vendor ID is IBM .
138c LTFS30208I Product ID is ULTRIUM-TD7 .
138c LTFS30214I Firmware revision is Q386.
138c LTFS30215I Drive serial is F002------.
138c LTFS30285I The reserved buffer size of /dev/sg1 is 262144.
138c LTFS30205I RSOC (0xa3) returns -20603.
138c LTFS30263I RSOC returns Power On, Reset, or Bus Device Reset Occurred (-20603) /dev/sg1.
138c LTFS30262I Forcing drive dump.
138c LTFS39802W Unknown SCSI OP code 0x1d, use default timeout.
138c LTFS30253I Saving drive dump to /tmp/ltfs_F002------_2025_0607_181437_f.dmp.
138c LTFS39802W Unknown SCSI OP code 0x3c, use default timeout.
138c LTFS39802W Unknown SCSI OP code 0x3c, use default timeout.
138c LTFS30200I Failed to execute SG_IO ioctl, opcode = 3c (22).
138c LTFS30263I READ_BUFFER returns ioctl error (-21700) /dev/sg1.
138c LTFS30258W Cannot retrieve drive dump: failed to read buffer (-21700).
138c LTFS30294I Setting up timeout values from vendor and device.
138c LTFS17160I Maximum device block size is 1048576.
138c LTFS11330I Loading cartridge.
138c LTFS30252I Logical block protection is disabled.
138c LTFS11332I Load successful.
138c LTFS17157I Changing the drive setting to write-anywhere mode.
138c LTFS11005I Mounting the volume from device.
138c LTFS30252I Logical block protection is disabled.
138c LTFS30200I Failed to execute SG_IO ioctl, opcode = 08 (22).
138c LTFS30263I READ returns ioctl error (-21700) /dev/sg1.
138c LTFS12049E Cannot read: backend call failed (-21700).
138c LTFS17039E XML parser: failed to read a block from the medium (-21700).
138c LTFS17037E XML parser: failed to read from XML stream.
138c LTFS17273E XML parser: Detected an I/O error on reading an index from the tape (-21700).
138c LTFS17016E Cannot parse index direct from medium (-21700).
138c LTFS11194W Cannot read index: failed to read and parse XML data (-21700).
138c LTFS11024E Cannot mount volume: read index failed on the index partition.
138c LTFS14013E Cannot mount the volume from device.
138c LTFS30252I Logical block protection is disabled.
2e:00.0 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)
Subsystem: Hewlett-Packard Company StorageWorks 81Q
Flags: bus master, fast devsel, latency 0, IRQ 17, IOMMU group 17
I/O ports at 6000 [disabled] [size=256]
Memory at 6a140000 (64-bit, non-prefetchable) [size=16K]
Memory at 6a000000 (64-bit, non-prefetchable) [size=1M]
Expansion ROM at 6a100000 [virtual] [disabled] [size=256K]
Capabilities: [44] Power Management version 3
Capabilities: [4c] Express Endpoint, IntMsgNum 0
Capabilities: [88] MSI: Enable- Count=1/32 Maskable- 64bit+
Capabilities: [98] Vital Product Data
Capabilities: [a0] MSI-X: Enable+ Count=32 Masked-
Capabilities: [100] Advanced Error Reporting
Capabilities: [138] Power Budgeting <?>
Kernel driver in use: qla2xxx
Kernel modules: qla2xxx
# sudo lsscsi
[1:0:0:0] disk ATA WDC WDS100T1R0A 10WR /dev/sda
[2:0:0:0] tape IBM ULTRIUM-TD7 Q386 /dev/st0
[N:0:2:1] disk SAMSUNG MZVLW512HMJP-000H1__1 /dev/nvme0n1
# sudo ltfsck /dev/sg1
LTFS16000I Starting ltfsck, LTFS version 2.5.0.0 (Prelim), log level 2.
LTFS16088I Launched by "ltfsck /dev/sg1".
LTFS16089I This binary is built for Linux (x86_64).
LTFS16090I GCC version is 14.2.0.
LTFS17087I Kernel version: Linux version 6.14.0-15-generic (buildd@lcy02-amd64-022) (x86_64-linux-gnu-gcc-14 (Ubuntu 14.2.0-19ubuntu2) 14.2.0, GNU ld (GNU Binutils for Ubuntu) 2.44) #15-Ubuntu SMP PREEMPT_DYNAMIC Sun Apr 6 15:05:05 UTC 2025 i386.
LTFS17089I Distribution: PRETTY_NAME="Ubuntu 25.04".
LTFS17089I Distribution: DISTRIB_ID=Ubuntu.
LTFS17085I Plugin: Loading "sg" tape backend.
LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg1).
LTFS30250I Opened the SCSI tape device 2.0.0.0 (/dev/sg1).
LTFS30207I Vendor ID is IBM .
LTFS30208I Product ID is ULTRIUM-TD7 .
LTFS30214I Firmware revision is Q386.
LTFS30215I Drive serial is F002------.
LTFS30285I The reserved buffer size of /dev/sg1 is 262144.
LTFS30205I RSOC (0xa3) returns -20603.
LTFS30263I RSOC returns Power On, Reset, or Bus Device Reset Occurred (-20603) /dev/sg1.
LTFS30262I Forcing drive dump.
LTFS39802W Unknown SCSI OP code 0x1d, use default timeout.
LTFS30205I FORCE_DUMP (0x1d) returns -20601.
LTFS30263I FORCE_DUMP returns Not Ready to Ready Transition, Medium May Have Changed (-20601) /dev/sg1.
LTFS30262I Forcing drive dump.
LTFS39802W Unknown SCSI OP code 0x1d, use default timeout.
LTFS30253I Saving drive dump to /tmp/ltfs_F002------_2025_0608_074723_f.dmp.
LTFS39802W Unknown SCSI OP code 0x3c, use default timeout.
LTFS39802W Unknown SCSI OP code 0x3c, use default timeout.
LTFS30200I Failed to execute SG_IO ioctl, opcode = 3c (22).
LTFS30263I READ_BUFFER returns ioctl error (-21700) /dev/sg1.
LTFS30258W Cannot retrieve drive dump: failed to read buffer (-21700).
LTFS30253I Saving drive dump to /tmp/ltfs_F002------_2025_0608_074723_f.dmp.
LTFS39802W Unknown SCSI OP code 0x3c, use default timeout.
LTFS39802W Unknown SCSI OP code 0x3c, use default timeout.
LTFS30200I Failed to execute SG_IO ioctl, opcode = 3c (22).
LTFS30263I READ_BUFFER returns ioctl error (-21700) /dev/sg1.
LTFS30258W Cannot retrieve drive dump: failed to read buffer (-21700).
LTFS30294I Setting up timeout values from vendor and device.
LTFS17160I Maximum device block size is 1048576.
LTFS11330I Loading cartridge.
LTFS30252I Logical block protection is disabled.
LTFS11332I Load successful.
LTFS17157I Changing the drive setting to write-anywhere mode.
LTFS16014I Checking LTFS file system on '/dev/sg1'.
LTFS30252I Logical block protection is disabled.
LTFS16023I LTFS volume information:.
LTFS16024I Volser (bar code) : .
LTFS16025I Volume UUID : 6fa748aa-d50a-4573-a6e1-5064429446e0.
LTFS16026I Format time : 2025-04-16 21:47:54.794033140 CEST.
LTFS16027I Block size : 524288.
LTFS16028I Compression : Enabled.
LTFS16029I Index partition : ID = a, SCSI Partition = 0.
LTFS16030I Data partition : ID = b, SCSI Partition = 1.
LTFS11005I Mounting the volume from device.
LTFS30252I Logical block protection is disabled.
LTFS11026I Performing a full medium consistency check.
LTFS30200I Failed to execute SG_IO ioctl, opcode = 08 (22).
LTFS30263I READ returns ioctl error (-21700) /dev/sg1.
LTFS12049E Cannot read: backend call failed (-21700).
LTFS17039E XML parser: failed to read a block from the medium (-21700).
LTFS17037E XML parser: failed to read from XML stream.
LTFS17273E XML parser: Detected an I/O error on reading an index from the tape (-21700).
LTFS17016E Cannot parse index direct from medium (-21700).
LTFS11194W Cannot read index: failed to read and parse XML data (-21700).
LTFS30200I Failed to execute SG_IO ioctl, opcode = 08 (22).
LTFS30263I READ returns ioctl error (-21700) /dev/sg1.
LTFS12049E Cannot read: backend call failed (-21700).
LTFS17039E XML parser: failed to read a block from the medium (-21700).
LTFS17037E XML parser: failed to read from XML stream.
LTFS17273E XML parser: Detected an I/O error on reading an index from the tape (-21700).
LTFS17016E Cannot parse index direct from medium (-21700).
LTFS11194W Cannot read index: failed to read and parse XML data (-21700).
LTFS30200I Failed to execute SG_IO ioctl, opcode = 08 (22).
LTFS30263I READ returns ioctl error (-21700) /dev/sg1.
LTFS12049E Cannot read: backend call failed (-21700).
LTFS17039E XML parser: failed to read a block from the medium (-21700).
LTFS17037E XML parser: failed to read from XML stream.
LTFS17273E XML parser: Detected an I/O error on reading an index from the tape (-21700).
LTFS17016E Cannot parse index direct from medium (-21700).
LTFS11194W Cannot read index: failed to read and parse XML data (-21700).
LTFS30200I Failed to execute SG_IO ioctl, opcode = 08 (22).
...
...
Expected behavior
Successful mounting with HBA in a Thunderbolt 3 Expansion enclosure
Additional context
I can almost rule out a problem with Thunderbolt itself, a Windows 11 system with IBM LTFS can at least mount the tape, but accessing it and copying is buggy
- 主要言語
- C
- スター
- 352
- フォーク
- 110
- 平均マージ
- 2時間 1分
- マージ済み PR(30日)
- 2
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
LinearTapeFileSystem/ltfs のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
LinearTapeFileSystem/ltfs#647 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
LinearTapeFileSystem/ltfs#645 · コメント 3 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
LinearTapeFileSystem/ltfs#643 ·
-
Format fails on HP LTO-6 6250 with Adaptec HBA対応中かも @madjesc が 25 日前に担当しました。 オープンH/W issue HBA Report Investigating
LinearTapeFileSystem/ltfs#640 · コメント 7 件 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
LinearTapeFileSystem/ltfs#638 · コメント 2 件 ·
LinearTapeFileSystem/ltfs の issue をすべて見る
似ている issue
-
area:lint-tooling bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
InauguralSystems/EigenScript#1340 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: chunk_span_bounds and _validated_chunk_spans reject Pydantic models ChunkSpan and AudioFileオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
BasedHardware/omi#19047 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
obsproject/obs-studio#13936 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
category:port-update
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信