Hacker News new | ask | show | jobs
by pavinjoseph 1 day ago
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.