RPi 4B with 2 external USB disks

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

RPi 4B with 2 external USB disks

Postby this10nly » Fri Nov 05, 2021 2:17 pm

Hi all,

I have a weird issue. I am running RPi 4b 8GB and want to attach 2 external USB disks (Seagate Expansion Desk 4TB each). Wanted to make a small NAS box.

Disks are connected to 2 USB3 ports and both have their own external power supply, but when I connect them after a while one of them stops spinning and giving just a clicking sound with I/O errors, eventually goes in RO mode.

After reboot of Raspberry only one comes up ok and the other one is clicking.

Tested disks with smartctl and everything is ok. Connected disks to a laptop and they are running without any issues.

It sounds like they don't get enough current, but could that be the case even if they have external power supply?

I have tried over_voltage=[1,2,4] disabling uas but the issue remains.

Anyone had anything similar?
this10nly
 
Posts: 5
Joined: Fri Nov 05, 2021 2:07 pm

Re: RPi 4B with 2 external USB disks

Postby 4rt » Wed Nov 10, 2021 4:40 am

Sounds power supply related. Are you using the same power supply when you use the drives with laptop or are they receiving power via different method? Are they SSD? 3.5"? What current is the power supply rated for? Usually but not always HD's have power requirements on them, what are they or can you find a datasheet for the specific HD and find out power requirements?
4rt
 
Posts: 14
Joined: Mon Oct 18, 2021 3:39 am

Re: RPi 4B with 2 external USB disks

Postby this10nly » Tue Nov 16, 2021 8:46 pm

Same power supply from the manufacturer of external disks. I have made a funny discovery. The issue is only happening while I boot/reboot my raspberry pi. If I boot it without external USB disks and then attach them they work without any problems. It is like something early in the boot process that perhaps limits power?

EDIT: I have entries for them in fstab.
this10nly
 
Posts: 5
Joined: Fri Nov 05, 2021 2:07 pm

Re: RPi 4B with 2 external USB disks

Postby bulletmark » Tue Nov 16, 2021 10:12 pm

Probably still due to power supply because the machine uses more power during boot than idle. Check `journalctl | grep -i volt`.
bulletmark
 
Posts: 98
Joined: Tue Oct 13, 2015 10:17 pm

Re: RPi 4B with 2 external USB disks

Postby this10nly » Fri Dec 03, 2021 1:17 pm

Hmm, I was too quick to jump to conclusions. During operation I am seeing the same failures:

