USB-C HDD caddy - USB resets

Issues related to hardware problems
Post Reply
veehexx
Posts: 26
Joined: 2017/11/24 18:40:03

USB-C HDD caddy - USB resets

Post by veehexx » 2020/08/26 17:58:07

I've been experiencing issues writing to USB HDD/SSD's with a pair of USB-C 2.5" caddies. rsync performance drops so much it looks like a stall and i've isolated it to likely an OS issue.

My old home server (intel 2015-era) originally worked fine. i even ran 3 ext HDD's for many months without issue. however nearing the end of it's life it started having these issues (part of the reason i condemned it). it's ran on centos7 and 8stream. figured it was a USB-C cable issue, they were changed as was HDD/SSD and caddy. no fix. Looking back (around/before christmas) i wonder if the different between working USB HDD's and not working is 8stream installation.

My new server (amd, 2020) i bought last month has always had issues (centos8stream). So i try on my Fedora32 (5.7 kernel) laptop and the USBC caddy has not glitched once.
Looks like it might be an OS issue - something specific with centos maybe? This is where i'm stuck. i've seen various potentials but they're for other distros and some rather quite old so likely not applicable.also some sugestions with disabling UASP (both caddies have this feature), changing usb reset/timeout period with kernel parameter.

below log is from my new server. i can see a few things; it appears to be every 30seconds (USB timeout and reset?) and it's constantly doing it - easy to test and reproduce for a solution.

Code: Select all

