ホスト再起動後にTR-002が認識されない

みなさん、こんにちは。

私はTR-002 DASユニットをヘッドレスのミニPCに接続し、ローカルのファイル/メディアサーバーとして運用しています。ホストはUbuntu 22.04を実行しており、メンテナンス目的で週に一度自動的に再起動します。

ほとんどの場合、TR-002ユニットはホストに認識され、正常に動作します。正常動作時のログエントリは以下の通りです。

…
[193876.357596] usb 2-4: new SuperSpeed Plus Gen 2x1 USB device number 3 using xhci_hcd
[193876.378320] usb 2-4: New USB device found, idVendor=1c04, idProduct=0012, bcdDevice=61.10
[193876.378334] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[193876.378340] usb 2-4: Product: TR-002
[193876.378343] usb 2-4: Manufacturer: QNAP Systems, Inc.
[193876.378347] usb 2-4: SerialNumber: 51323034493037323033
[193876.379996] usb-storage 2-4:1.0: USB Mass Storage device detected
[193876.380555] scsi host2: usb-storage 2-4:1.0
[193877.390061] scsi 2:0:0:0: Direct-Access QNAP TR-002 DISK00 6110 PQ: 0 ANSI: 6
[193877.390684] sd 2:0:0:0: Attached scsi generic sg1 type 0
[193877.391023] sd 2:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
[193877.391183] sd 2:0:0:0: [sdb] 5860425728 512-byte logical blocks: (3.00 TB/2.73 TiB)
[193877.391189] sd 2:0:0:0: [sdb] 4096-byte physical blocks
[193877.391502] sd 2:0:0:0: [sdb] Write Protect is off
[193877.391507] sd 2:0:0:0: [sdb] Mode Sense: 47 00 00 08
[193877.391811] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[193877.437020] sdb: sdb1
[193877.438130] sd 2:0:0:0: [sdb] Attached SCSI disk
[193902.021618] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
…

しかし、時々TR-002ユニットが再起動後にホストに正しく認識されないことがあります。発生頻度は低く、年に3回程度ですが、手動でユニットの電源をオフ/オンしないと復旧しません。エラー時のログエントリは以下の通りです。

…
[ 2.798683] kernel: usb 2-4: new SuperSpeed Plus Gen 2x1 USB device number 2 using xhci_hcd
[ 2.819712] kernel: usb 2-4: New USB device found, idVendor=152d, idProduct=0580, bcdDevice= 1.00
[ 2.819734] kernel: usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.819743] kernel: usb 2-4: Product: USB Mass Storage
[ 2.819749] kernel: usb 2-4: Manufacturer: JMicron
[ 2.819754] kernel: usb 2-4: SerialNumber: 152D00580000
[ 3.107136] kernel: usb-storage 2-4:1.0: USB Mass Storage device detected
[ 3.107577] kernel: scsi host2: usb-storage 2-4:1.0
[ 3.107752] kernel: usbcore: registered new interface driver usb-storage
[ 3.110844] kernel: usbcore: registered new interface driver uas
[ 4.131444] kernel: scsi 2:0:0:0: Direct-Access JMICRON JMS580 PQ: 0 ANSI: 6
[ 4.132014] kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0
[ 4.133295] kernel: sd 2:0:0:0: [sdb] Unit Not Ready
[ 4.133313] kernel: sd 2:0:0:0: [sdb] Sense Key : Illegal Request [current]
[ 4.133323] kernel: sd 2:0:0:0: [sdb] Add. Sense: Invalid command operation code
[ 4.134990] kernel: sd 2:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_OK
[ 4.135002] kernel: sd 2:0:0:0: [sdb] Sense Key : Illegal Request [current]
[ 4.135009] kernel: sd 2:0:0:0: [sdb] Add. Sense: Invalid command operation code
[ 4.135020] kernel: sd 2:0:0:0: [sdb] 0 512-byte logical blocks: (0 B/0 B)
[ 4.135027] kernel: sd 2:0:0:0: [sdb] 0-byte physical blocks
[ 4.135298] kernel: sd 2:0:0:0: [sdb] Write Protect is off
[ 4.135306] kernel: sd 2:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 4.135571] kernel: sd 2:0:0:0: [sdb] Asking for cache data failed
[ 4.135578] kernel: sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 4.137266] kernel: sd 2:0:0:0: [sdb] Unit Not Ready
[ 4.137281] kernel: sd 2:0:0:0: [sdb] Sense Key : Illegal Request [current]
[ 4.137290] kernel: sd 2:0:0:0: [sdb] Add. Sense: Invalid command operation code
[ 4.138954] kernel: sd 2:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_OK
[ 4.138965] kernel: sd 2:0:0:0: [sdb] Sense Key : Illegal Request [current]
[ 4.138973] kernel: sd 2:0:0:0: [sdb] Add. Sense: Invalid command operation code
[ 4.139506] kernel: sd 2:0:0:0: [sdb] Attached SCSI disk
…

ログを見ると、ユニットが「QNAP TR-002」ではなく「JMICRON JMS580」として認識され、マウントできていません。なぜこのようなことが起きるのでしょうか?

私の構成は以下の通りです。

  • ホスト: Mini PC Beelink MINI S12, CPU Alder Lake-N95, 8GB RAM, 128GB NVME, Ubuntu 22.04 64bit

  • TR-002: ファームウェア 1.3.0(2025-02-27、最新)、2x 3TB 3.5" HGSTディスクをRAID1(モードスイッチ)で運用

ご助力いただけると幸いです。

Carlos

JMICRON JMS580はTR-002のSATAブリッジですが、なぜこれがたまにしか発生しないのか…理由は分かりません。サポートチケットを作成するのが最善でしょう。