How to Use the ZFS Filesystem on Ubuntu Linux
maketecheasier.com
maketecheasier.com
I think ZFS for a long time (if not still) has some... patent issues associated with it which could be problematic in an open-source context.
I think BTRFS was (or is still) trying to fill this niche (and is open-source), but the perception is that it is not 100% reliable, and unfortunately, a first-class filesystem kind of has to be.
Here's a guide on how to use ZFS as the root filesystem on Ubuntu: https://github.com/zfsonlinux/zfs/wiki/Ubuntu-16.10-Root-on-...
https://insights.ubuntu.com/2016/02/18/zfs-licensing-and-lin...
vs.
It would be awesome if someone from one of the big distributions chimed in why ZFS is passed over, from their perspective, and perhaps the ZoL project might be able to help address their concerns.
[1] https://github.com/zfsonlinux/zfs/wiki/FAQ#licensing
[2] http://warpmech.com/?news=myth-busting-series-zfs-on-linux-h...
Among other things, booting from ZFS on Linux can still be an experience with rough edges - I think one distro makes it easy to do from the installer (Slackware?), but otherwise you get to follow instructions which are opaque to someone not already familiar with running Linux, and debugging can be weird even if you are (the most common thing I've seen is the initramfs failing to import the pool and dropping to a rescue prompt, then succeeding at importing there - for a variety of reasons, usually not "the disks weren't spun up yet when it tried importing" any more).
There's also the caveat that frequently ZFS gains feature flag support faster than GRUB2 gets updated to boot from those features, particularly since you can't just shove CDDL code into GRUB2, so you get to reimplement the wheel, and zpool upgrade/zpool set doesn't currently warn you that you're gonna make your pool unbootable if you turn on those features.
I'm not a distro maintainer or anything of the sort, but between the above rough edges and concerns about redistributability of CDDL modules compiled against the Linux kernel and patents, I'm not surprised that people shy away from it unless $BIG_CUSTOMER throws a lot of money at them to make it a first-class citizen.
(I'm also really curious, consequently, why Canonical is diving headfirst onto the wagon...)
I think it's a combination of being fans of ZFS and needing something to differentiate them from Red Hat.
But what _could_ make it is a reverse-engineered "GPLed" ZFS (and, being that OpenZFS code is available, it shouldn't be that hard for a largeish team - someone just has to audit the code to make sure nothing slips through). The other big issue is patents (meaning that this "GPLed ZFS" will be subject to patent lawsuits).
But: 1. Not all countries have software patents. 2. Most patents should expire within a decade (I think. I didn't do a lot of research, but the earliest lawsuits I found were around 2006?)
Except that you can pull the disks, stick them in another machine, import the pool, and immediately have access to your data -- as well as, in the case of a failed RAID controller, not having to worry about finding a spare, working, replacement card of the exact same type (which isn't an uncommon occurrence).
So I run locally. And I have thought about running with ZFS and exporting it through an SMB share. I realize I wouldn't really be getting much of the safety benefit (beyond checksumming I guess), but being able to snapshot would be lovely.
I keep an external backup, and I use git on windows for manually snapshotting, but it's still a bit of a pain, and to be able to snap the whole filesystem seems awesome.
I have 32 gigs of ram, and give half to the VM... Any opinions on this idea?
http://docs.oracle.com/cd/E19253-01/819-5461/gbcya/index.htm...
Then you can have everything on ZFS and you can keep the whole windows disk as a separate volume. Snapshoting both should be trivial in that case.
You'd get volume shadow copies and your users would get the ability to rollback files on their own.
My research lead me to discover what bit-rot was and how most filesystems dont actually ensure that what was read from disk is precisely what was written to it.
Enter ZFS, an incredible filesystem that makes ensuring data integrity a breeze. I run 12x2TB disks in a raidz2 running bi-monthly scrubs and not a single corrupted byte since