News for hackers. Stuff that matters.
Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by hestefisk on Monday August 31, 2020 @06:02AM (#24329888)
I think Ubuntu adoption of ZFS is a testament that it is here to stay. Btrfs still has some issues (eg stability), which ZFS simply doesn’t have. It’s rock solid.
Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by Dunedan on Monday August 31, 2020 @07:20AM (#24330257)
> I think Ubuntu adoption of ZFS is a testament that it is here to stay.

Like Mir, Unity, Upstart and all the other technologies Ubuntu adopted, but removed after a while again? I always have the feeling that the Canonical engineers try to advance the Linux ecosystem by introducing new technologies, but somehow always pick the wrong ones, which end up not being adopted anywhere else. Granted that's different with ZFS, as ZFS already has a large user base, but there is nothing guaranteeing that Ubuntu won't remove ZFS in a few years again.

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by beagle3 on Monday August 31, 2020 @08:47AM (#24330872)
Unity is still there in 20.04 and usable, though no longer default.

It had a long run, and it’s still more usable than gnome3 for power users. Unity wasn’t successful but wasn’t deficient.

Upstart wasn’t as good as systemd that cane after it or daemontools that came before, but it WAS an upgrade compared to the knit scripts.

Ubuntu/canonical are not afraid to try, which I think deserves more credit.

They don’t have the clout/pockets to push less popular things like systemd the way RedHat does, until all the problems are sufficiently minor.

Oh, and snap and Mir we’re both attempts at grabbing control and both deserve the scorn.

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by hnlmorg on Monday August 31, 2020 @09:04AM (#24331019)
ZFS isn't maintained by Canonical and has a massive user base outside of Ubuntu. It is not a passing fad and even if Ubuntu did drop official support people could still compile it themselves (like I do).
Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by jlgaddis on Monday August 31, 2020 @07:28AM (#24330329)
As you yourself mentioned, ZFS is different.

The other projects were (for the most part) anonical originals" that they tried to create -- primarily on their own -- to replace existing products. ZFS is going on 15 years old, quite mature, highly trusted, and, of course, it already has a huge existing userbase.

It's certainly not an internal Canonical project that requires them to devote huge teams of developers to it. Unlike the others you mentioned, ZFS will continue to exist and grow regardless of Canonical's involvement.

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by jlgaddis on Monday August 31, 2020 @10:51AM (#24332021)
> anonical originals"

Oof, "Canonical originals", that should have read (not sure what ate the two missing characters, HN or the iPad).

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by aftergibson on Monday August 31, 2020 @07:59AM (#24330527)
It's in the LTS release, so hopefully it's supported for the next while and given time to mature.
Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by simion314 on Monday August 31, 2020 @09:59AM (#24331499)
>Upstart

Is still used in some maintained RedHat distros, I assume this burns people like you each time is mentioned.

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by curt15 on Monday August 31, 2020 @10:19AM (#24331693)
Not to mention ChromeOS. Why was the above comment downvoted?
Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by yjftsjthsd-h on Monday August 31, 2020 @10:58AM (#24332100)
> Why was the above comment downvoted?

Probably because

>> I assume this burns people like you each time is mentioned.

is rude and borders on a personal attack.

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by gvjddbnvdrbv on Monday August 31, 2020 @06:09AM (#24329928)
Fedora is going to BTRFS. I guess that means it is being at least considered for RHEL 9 or 10. I can't see RH choosing ZFS unless the license is sorted out.
Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by jlgaddis on Monday August 31, 2020 @07:09AM (#24330202)
Red Hat previously added btrfs to RHEL as a "Technology Preview", only to later remove it (they didn't really have anyone left devoting resources to it, IIRC), deciding to focus on stratis / VDO instead [0]. They do have several XFS folks, though (or did, last I knew).

FWIW, SUSE is the Enterprise Linux vendor that has went "all in" on btrfs.

---

Two semi-related, personal thoughts:

1. btrfs today feels a lot like reiserfs did (going on / nearly) 20 years ago.

2. I expect Oracle to -- at some point -- integrate ZFS into Oracle (Enterprise) Linux. That seems like a great way for them to win over some "converts" from RHEL.

---

[0]: https://news.ycombinator.com/item?id=14907771

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by gvjddbnvdrbv on Monday August 31, 2020 @08:21AM (#24330685)
Oracle would need to release another version of ZFS than the current ZFS on Linux to avoid the license issues...
Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by hnlmorg on Monday August 31, 2020 @09:21AM (#24331156)
@AlgorithmicTime you've been shadow banned it seems but you did raise a point that is worth expanding on:

> Oracle owns ZFS. Or, rather, it bought Sun, which was the company which originally wrote ZFS. So, it doesn't really need to worry about the licensing issues.

Oracle owning ZFS doesn't magically absolve them of risk however it does reduce the risk. But with ZFS being open source, another contributor might have a claim if Oracle were to breach the CDDL license with code written by said contributor (similar to the SCO vs UNIX lawsuits of yesteryear).

To get around this Oracle would need to contact all 3rd party contributors and get the to agree to a license change. This would, in all practicality, then be reflected in a new release (like the GP suggested).

However it is now even more complicated than that because OpenZFS (which is what Linux runs) has diverged from ZFS (which Oracle maintain). So while Oracle would need to agree to any changes in the licensing of OpenZFS (as there's still Oracle code present in OpenZFS), Oracle are not the ones maintaining it and nor could they ship their own version of ZFS as Linux kernel modules to answer any concerns with either OpenZFS licensing nor compatibility with other Linuxes running OpenZFS.

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by boomboomsubban on Monday August 31, 2020 @10:20AM (#24331704)
Oracle maintains it's own version of ZFS, which has been separate from OpenZFS since Oracle bought Sun. There us no "Oracle code" in OpenZFS, though some of the patents on techniques are owned by Oracle.

If Oracle wanted to ship ZFS on Linux, they would presumably port over their own version and never involve the OpenZFS team. However, Oracle created btrfs, and seem content to stick with it.

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by hnlmorg on Monday August 31, 2020 @03:45PM (#24335235)
> Oracle maintains it's own version of ZFS, which has been separate from OpenZFS since Oracle bought Sun. There us no "Oracle code" in OpenZFS, though some of the patents on techniques are owned by Oracle.

OpenZFS is a fork of ZFS rather than a reimplementation so I'd be very surprised if there wasn't any Oracle code in it (unless you're making a distinction between Sun and Oracle but legally speaking that would all still be owned by Oracle, hence why I didn't make that same distinction myself).

> If Oracle wanted to ship ZFS on Linux, they would presumably port over their own version and never involve the OpenZFS team.

Porting in this case isn't a simple task as there's a lot of "Solarisims" in ZFS that had to be worked around with the Linux port (ZoL -- ZFS on Linux -- didn't happen over night). Plus, and as I'd said earlier, ZFS and OpenZFS have diverged in terms of supported features so a ZFS volume wouldn't be compatible with an OpenZFS volume. I guess this wouldn't bother Oracle since, like most orgs of that size, they have no qualms with creating vendor lock ins. But it certainly wouldn't do much to sell Oracle Linux to the wider ZoL community.

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by boomboomsubban on Tuesday September 01, 2020 @04:28AM (#24339648)
>but legally speaking that would all still be owned by Oracle, hence why I didn't make that same distinction myself)..

The reason the distinction is important is that Sun released that code under the CDDL. If Oracle wanted to somehow claim it couldn't be used, it would require a massive lawsuit that would basically be against the concept of free software.

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by hnlmorg on Tuesday September 01, 2020 @06:55AM (#24340402)
> The reason the distinction is important is that Sun released that code under the CDDL. If Oracle wanted to somehow claim it couldn't be used, it would require a massive lawsuit that would basically be against the concept of free software.

I don't understand why that would be necessary. CDDL (and equivalent) licenses don't transfer ownership of IP (intellectual property) to the public domain, they only outline usage and distribution of the code and compiled artefacts. When Oracle bought Sun, they acquired Sun's IP (amongst other things) -- hence why they could go after Google with regards to their Java IP despite Java being a Sun Microsystems creation. ZFS isn't any different, it might have been distributed under a CDDL license but since Oracle now own the copyright for ZFS code they can legally re-license that code base under another license if they wished. So Sun doesn't factor into the equation any more since what was Sun's is now owned by Oracle.

It's worth noting that you do occasionally see open source projects change their software license years after their initial release. So this isn't an untested theory.

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by boomboomsubban on Tuesday September 01, 2020 @07:24AM (#24340607)
I'm saying that Oracle couldn't retract the releases already released under a free license, getting rid of OpenZFS altogether. They can and have relicensed the codebase, but we can just pull from the last version released under the CDDL.

From my understanding of open source projects released under a new license, they often can create a similar fork at the license change time where a version exists under the old license too. The exception is if they use the GPL version that allows updating the license

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by hnlmorg on Tuesday September 01, 2020 @08:17AM (#24340956)
> I'm saying that Oracle couldn't retract the releases already released under a free license

Nobody is suggesting they retract older version. In fact the exact opposite has been said on multiple occasions: any new license would be signified by a semver (semantic version) bump. So you're arguing against a point that was never made in the first place.

> getting rid of OpenZFS altogether

OpenZFS code would be unaffected because it's forked from a version prior to the semver re-license bump.

> From my understanding of open source projects released under a new license, they often can create a similar fork at the license change time where a version exists under the old license too.

Fork or semver bump. Which is exactly what I was talking about. Also notice that what you described there contradicts what you said would happen ("getting rid of OpenZFS") in literally the same comment.

---

If Oracle own the copyright then Oracle can re-license. They'd have to bump the version number and the previous versions with the older license would forever remain CDDL. But legally they can do it and it wouldn't affect OpenZFS licensing (aside that OpenZFS might then no longer be able to incorporate ZFS code -- assuming ZFS's new license is incompatible with CDDL. But things start to get very murky down that road.)

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by boomboomsubban on Tuesday September 01, 2020 @11:42AM (#24343003)
>Also notice that what you described there contradicts what you said would happen ("getting rid of OpenZFS") in literally the same comment

My argument has been that Oracle can't do this the entire time, but that's why its unfair to say there is Oracle code in OpenZFS. It makes it sound like Oracle has some power over OpenZFS, which is just not the case.

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by hnlmorg on Wednesday September 02, 2020 @05:40AM (#24351508)
> My argument has been that Oracle can't do this the entire time

No it wasn't. You kept bringing Sun Microsystems into the discussion and they're not relevant regardless of whether we're discussing ZFS or OpenZFS because Oracle own Suns IP. Moreover, and I can't stress this enough, nobody ever suggested OpenZFS would be "got rid of" except for yourself! You created that straw man argument.

> that's why its unfair to say there is Oracle code in OpenZFS. It makes it sound like Oracle has some power over OpenZFS, which is just not the case.

It's not unfair to say that because that is the literal truth. And I was very clear about not only the distinction between ZFS and OpenZFS but also the limited scope in which Oracle could control OpenZFS (if the OpenZFS guys want to re-license they'd still need Oracle's approval for any Sun IP (which Oracle now own) that remains within OpenZFS code).

Claiming that Oracle code doesn't exist within OpenZFS or that Oracle doesn't still have a say with regards to OpenZFS's licence would be as ignorant as saying Oracle could "get rid of OpenZFS".

I suggest re-reading my initial comment that sparked this discussion. I thought it was pretty clear about the distinction between ZFS and OpenZFS and about how much/little control Oracle have over the licenses of each.

All that aside, one comment you made elsewhere did interest me: whether Oracle could sue Canonical due to copyright grounds with Oracle code in Linux. I don't know GPL well enough to know if this is possible but it's a truly terrifying thought given the amount of contributors to Linux and the prevalence of Linux in propitiatory systems like phones, routers and other places that might contain closed SoC modules.

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by gvjddbnvdrbv on Monday August 31, 2020 @09:50AM (#24331419)
This is all true. But also the numerous copyright holders of the Linux kernel could also choose to sue.
Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by yjftsjthsd-h on Monday August 31, 2020 @11:01AM (#24332133)
One assumes that if Oracle decided to do its ZFS on Linux, it would do so under an actual compatible license. Since Oracle owns Oracle's ZFS, they can just release it under GPLv2 (or MIT, BSD, whatever) and not be even potentially doing anything that would let someone sue them.
Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by hnlmorg on Monday August 31, 2020 @03:50PM (#24335274)
> they can just release it under GPLv2

There is no "just" in "just release it under [another license]". I'd written a detailed rebuttal of why it's not that simple in the GP post to yours: https://news.ycombinator.com/item?id=24331156

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by yjftsjthsd-h on Monday August 31, 2020 @04:29PM (#24335601)
I did forget the amount of effort to port OracleZFS to work with Linux, true, but I stand by the claim that they could release their own ZFS code under any license they want. They wouldn't have to "contact all 3rd party contributors and get the to agree to a license change", because Sun only took code that was legally signed over to them. The resulting OracleZFS would be missing all OpenZFS code (because indeed that code would only be available under the CDDL), but insofar as that it was missing code that Oracle didn't own it could be licensed at will. This would leave them having to invest the effort to port OracleZFS to run in Linux, which is a valid argument against them taking this approach.
Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by gvjddbnvdrbv on Monday August 31, 2020 @03:28PM (#24335100)
Please refer to my OP on the subject..
Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by AlgorithmicTime on Monday August 31, 2020 @08:56AM (#24330954)
Oracle owns ZFS. Or, rather, it bought Sun, which was the company which originally wrote ZFS. So, it doesn't really need to worry about the licensing issues.
Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by throwaway8941 on Monday August 31, 2020 @06:43AM (#24330077)
I have no relation to either Fedora or RH, but have gone through quite a bit of their mailing lists in the past few months. Fedora adopting btrfs has nothing to do with RHEL and they don't seem to be considering it at all. Red Hat threw all their weight behind XFS with advanced features being added mostly through separate layers (e.g. stratis).
Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by gvjddbnvdrbv on Monday August 31, 2020 @08:24AM (#24330708)
I also have no relationship to RH other than as a user of their free stuff.

Yes when it became apparent that BTRFS was not ready RH did that. It was a slight surprise when it happened if I remember correctly.

I said RHEL v9 OR 10. I guess 9 is unlikely but 10 is a number of years off. If BTFS is a sucess on Fedora and stable then they will surely consider it. That is the point of Fedora...

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by freedomben on Monday August 31, 2020 @11:36AM (#24332524)
I work for Red Hat but have no insight into any of the Stratis/Btrfs/etc stuff. I'm just a long time Fedora user.

I would agree with you. Fedora adopting stuff does not mean RHEL will include it, but if it's successful/popular on Fedora then Red Hat will surely be paying attention. RHEL tries to follow Fedora as closely as possible, I would imagine this is a shot for btrfs, but certainly no guarantee.

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by vetinari on Monday August 31, 2020 @07:54AM (#24330486)
Redhat has a problem that Fedora doesn't have: they stick to a kernel version through the entire release life cycle. In other words, they are stuck with a specific kernel for at least 10 years.

Btrfs goes though a rapid development; so Redhat has to backport everything to their ancient 3.10 (RHEL7) kernel all the time. That's a lot of work.

Fedora, on the other hand, uses current kernels. They do not have to do this work.

Redhat also cannot choose ZFS while in the license limbo; that's why they push for Stratis.

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by KozmoNau7 on Monday August 31, 2020 @06:27AM (#24330005)
SUSE and openSUSE have been using Btrfs as the default FS (with a sensible default subvolume setup and rolling snapshots) for some time now.

It is stable, certainly stable enough for enterprise production use according to SUSE.

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by throw0101a on Monday August 31, 2020 @06:59AM (#24330145)
How's the RAID-5/6 functionality?

Also, do these Debian cautionary notes still apply to new code:

> There is currently (2019-07-07, linux ≤ 5.1.16) a bug that causes a two-disk raid1 profile to forever become read-only the second time it is mounted in a degraded state

* https://wiki.debian.org/Btrfs#Warnings

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by KozmoNau7 on Monday August 31, 2020 @07:36AM (#24330384)
Don't use RAID5/6 in production. This is well-documented , and the remaining issue (the write hole) is being worked on. As with any software, don't use features not marked stable in production.

As for the write-only bug, 1) that only affects 2-disk RAID1 setups where people insist on cowboying around with their degraded arrays, and 2) doesn't result in data loss, merely an additional copy step to restore the array. Don't run your arrays in a degraded state, please.

As I wrote, SUSE considers Btrfs stable for production use, and they're the premier enterprise distro in Europe.

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by throw0101a on Monday August 31, 2020 @08:51AM (#24330915)
> Don't run your arrays in a degraded state, please.

That's easy to say, but if you get a bad disk in a mirror on your boot drives, and for some reason your system restarts during this time period, you boot up into read-only mode--which kind of keeps your server down and kills service availability.

I don't run Btrfs, and so heard about this scenario from Jim Salter (the author of the linked Ars article) in his podcast:

* https://2.5admins.com/2-5-admins-03/

Re:Ubuntu 20.04’s zsys adds ZFS snapshots to package management by oarsinsync on Monday August 31, 2020 @11:58AM (#24332720)
> 2-disk RAID1 setups where people insist on cowboying around with their degraded arrays

RAID1 is not a backup. Apparently under BTRFS, using RAID1 for HA isn’t acceptable either.

What’s the point of a RAID1 array if you can’t use it degraded? Might as well just go RAID0 too then (you have backups anyway, right?)