What's all this with USB?

From Linux Raid Wiki
Revision as of 08:44, 25 September 2020 by Anthony Youngman (Talk | contribs)

Jump to: navigation, search
Back to Timeout Mismatch Forward to The Badblocks controversy

There was a thread on the raid mailing list in January 2018 where someone asked why the wiki said "Do not use USB". The general consensus is that "it is a very bad idea", but nobody could really put their finger on why. Just that bad things seem to happen if you do.

However, it seems likely that the cause is two-fold.

Firstly, the cables are prone to being knocked and jiggling. This can easily trigger a disconnect/reset sequence which, if it happens to occur in the middle of a write can be extremely disruptive.

Secondly, USB is a star topology which can hang up to 128 devices off a single port. Hanging multiple drives off one port is not a good idea, but all too often it is not obvious. Even when drives are plugged directly into the motherboard, they may be connected via an internal hub to a single port. Back in the day your editor built a system for copying CDs. Originally, it had three CDRWs and one hard drive plugged into the two onboard PATA connectors. Performance was abysmal. Then some add-in PATA boards were purchased, and the system reconfigured with only one CDRW per cable. All of a sudden the CDRWs ran at their rated 48x speed or whatever it was, rather than running at less than 1x.

Thirdly, I've now picked up on a claim that many motherboards are mis-wired. Even though the motherboard may claim to support USB3, quite often the mobo's USB2 ports will be wired into the USB3 hub rather than their own USB2 hub. This can - either directly or when a USB2 device is plugged in - throttle the USB3 hub to USB2 speeds! Although the USB2 spec (and the USB3.1 spec) forbid this sort of behaviour, this effect is still observed as 3.1 hubs ignore the spec and USB2 hubs block while buffering USB1 devices.

And lastly, many external enclosures are poorly ventilated. Using a drive heavily is likely to overheat and kill it.

So the general conclusion - although there are no hard and fast reasons - is that USB for raid is a bad idea. Don't do it!

Back to Timeout Mismatch Forward to The Badblocks controversy
Personal tools