...
[ 8124.676159] sd 11:0:0:0: [sdg] tag#10 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN 
[ 8124.676163] sd 11:0:0:0: [sdg] tag#10 CDB: Read(10) 28 00 00 00 2a e0 00 00 08 00
[ 8124.686156] scsi host11: uas_eh_device_reset_handler start
[ 8124.801310] usb 4-4: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[ 8124.818375] scsi host11: uas_eh_device_reset_handler success
[ 8154.871057] scsi host11: uas_eh_device_reset_handler start
[ 8154.871132] sd 11:0:0:0: [sdg] tag#11 uas_zap_pending 0 uas-tag 1 inflight: CMD 
[ 8154.871135] sd 11:0:0:0: [sdg] tag#11 CDB: Read(10) 28 00 00 00 2a e0 00 00 08 00
[ 8154.986243] usb 4-4: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[ 8155.004285] scsi host11: uas_eh_device_reset_handler success
[ 8185.054956] scsi host11: uas_eh_device_reset_handler start
[ 8185.055036] sd 11:0:0:0: [sdg] tag#8 uas_zap_pending 0 uas-tag 1 inflight: CMD 
[ 8185.055039] sd 11:0:0:0: [sdg] tag#8 CDB: Read(10) 28 00 00 00 2a e0 00 00 08 00
[ 8185.170053] usb 4-4: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[ 8185.187237] scsi host11: uas_eh_device_reset_handler success
[ 8215.244861] scsi host11: uas_eh_device_reset_handler start
[ 8215.244944] sd 11:0:0:0: [sdg] tag#9 uas_zap_pending 0 uas-tag 1 inflight: CMD 
[ 8215.244947] sd 11:0:0:0: [sdg] tag#9 CDB: Read(10) 28 00 00 00 2a e0 00 00 08 00
[ 8215.359979] usb 4-4: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[ 8215.377174] scsi host11: uas_eh_device_reset_handler success
[ 8245.434760] scsi host11: uas_eh_device_reset_handler start
[ 8245.434841] sd 11:0:0:0: [sdg] tag#10 uas_zap_pending 0 uas-tag 1 inflight: CMD 
[ 8245.434844] sd 11:0:0:0: [sdg] tag#10 CDB: Read(10) 28 00 00 00 2a e0 00 00 08 00
[ 8245.550902] usb 4-4: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[ 8245.568995] scsi host11: uas_eh_device_reset_handler success
[ 8275.636685] scsi host11: uas_eh_device_reset_handler start
[ 8275.636762] sd 11:0:0:0: [sdg] tag#11 uas_zap_pending 0 uas-tag 1 inflight: CMD 
[ 8275.636765] sd 11:0:0:0: [sdg] tag#11 CDB: Read(10) 28 00 00 00 2a e0 00 00 08 00
[ 8275.751825] usb 4-4: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[ 8275.769711] scsi host11: uas_eh_device_reset_handler success
[ 8275.769809] sd 11:0:0:0: [sdg] tag#11 FAILED Result: hostbyte=DID_RESET driverbyte=DRIVER_OK cmd_age=181s
[ 8275.769811] sd 11:0:0:0: [sdg] tag#11 CDB: Read(10) 28 00 00 00 2a e0 00 00 08 00
[ 8275.769814] blk_update_request: I/O error, dev sdg, sector 10976 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 8275.770919] Buffer I/O error on dev sdg1, logical block 1116, async page read
[ 8305.822567] sd 11:0:0:0: [sdg] tag#8 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN 
[ 8305.822570] sd 11:0:0:0: [sdg] tag#8 CDB: Read(10) 28 00 00 00 2a e0 00 00 08 00
[ 8305.848553] scsi host11: uas_eh_device_reset_handler start
[ 8305.963635] usb 4-4: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[ 8305.981669] scsi host11: uas_eh_device_reset_handler success
[ 8336.024456] scsi host11: uas_eh_device_reset_handler start
[ 8336.024534] sd 11:0:0:0: [sdg] tag#9 uas_zap_pending 0 uas-tag 1 inflight: CMD 
[ 8336.024537] sd 11:0:0:0: [sdg] tag#9 CDB: Read(10) 28 00 00 00 2a e0 00 00 08 00
[ 8336.138576] usb 4-4: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[ 8336.155704] scsi host11: uas_eh_device_reset_handler success
[ 8366.202361] scsi host11: uas_eh_device_reset_handler start
[ 8366.202441] sd 11:0:0:0: [sdg] tag#10 uas_zap_pending 0 uas-tag 1 inflight: CMD 
[ 8366.202444] sd 11:0:0:0: [sdg] tag#10 CDB: Read(10) 28 00 00 00 2a e0 00 00 08 00
[ 8366.317491] usb 4-4: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[ 8366.334500] scsi host11: uas_eh_device_reset_handler success
[ 8396.400277] scsi host11: uas_eh_device_reset_handler start
[ 8396.400353] sd 11:0:0:0: [sdg] tag#11 uas_zap_pending 0 uas-tag 1 inflight: CMD 
[ 8396.400356] sd 11:0:0:0: [sdg] tag#11 CDB: Read(10) 28 00 00 00 2a e0 00 00 08 00
[ 8396.515416] usb 4-4: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[ 8396.533500] scsi host11: uas_eh_device_reset_handler success
[ 8426.584174] scsi host11: uas_eh_device_reset_handler start
[ 8426.584250] sd 11:0:0:0: [sdg] tag#8 uas_zap_pending 0 uas-tag 1 inflight: CMD 
[ 8426.584253] sd 11:0:0:0: [sdg] tag#8 CDB: Read(10) 28 00 00 00 2a e0 00 00 08 00
[ 8426.699346] usb 4-4: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[ 8426.717470] scsi host11: uas_eh_device_reset_handler success
[ 8456.789061] scsi host11: uas_eh_device_reset_handler start
[ 8456.789145] sd 11:0:0:0: [sdg] tag#9 uas_zap_pending 0 uas-tag 1 inflight: CMD 
[ 8456.789148] sd 11:0:0:0: [sdg] tag#9 CDB: Read(10) 28 00 00 00 2a e0 00 00 08 00
[ 8456.904265] usb 4-4: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[ 8456.922384] scsi host11: uas_eh_device_reset_handler success
[ 8456.922471] sd 11:0:0:0: [sdg] tag#9 FAILED Result: hostbyte=DID_RESET driverbyte=DRIVER_OK cmd_age=181s
[ 8456.922474] sd 11:0:0:0: [sdg] tag#9 CDB: Read(10) 28 00 00 00 2a e0 00 00 08 00
[ 8456.922477] blk_update_request: I/O error, dev sdg, sector 10976 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 8456.923906] Buffer I/O error on dev sdg1, logical block 1116, async page read

Post Reply

Return to “CentOS 8 - Hardware Support”