Ubuntu Server 20.04 LTS,无法在外部 USB-3 连接的磁盘阵列上使用 UAS

Ubuntu Server 20.04 LTS,无法在外部 USB-3 连接的磁盘阵列上使用 UAS

我最近购买了一个 5 托架 Orico 磁盘单元,并通过 Usb-3 将其连接到我的 Ubuntu 服务器。UAS 默认处于激活状态,但在任何磁盘上执行 Io 密集型活动时会导致一系列问题:

Jan 26 12:27:24 HTPC kernel: [ 1448.712115] xhci_hcd 0000:0b:00.3: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 11 comp_code 1
Jan 26 12:27:24 HTPC kernel: [ 1448.713780] xhci_hcd 0000:0b:00.3: Looking for event-dma 00000003f9997aa0 trb-start* 00000003f9997ab0 trb-end 0000000000000000 seg-start 00000003f9997000 seg-end 00000003f9997ff0
Jan 26 12:27:24 HTPC kernel: [ 1448.713783] xhci_hcd 0000:0b:00.3: Looking for event-dma 00000003f9997aa0 trb-start 00000003f9996000 trb-end 00000003f99962b0 seg-start 00000003f9996000 seg-end 00000003f9996ff0
Jan 26 12:27:54 HTPC kernel: [ 1478.725405] sd 11:0:0:0: [sdd] tag#1 uas_eh_abort_handler 0 uas-tag 3 inflight: OUT 
Jan 26 12:27:54 HTPC kernel: [ 1478.725411] sd 11:0:0:0: [sdd] tag#1 CDB: Write(16) 8a 00 00 00 00 00 0f 78 84 00 00 00 04 00 00 00
Jan 26 12:27:54 HTPC kernel: [ 1478.748995] scsi host11: uas_eh_device_reset_handler start
Jan 26 12:27:54 HTPC kernel: [ 1478.829618] usb 4-2.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
Jan 26 12:27:54 HTPC kernel: [ 1478.855944] scsi host11: uas_eh_device_reset_handler success
Jan 26 12:27:55 HTPC kernel: [ 1479.234879] JBD2: Detected IO errors while flushing file data on sdd2-8
Jan 26 12:29:04 HTPC kernel: [ 1548.130565] sd 11:0:0:0: [sdd] tag#24 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Jan 26 12:29:04 HTPC kernel: [ 1548.130596] sd 11:0:0:0: [sdd] tag#24 Sense Key : Illegal Request [current] 
Jan 26 12:29:04 HTPC kernel: [ 1548.130600] sd 11:0:0:0: [sdd] tag#24 Add. Sense: Invalid command operation code
Jan 26 12:29:04 HTPC kernel: [ 1548.130606] sd 11:0:0:0: [sdd] tag#24 CDB: Write(16) 8a 00 00 00 00 00 10 b2 80 00 00 00 04 00 00 00
Jan 26 12:29:04 HTPC kernel: [ 1548.130611] blk_update_request: critical target error, dev sdd, sector 280133632 op 0x1:(WRITE) flags 0x4000 phys_seg 128 prio class 0
Jan 26 12:29:04 HTPC kernel: [ 1548.475897] xhci_hcd 0000:0b:00.3: WARN Successful completion on short TX
Jan 26 12:29:04 HTPC kernel: [ 1548.475943] EXT4-fs warning (device sdd2): ext4_end_bio:309: I/O error 5 writing to inode 131072004 (offset 1040187392 size 8388608 starting block 35017728)
Jan 26 12:29:04 HTPC kernel: [ 1548.475947] buffer_io_error: 1256 callbacks suppressed*

经过 Google 搜索,我找到了与类似问题相关的内容,并将该阵列的 UAS 列入了黑名单:

options usb-storage quirks=2109:0715:u   in /etc/modprobe.d

现在工作正常。

我是不是网速变慢了?有什么办法可以解决这个问题吗?这似乎是兼容性的一个新问题……

这是 Usbtree,显示 usb-storage 为驱动程序,以前是 UAS

*/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M

|__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M

    |__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 5000M

    |__ Port 3: Dev 4, If 0, Class=Hub, Driver=hub/4p, 5000M

        |__ Port 3: Dev 7, If 0, Class=Mass Storage, Driver=usb-storage, 5000M

        |__ Port 4: Dev 8, If 0, Class=Mass Storage, Driver=usb-storage, 5000M

        |__ Port 2: Dev 6, If 0, Class=Mass Storage, Driver=usb-storage, 5000M

/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M

|__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M

|__ Port 2: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M

    |__ Port 3: Dev 6, If 0, Class=Hub, Driver=hub/4p, 480M

|__ Port 3: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M

|__ Port 3: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M

|__ Port 4: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 12M

/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M

/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 480M*

相关内容