Before you scream at your screen, I am aware this setup isn’t ideal, to say the least, my Self-hosting has been composed of a laptop with a usb carry with a 2.5 1tb hard drive. I recent made up my mind about getting a couple 4 tb server hdd (heard barracuda are relatively silent) to run software raid 1, since I can’t find a budget double bay carry (that I can purchase locally) I’ve decided I’ll get a couple 3.5 inch usb cases and get a splitter to run the power from just just one brick.
My question is regarding resiliency, I get occasional blackouts and low tension every now and then, a few times a year but it can be a few times in a day. I’ve never had hardware dying because of it and I don’t have a UPS, but I worry I could be risking data corruption or something swapping to this setup because of the extra power those drives will need being fed from the wall instead of the laptop (the laptop feeds the current drive over usb alone and it has a battery) which could be abruptly cut off every now and then. Right now, the worst this has caused has been having ro reboot the system because it got unmounted but never had a loss of data from this.
Am I worrying for nothing? Would it be just the same? Should I just put this off until (if) I can afford the drives plus a ups? So far I’ve had my server for basically free, but I’m running out of space for family photos and I kinda have to upgrade.
NaibofTabr@infosec.pub 1 day ago
You SHOULD NOT do software RAID with hard drives in separate external USB enclosures.
There will be absolutely no practical benefit to this setup, and it will just create risk of transcription errors between the mirrored drives due to any kind of problems with the USB connections, plus traffic overhead as the drives constantly update their mirroring. You will kill your USB controller, and/or the IO boards in the enclosures. It will be needlessly slow and not very fault-tolerant.
If this hardware setup is really your best option, what you should do is use 1 of the drives as the active primary for the server, and push backups to the other drive (with a properly configured backup application, not RAID mirroring). That way each drive is fully independent from the other, and the backup drive is not dependent on anything else. This will give you the best possible redundancy with this hardware.
kumi@feddit.online 17 hours ago
USB enclosures are shady and tend to be less reliablr in general but I think this is FUD. It’s not like that’s particularly bad for software RAID compared to running with the enclosure without any RAID.
wat.jpeg
Source: 10+ years of ZFS and mdadm RAID on USB-SATA adapters of varying dodginess. Errors happen and there have been corruptions but nothing close to what you speak of.