What's all this with USB?

From Linux Raid Wiki
(Difference between revisions)
Jump to: navigation, search
(Initial page creation)
 
m
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
{| style="border:1px solid #aaaaaa; background-color:#f9f9f9;width:100%; font-family: Verdana, sans-serif;"
 +
|- padding:5px;padding-top:0.5em;font-size: 95%;
 +
| Back to [[Timeout Mismatch]] <span style="float:right; padding-left:5px;">Forward to [[The Badblocks controversy]]</span>
 +
|}
 +
 
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.
 
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.
+
However, it seems likely that the cause is many-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.
 
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.
 
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.
 
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!
 
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!
 +
 +
{| style="border:1px solid #aaaaaa; background-color:#f9f9f9;width:100%; font-family: Verdana, sans-serif;"
 +
|- padding:5px;padding-top:0.5em;font-size: 95%;
 +
| Back to [[Timeout Mismatch]] <span style="float:right; padding-left:5px;">Forward to [[The Badblocks controversy]]</span>
 +
|}

Latest revision as of 11:22, 26 September 2020

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 many-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