5 ms·
I started using ZFS a few years ago. Before that I didn't know that I could develop such a strong feeling towards a file system. But here we are. In my mind, it
by AndroTux 3y ago
I started using ZFS a few years ago. Before that I didn't know that I could develop such a strong feeling towards a file system. But here we are. In my mind, it really revolutionized the meaning of file system. It feels like much more than that, especially when compared to something like NTFS or ext4.
- HankB99 3y agoDisclaimer: I'm a huge fan of ZFS. ZFS is much more than just a filesystem and related tools. It also supports backup/restore and disk partitioning and partitioning of data via filesystems (not AFAIK available with EXT4.) And probably other things I either don;t know about or have forgotten to mention.
- cryptonector 3y agoZFS is life-altering.
- lprd 3y agoSimilar story here (truenas was a gateway drug). There are a few up and coming filesystems that I have my eye on. But by and large, ZFS has remained my favorite.
- imiric 3y agoI've been curious about ZFS ever since it became stable in Linux, but haven't made the jump yet because a) I have an irrational fear of data loss, and ext4 has never failed me, and b) I have an aversion towards complexity, and ZFS is much more complex than ext4. Features like snapshots and checksumming can be accomplished with userspace tools, though in arguably less elegant ways, so I didn't have a strong need for it either. That said, it's great reading its success stories and praises, and my next system will use ZFS. :)
- tombert 3y agoPotential complexity is higher with ZFS, but in regards to RAID and the like, I honestly find the zpool tools to be much easier to work with than their mdadm equivalents. I have a "ghetto NAS" of 24 drives plugged into my server via USB, and getting a raidz3 set up on there was one command: `zpool create tank raidz3 drive1 drive2 drive3 ....` Doing scrubs and replacing disks are pretty easy, just using `scrub` and `replace` commands with zpool. I haven't really felt the need to leave ZFS, at least not in regards to RAIDs; on root I still use ext4, though I might change to btrfs on my next install.
- j1elo 3y agoI'm just learning too, so one question: why wouldn't you just consolidate and use ZFS for root? Even with just 1 disk, I understand it's still beneficial for its corruption detection and other such features. Just trying to understand that about going the btrfs way.
- tombert 3y agoThere's no reason not to really, other than btrfs is included in the kernel, and if you're not using RAID then I don't think there's a fundamental advantage to ZFS either. If you want to do ZFS on root, it usually requires more than "zero" levels of extra work, unlike btrfs.
- zamadatix 3y agoThe main limitation I've had with ZFS is expanding it or modifying it is damn near impossible, you pretty much just have to find a second equal or larger storage pool, migrate, nuke, and rebuild. Even mdadm lets you do things like convert from raid5 to raid6 without having to nuke the pool. Storage Spaces with ReFS has had the most impressive feature set from this perspective. Add and remove an arbitrary number of drives of arbitrary sizes and it'll use the full capacity of the drives to whatever parity level you set it to. It has its own downsides of course, on top of being Windows only, but it's the only FS/pool combo that has really made me think "ZFS doesn't have quite everything perfect".
- tombert 3y agoThere are definitely annoyances, but there are workarounds too; you can add additional vdevs to expand the whole pool if you want, and data is striped across them; it even lets you mix and match different raids if you really want to for some reason. There's some current work to add a disk to existing vdevs, and I think even a semi-working PR for it now: https://github.com/openzfs/zfs/pull/15022 https://github.com/openzfs/zfs/pull/15022. Hopefully in theory that will make ZFS a little less frustrating.
- imiric 3y ago
- giantrobot 3y ago> I have an irrational fear of data loss, and ext4 has never failed me You're a lot more likely to lose/corrupt data with ext4 than ZFS. Ext4 will happily corrupt data silently. The core conceit of ZFS is it doesn't trust the underlying hardware. ZFS even allows duplicated data on a single disk. You lose capacity but gain robustness.
- imiric 3y agoLike I said, I've used ext* filesystems for decades now, and have yet to experience corruption or data loss. I know ZFS would detect and correct or notify this automatically, but this can be avoided with ext4 by doing frequent backups, and using tools like SnapRAID or par2. Sure, this needs to be done manually, but for my use cases this works rather well, and I enjoy the flexibility and direct control over this, rather than using a complex/magic file system that does this transparently for me. When ZFS support in Linux was still new, I wouldn't dare rely on it, and it's the same reason I avoid btrfs today, even though its features are appealing. But now that ZFS is quite stable, and after hearing its praises for years, I do want to give it a try. :)
- jjav 3y ago> I've used ext* filesystems for decades now, and have yet to experience corruption or data loss You might not know. How are you validating the integrity of every file regularly? In the 90s I lost some files to corruption which went unnoticed for years and propagated to every backup, so by the time I went looking for the file I had years worth of backups of those files, all corrupt. This is one of the reasons zfs is such a happy place.
- imiric 3y agoI get that. But in practice, it hasn't been a problem. For files I consider critical and difficult to replace, I use SnapRAID or par2, and others are either used frequently and I would notice the corruption, or replacing them wouldn't be a problem. Using a smart filesystem would be an improvement, but it comes at the expense of less flexibility and more complexity, and, until recently on Linux at least, relying on unstable software.
- jjav 3y ago> I have an irrational fear of data loss If you have an irrational fear of data loss (it's really quite rational), zfs is the only place you should be comfortable. I've been on zfs since its earliest days (~2004-ish, inside Sun at the time) and never lost a single byte ever since. Computers and hard drives have died but zfs just rocks on.