4 ms·
> I think it's just a package install away on many Linux distros? Also installable on macOS — I had a ZFS USB disk I shared between Mac and FreeBSD. It's easy
by vbezhenar 9y ago
> I think it's just a package install away on many Linux distros? Also installable on macOS — I had a ZFS USB disk I shared between Mac and FreeBSD.
It's easy to install if you want to use it as an additional filesystem. But if you want to install e.g. RHEL on root ZFS, it's quite an adventure. Even Ubuntu with first-class support for ZFS does not support ZFS on root from the box. Actually I don't understand it. Of all the features, snapshots looks like killer feature for Linux distributions. Make snapshot before upgrade, allow easy rollback if upgrade gone wrong. Something like Windows restore points, but much more reliable.
- phil21 9y agoI agree, snapshots are amazing for / on a linux machine. Makes backups actually work right, and be very inexpensive (computationally). But, the tooling is still rather new and untested. At work we are still stamping out upstream bugs that really shouldn't exist, but the ecosystem is certainly getting better. It's only been a couple years since the ZFS on Linux project has gotten remotely any uptake by the distro folks, and even now that interest is rather tepid due to the licensing issues. If ZFS was GPL I think it would have been the default filesystem on Linux for quite some time now.
- floatboth 9y ago> if you want to use it as an additional filesystem Which is totally fine for a NAS! But yeah, I like my ZFS root on all the FreeBSD installs :) > snapshots looks like killer feature for Linux distributions True. FreeBSD and of course Solaris/illumos had boot environments for a long time, it's an excellent feature.
- ScottBurson 9y agoSince Btrfs also has snapshots, it seems perfectly adequate for a root FS. It hasn't seemed important to me to run a ZFS root, even though I have all my user data in ZFS.
- RJIb8RBYxzAMX9u 9y agobtrfs snapshots have a lot of gotchas. Quoting myself: https://news.ycombinator.com/item?id=14724820 https://news.ycombinator.com/item?id=14724820
- ScottBurson 9y agoGood to know. I've used them only very rarely.
- cmurf 9y agoIf you have a mandatory flush to disk anytime there's a snapshot, they suddenly become a lot more expensive. They are still atomic in that the operation either did completely happen or not at all happen, if a crash occurs after the command returns, i.e. you don't end up with a partial or corrupt snapshot after you reboot. The need for a snapshot to be on disk when sending, what you cite says you get an obscure error "stale NFS file handle" not that you get missing files. If you're silently getting missing files on a send/receive, that's a bug and should be reported. I use snapshots quite a bit both for data, backup/replication with send/receive, and for root fs, and haven't had problems with it. The known problem with Btrfs snapshots is that they are deceptively cheap to create, but become expensive later on to delete due to back reference searching, freeing extents (or not if they're still held by other snapshots) and updating metadata. Dozens to small hundreds aren't normally a problem, in my use case I don't notice performance problems.
- boomboomsubban 9y agoRHEL has a repository run by the ZFS on Linux team, and if you know ZFS it's not much harder than partitioning your disks. The big issue is a lack of documentation on using GRUB with ZFS. It's seemingly nonexistent, leading most guides to say /boot needs a separate partition.
- majewsky 9y ago> /boot needs a separate partition This is true with any Linux-supported FS on most modern PCs since UEFI can only read VFAT partitions.
- floatboth 9y ago/boot and the EFI System Partition aren't necessarily the same thing
- boomboomsubban 9y agoThe ESP does not need to contain /boot, it only needs to contain the EFI. And the UEFI specifications are for an independent filesystem based on FAT, VFAT is still patented. In practice, any FAT filesystem usually works.
- lscotte 9y agoYou actually don't need a separate /boot - recent grub versions know what to do. You do need a small EF02 partition (I make mine 4096 sectors), and then the rest of the disk as a BF02 partition. I wrote this up for an AWS AMI, but I use the exact same setup on my Debian desktops and servers - https://www.scotte.org/2016/12/ZFS-root-filesystem-on-AWS https://www.scotte.org/2016/12/ZFS-root-filesystem-on-AWS
- lscotte 9y agoZFS root absolutely is supported on Ubuntu and Debian. Every Debian system I've built in the past year or so have been 100% ZFS (around 6 physical systems, but I've also built AWS AMIs this way). You have to install via debootstrap, but it's definitely a working and supported configuration. Installer support would sure be welcome though, it's not trivial!
- kuschku 9y agoAnd that’s exactly the issue. You can’t just use ubiquity to set it up, or even the terminal, you have to go a long, complicated, badly documented path.