Kernel is outputting this:
Dec 01 02:18:48 cicada kernel: sd 1:0:0:0: [sdb] tag#25 uas_eh_abort_handler 0 uas-tag 8 inflight: CMD IN
Dec 01 02:18:48 cicada kernel: sd 1:0:0:0: [sdb] tag#25 CDB: opcode=0x88 88 00 00 00 00 00 11 b6 c0 00 00 00 00 80 00 00
Dec 01 02:18:48 cicada kernel: sd 1:0:0:0: [sdb] tag#11 uas_eh_abort_handler 0 uas-tag 7 inflight: CMD IN
Dec 01 02:18:48 cicada kernel: sd 1:0:0:0: [sdb] tag#11 CDB: opcode=0x88 88 00 00 00 00 00 11 b6 b8 00 00 00 00 80 00 00
Dec 01 02:18:48 cicada kernel: sd 1:0:0:0: [sdb] tag#10 uas_eh_abort_handler 0 uas-tag 4 inflight: CMD IN
Dec 01 02:18:48 cicada kernel: sd 1:0:0:0: [sdb] tag#10 CDB: opcode=0x88 88 00 00 00 00 00 11 b6 a0 00 00 00 00 80 00 00
Dec 01 02:18:48 cicada kernel: sd 1:0:0:0: [sdb] tag#9 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD IN
Dec 01 02:18:48 cicada kernel: sd 1:0:0:0: [sdb] tag#9 CDB: opcode=0x88 88 00 00 00 00 00 11 b6 98 00 00 00 00 80 00 00
Dec 01 02:18:48 cicada kernel: sd 1:0:0:0: [sdb] tag#8 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD IN
Dec 01 02:18:48 cicada kernel: sd 1:0:0:0: [sdb] tag#8 CDB: opcode=0x88 88 00 00 00 00 00 11 b6 90 00 00 00 00 80 00 00
Dec 01 02:18:48 cicada kernel: sd 1:0:0:0: [sdb] tag#6 uas_eh_abort_handler 0 uas-tag 6 inflight: CMD IN
Dec 01 02:18:48 cicada kernel: sd 1:0:0:0: [sdb] tag#6 CDB: opcode=0x88 88 00 00 00 00 00 11 b6 b0 00 00 00 00 80 00 00
Dec 01 02:18:48 cicada kernel: sd 1:0:0:0: [sdb] tag#3 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN
Dec 01 02:18:48 cicada kernel: sd 1:0:0:0: [sdb] tag#3 CDB: opcode=0x88 88 00 00 00 00 00 11 b6 88 00 00 00 01 00 00 00
Dec 01 02:18:48 cicada kernel: sd 1:0:0:0: [sdb] tag#0 uas_eh_abort_handler 0 uas-tag 5 inflight: CMD IN
Dec 01 02:18:48 cicada kernel: sd 1:0:0:0: [sdb] tag#0 CDB: opcode=0x88 88 00 00 00 00 00 11 b6 a8 00 00 00 00 80 00 00
Dec 01 02:18:48 cicada kernel: scsi host1: uas_eh_device_reset_handler start
Dec 01 02:18:48 cicada kernel: usb 2-1: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
Dec 01 02:18:48 cicada kernel: scsi host1: uas_eh_device_reset_handler success
Dec 01 02:18:48 cicada kernel: xhci_hcd 0000:01:00.0: WARNING: Host System Error
Dec 01 02:18:53 cicada kernel: xhci_hcd 0000:01:00.0: xHCI host not responding to stop endpoint command.
Dec 01 02:18:53 cicada kernel: xhci_hcd 0000:01:00.0: USBSTS: HSE EINT
Dec 01 02:18:53 cicada kernel: xhci_hcd 0000:01:00.0: Host halt failed, -110
Dec 01 02:18:53 cicada kernel: xhci_hcd 0000:01:00.0: xHCI host controller not responding, assume dead
Dec 01 02:18:53 cicada kernel: xhci_hcd 0000:01:00.0: HC died; cleaning up
Dec 01 02:18:53 cicada kernel: sd 1:0:0:0: [sdb] tag#1 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08 cmd_age=36s
Dec 01 02:18:53 cicada kernel: sd 1:0:0:0: [sdb] tag#1 Sense Key : 0xb [current]
Dec 01 02:18:53 cicada kernel: sd 1:0:0:0: [sdb] tag#1 ASC=0x47 ASCQ=0x3
Dec 01 02:18:53 cicada kernel: sd 1:0:0:0: [sdb] tag#1 CDB: opcode=0x88 88 00 00 00 00 00 11 b6 c0 00 00 00 00 80 00 00
Dec 01 02:18:53 cicada kernel: blk_update_request: I/O error, dev sdb, sector 297189376 op 0x0:(READ) flags 0x80700 phys_seg 16 prio class 0
Dec 01 02:18:53 cicada kernel: usb 1-1: USB disconnect, device number 2
Dec 01 02:18:53 cicada kernel: usb 2-1: USB disconnect, device number 3

And journalctl | grep -i volt from root does not return anything.
Last edited by this10nly on Fri Jan 28, 2022 12:15 am, edited 1 time in total.
this10nly
 
Posts: 5
Joined: Fri Nov 05, 2021 2:07 pm

Re: RPi 4B with 2 external USB disks

Postby this10nly » Fri Jan 28, 2022 12:11 am

Hmmm, I think they are just not compatible with "uas" driver, so I will need to add "usb-storage.quirks" kernel param, but my question is - where do I add it? I have tried modprobe.d and regenerated initramfs, but still usb disks are using uas. Is there an option to add it in /boot/config.txt ?

Thanks in advance.
this10nly
 
Posts: 5
Joined: Fri Nov 05, 2021 2:07 pm

Re: RPi 4B with 2 external USB disks

Postby karog » Fri Jan 28, 2022 1:09 am

try adding the following to /boot/cmdline.txt

$this->bbcode_second_pass_code('', 'usb-storage.quirks=0x0bc2:0x231a:u')

This is a bit of a guess as it is what I add for my odroid xu4 in boot.txt bootargs for my seagate.

check result after boot with lsusb -t
karog
 
Posts: 300
Joined: Thu Jan 05, 2012 7:55 pm

Re: RPi 4B with 2 external USB disks

Postby this10nly » Fri Jan 28, 2022 6:35 pm

Thanks karog! It did the job. Now testing time.
this10nly
 
Posts: 5
Joined: Fri Nov 05, 2021 2:07 pm


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 4 guests