| 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.) |
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.