I've got a few USB drives that are always attached that I do stuff with.
To pick a not-RAID example, I've got an old (2012-vintage) 180GB SATA SSD, from Intel, on my desk. It gets used as scratch space for big-ish file operations, where it gets hammered hard periodically, usually in bursts. It's plugged into a cheap SATA <> USB 3 adapter, and is otherwise-unadorned. It is bus-powered.
It's usually connected to the back of the PC, but it's been plugged into different USB ports (with different controller types) and also external hubs.
I don't recall what its exact status was when I starting doing that with it after pulling it out of a gently-used Thinkpad T530 about 5 years ago, but I do recall thinking that it had lots of life left.
Here's where it is today:
- 10.6 years powered on
- 81TB written (of 36.5TB promised); ~222% over spec
- Zero reallocated sectors
- One singular hardware-reported error (corrected)
- Zero sector reallocations
And the pièce de résistance:
- Zero reported errors according to ZFS checksums
That last one is important because in this application, ZFS automatically and continuously provides end-to-end verification, and it's been doing...perfectly fine.
The other USB storage devices here that are used 24/7 are similar in this way. It's not hellish at all. It's quite lovely.
I'm inclined to further extrapolate that it would not have better data integrity when connected directly to a SATA port on the motherboard, or in a disk shelf attached via iSCSI or SAS or some other more-stodgy thing. It's hard get results that exceed beyond perfection.
(But in this example, I'm not chasing down minute bus timing issues with multi-gig networks. That's a very different kind of discussion.)
Currently on the fourth and most stable iteration of the "usb raid" project.
1. btrfs raid1 - chosen for different size disk compatibility but failed due to UAS issues with the HDD enclosures.
2. bcachefs raid1 with metadata on separate USB SSDs - worked the longest with its fsck ironing many issues but ultimately the metadata got irreparably damaged due to some USB <-> SATA bridge issue compounded with hub power loss.
3. lvmraid 1 - worked for a while but failed after USB hub power loss.
4. snapraid + mergerfs in raid5 config - currently using this though not realtime raid. fast and stable. no issues if a disk drops out or hub power fails. finally ironed out the UAS and hub issues.
Looking back, if I really needed realtime raid I would go back to bcachefs, such a shame it's not in the kernel anymore. The failures in all cases were faulty UAS implementation in SATA enclosures compounded by USB hub design issues (chaining hubs internally) and of course the odd hub power loss that would send a teetering array into the abyss.
No question purchasing a NAS would've been the saner choice but I really don't like throwing things away if I can help it.
In my experience, data integrity and long-term reliability of products that actually work correctly in the first place are not an issue, nor is performance if you don't have unrealistic expectations.
It's not like hard drives and SSDs underlying USB storage are engineered to lower quality standards than internal drives; they're typically similar if not identical. The only instance where I've observed special-purpose hardware is drives incorporating USB bridge logic directly on the drive's controller rather than on a separate board connected via a traditional SATA interface as a cost-cutting measure.
Problems I have seen are typically the result of hardware or firmware bugs leading to frequent disconnections or even failure to attach in the first place, power problems due to low-quality power supplies, overloading controllers or hubs with too many bus-powered devices, or knowingly or unknowingly using hardware clearly not fit for purpose (expecting good random read/write I/O performance from an array incorporating one or more of SMR drives, SATA port replicators, and non-UAS bridge chips; expecting hot-running drives to remain within their operating temperature range in environments with relatively high ambient temperatures when installed in enclosures with little or no airflow, etc.).
To pick a not-RAID example, I've got an old (2012-vintage) 180GB SATA SSD, from Intel, on my desk. It gets used as scratch space for big-ish file operations, where it gets hammered hard periodically, usually in bursts. It's plugged into a cheap SATA <> USB 3 adapter, and is otherwise-unadorned. It is bus-powered.
It's usually connected to the back of the PC, but it's been plugged into different USB ports (with different controller types) and also external hubs.
I don't recall what its exact status was when I starting doing that with it after pulling it out of a gently-used Thinkpad T530 about 5 years ago, but I do recall thinking that it had lots of life left.
Here's where it is today:
And the pièce de résistance: That last one is important because in this application, ZFS automatically and continuously provides end-to-end verification, and it's been doing...perfectly fine.The other USB storage devices here that are used 24/7 are similar in this way. It's not hellish at all. It's quite lovely.
I'm inclined to further extrapolate that it would not have better data integrity when connected directly to a SATA port on the motherboard, or in a disk shelf attached via iSCSI or SAS or some other more-stodgy thing. It's hard get results that exceed beyond perfection.
(But in this example, I'm not chasing down minute bus timing issues with multi-gig networks. That's a very different kind of discussion.)