I faced the same problem when trying to run two SSDs connected via USB in btrfs raid0. I used a cheap 30W power brick from amazon. You can see dmsg warnings about this. Look for low voltage/current. Problems were resolved after using the official Raspberry 5 power brick.
Selfhosted
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
Fewer Letters | More Letters |
---|---|
PSU | Power Supply Unit |
RPi | Raspberry Pi brand of SBC |
SBC | Single-Board Computer |
SSD | Solid State Drive mass storage |
3 acronyms in this thread; the most compressed thread commented on today has 5 acronyms.
[Thread #527 for this sub, first seen 19th Feb 2024, 06:55] [FAQ] [Full list] [Contact] [Source code]
Something to check is the type of USB devices, as I had a hard time with finding enclosures that work.
Some enclosures just don't work and randomly disconnect
I'd still think it's a power issue. I've got a bunch of 500gig laptop drives, and ended up getting a 10A 5v supply with a powered hub. Also if you have the chance, power the rpi by the 5v GPIO pins rather than USB, as often the PMIC on the Rpi is anemic and loves to STILL drop under recommended voltage. I run 5.2v 5A PSU on the 5v rail, and haven't had issues.
If these are 2.5" HDDs, (laptop sized) then maybe not. If they're the full sized 3.5" HDDs, they need their own external PSU.
Suggest the typical hardware device troubleshooting. watch/tail your dmesg -w or kernel log as you add the extra drive. It's curious that the system itself doesn't crash, but from your description it still sounds like a power starvation concern or possibly high temperatures if this device is under heavy load.
@Norgur Have you taken a look at this thread?
https://forums.raspberrypi.com/viewtopic.php?t=347894
Have you tried unplugging anything else connected to USB and then used only the powered hub(s) with multiple drives and does that work?
SSD or HDD?
Problems with spinning HDDs on RPI are common. Possibly even on powered hubs they may spike more than rpis 1.2A USB max allowance. You may need a specialised hat, or better to switch to solid state storage?
Thing is that I got the HDDs lying around already. The hub supplies 5v/3A so powershould not be an issue... Yet who knows... I could try to power the HDDs from a USB power supply with a split cable and see if that helps
Might be power. i had a 3.5 HDD external USB adapter with separate power plug. It would drop out under sustained use. Fix was providing higher amp power supply
HDD, nothing else but the drives connected, doesn't work
Does it only happen with these two drives? i would try with some other HDD/SSDs or two usb sticks. that way you can test if its some weird hardware incompatibility that sometimes happen between specific devices or if the board wont support more then one connected usb drive in general.