Also tagging @vashp2029 because they asked.
I calculated this with 24 x 18 TB Toshiba MG09 HDDs, which I can get new with 5 years warranty for 250€ each, so 6000€ for storage. Four of those drives will be parity drives, so in the end I will have 20 x 18 TB = 360 TB usable storage. I initially calculated with TiB instead of TB that's why I said 320 when it should have been even more.
I can get a cheap hot-swappable 24 bay 4U case + rails from a chinese merchant for ~315€ (including shipping) and get 3 used LSI 2008 SAS controllers for ~30€ each. I would use consumer hardware (ATX mainboard, intel 12th gen cpu, 2 x 2 TB NVMe SSDs in RAID 1 for cache, 64GB RAM DDR4 3200, a single 750W non-redundant ATX power supply (making sure to stagger drive spin-ups). Let's say an additional 1300 € for the hardware on top of the drives. I don't care about ECC RAM or redundant power supplys, as my use case is not that critical and I wouldn't even mind a few days downtime.
I can colocate with Hetzner close to my hometown for 120€ / mo for 14U rackspace with a 1 Gibt / s port and 2TB traffic. Additional traffic is charged with 1.19€ / TB. Ingoing traffic is always free. I expect far less than 10 TB egress traffic per month, but let's just calculate with an additional 20€ / mo for traffic. Electricity is expensive at a pricepoint of almost 0.54€ / kWh. I would probably spin down drives to save costs, but let's exaggerate and calculate with a constant power consumption of 200 W, this will add up to almost 80€ / mo. I won't need remote hands, as I can visit the datacenter myself, especially since longer downtimes are no problem for me. I neglect the cost of gas as I have no idea how often I would need to go there, but I don't think it will be very often.
In total:
Monthly Expenses | [€] |
---|---|
Rackspace | 120 |
Electricity | 80 |
Traffic | 20 |
Total | 220 |
One-time Expenses | [€] |
---|---|
HDDs | 6000 |
Server Hardware | 1300 |
Total | 7300 |
If I annualize the hardware cost over two years (the system will likely live much longer, but that is the warranty period of the consumer hardware), I get 7300€ / 24 = 304.17 / mo, lets say 310.
So in the end we have 220 + 310 = 530 € / mo for 360 TB usable, which is 1,47€ / TB / mo.
and given the initial investment plus all the labor and aggravation this is certainly going to generate, I'd rather pay $2/TB/mo to iDrive e2 S3
I was not aware of this offer when I made my original comment and I tend to agree. However, after the first two years the hardware will be paid off and the cost will drop well below 1€ / TB / month, provided the consumer hardware doesn't fail. But even if something does fail after 2 years, it will be cheap to replace. And the HDDs have longer warranty. The only problem could be if the backplate fails because delivery times can be long for that, so it might be reasonable to buy a spare.
But cloud storage will probably also become cheaper over time. I think it is a decision that should be made under consideration of your individual requirements and of course your willingness to build and maintain such a project.