by magicalhippo · 3y ago · 0 comments
Are there any good options right now for multi-tiered storage for the home lab?
LVM has writeback cache as an option, but I couldn't quite figure out how reliable that is, found some old posts with disturbing issues but not a lot of recent talk. Would also need to run ZFS on top of it for the ZFS features I rely on like snapshots and such, so feels like a Jenga tower solution.
I know Ceph has this option, but Ceph performance is abysmal for small installations from what I could benchmark.
Bcachefs looks like it'll be a winner, but it's still WIP so won't trust it with my precious data quite yet I think.
"tiering" in the traditional sense isn't even popular in the DC with things like Vast, Pure, etc all doing well.
Is there any reason you don't know the data set that is generally cold? The vast majority of home users basically have data that is trivially super cold that needs reasonable read performance - this is just HDDs. Then have a second mount point with things that you need greater performance, and have that be just SSDs.
With large SSDs it seems alluring that one could have the majority of hot data on SSDs, essentially making the cold data even colder.
As you mention I could split my data in two, but that's a chore. If I need new data on the hot pool, I might have to first decide what got cold enough to move to the cold pool if there's not enough room left on the hot pool. That means I have to wait for that before I can save the new stuff on the hot pool. Searching for stuff means searching both places etc.
I forgot I stumbled over AutoTier[1] which could work, but it seems abandoned so again, not ideal for precious data. And it's FUSE based, so performance is likely not the best.
https://openzfs.github.io/openzfs-docs/man/7/zpoolconcepts.7...
Your price of $10/TB might apply when HDDs are purchased in bulk, because at retail I see prices between $15/TB and $20/TB.
No HDD may be trusted to store data for more than 5 years and this duration is valid only for the more expensive models.
Assuming your price of $10/TB, one must buy at least a double HDD capacity than tape capacity, due to the short lifetime, so tape is at least 4 times cheaper. At the prices that I see at retail the difference is even greater.
The sequential transfer speed of tape is greater than that of HDDs, so archiving or retrieving many GB of data takes less time with tapes.
HDDs wear out and malfunction more frequently than tapes.
The only real disadvantage of tapes is the high cost of the tape drives, which makes tapes preferable only when more than 100 or 200 TB of data have to be stored.
The real disadvantage of tapes is what the drive may die at any time and if you don't have another drive then you can't recover. And a replacement drive wouldn't be cheap (new) or reliable (used).
Yes they can fail mechanically (is this what you mean?) but you don’t necessarily lose your data.
How are you expanding capacity? With traditional software raid I'd need to fail every drive and replace them one by one with identical higher capacity drives which requires several rebuilds from parity which means a long time and massive I/O loads and high risk of unrecoverable read errors just destroying the whole array in the process. It's easier to make a new array and move data over...
I used to do what you're doing. Last 6-7 years I've been running mirrored setup so I could expand by just adding a new vdev. Rebuilt it twice when I upgraded to significantly larger disks.
As I mentioned ZFS on top of LVM seems interesting in terms of features and flexibility. But reliability-wise... I'd like to run a more proper test setup to gain some experience before I'd trust it.
https://raid.wiki.kernel.org/index.php/Growing#Expanding_exi...
Btrfs has a more flexible block allocator but its parity implementation is still unreliable.
I've tested this on a small scale prototype level (one HDD and one NVME SSD) and there it worked quite well. But like I said it feels a bit fragile, lots of moving parts.