Author Topic: ZFS: Finding Its Way to a Linux Near You?  (Read 1246 times)

0 Members and 1 Guest are viewing this topic.

Offline ShadowAce

  • Hero Member
  • *****
  • Posts: 157
ZFS: Finding Its Way to a Linux Near You?
« on: June 03, 2016, 02:52:14 pm »
From http://www.linuxjournal.com/content/zfs-finding-its-way-linux-near-you

It seems like only yesterday that I read Jeff Bonwick's blog entry "ZFS: The Last Word in Filesystems". It was Halloween of 2005 that ZFS was fully integrated into Sun Microsystem's Solaris, and the filesystem was very well received. For the readers not familiar with ZFS, it is a combined all-purpose filesystem and volume manager. It simplified data storage management while also offering the most advanced features of the time. Such technologies include drive pooling with software RAID support, file snapshots, in-line data compression, data deduplication, built-in data integrity, advanced caching (to DRAM and SSD), and more. Today, the ZFS trademark and technology is owned and maintained by the Oracle Corporation.

Also in 2005, Sun Microsystems introduced OpenSolaris. Now a defunct project, OpenSolaris was a fully functional Solaris operating system built entirely from open source, which included ZFS, and all of which were re-licensed to the Common Development and Distribution License (CDDL), a weak copyleft license based on the Mozilla Public License (MPL). Although open source, ZFS and anything else under the CDDL was, and supposedly still is, incompatible with the GNU General Public License (GPL). This includes the Linux kernel and eventually would lead to the birth of Btrfs.

To avoid licensing infringements, the earliest incarnations of ZFS on Linux were written for the Filesystem in Userspace (FUSE). This prevented the technology from touching the Linux kernel. It also added its fair share of limitations. Being in userspace, it never could really measure up to its Solaris and FreeBSD counterparts. Over time, some of the FUSE implementations were highly neglected and in some cases abandoned. In 2008, the "ZFS on Linux" project changed everything by developing an in-kernel implementation of ZFS. Since its conception, the project was met with a lot of resistance (and criticism) from within the Linux community, all relating to licensing.

Fast-forward to the present, and two distributions have challenged this. Last month, Canonical, the parent company of the Ubuntu Linux distribution released the latest Ubuntu 16.04, codenamed Xenial Xerus. One of the most noteworthy additions to this release was the full integration of pre-built ZFS modules. Although Canonical now ships Ubuntu with ZFS, it has publicly stated that its legal team did not see a violation of the GPL. This matter is still being debated.

Shortly following this news and through a separate and completely unrelated effort, the Debian distribution announced the inclusion of the ZFS source code, buildable via the Dynamic Kernel Module Support (DKMS) framework. However, it is not provided in the "main" section archive but instead in "contrib". Under the legal advice of the Software Freedom Law Center, this approach is seen as not violating the GPL license.

Although including ZFS is an achievement in its own right, it still falls short from the ZFS on Solaris. It is easy to get swept away by ZFS in Solaris. It is fully ingrained in the Solaris ecosystem, from the boot environment all the way to the user experience. The first thing that comes to mind is its customizable snapshot support. A snapshot is the state of a particular system at a particular point in time. In the case of ZFS, this concept is directed toward file level state. ZFS uses a copy-on-write transaction model. Blocks containing active data are never overwritten in place. For every write, a new block is allocated, and the modified data is written to it. All metadata blocks referencing the original data block are also updated to reflect this change and then reallocated, keeping the original metadata contents unmodified in their original place. This approach makes it possible to enable file snapshots.



Figure 1. Snapshot Customization through the Time Slider Manager

 For example, with writeable snapshot support, Solaris has simplified the recovery of a corrupted operating system, where by using boot environment specific utilities (beadm), one easily can boot in to the previously working snapshot image of the operating system and reconfigure it as the default boot image. The process is relatively painless.

Built right in to Nautilus, the official file manager of the GNOME Desktop Environment, is the Time Slider visualization feature. With snapshots enabled, a user is then able to navigate to the enabled directories and click the Time Slider box, which then will produce a visual representation of all the snapshots taken on that particular directory.


Figure 2. Snapshot Visualization Using Nautilus Showing the Present

Let's say you need an earlier revision of a document or to retrieve a now-deleted file. Using the Time Slider, you can go back in time and do just that, with ease.


Figure 3. Snapshot Visualization Using Nautilus Showing the Past

These few examples barely scratch the surface of showing how ZFS is integrated into Solaris. Either way, eventually, these are some of the features I would really love to see in a Linux distribution.

While off to a promising start, it is still unclear what the future holds for ZFS on Linux. Will other distributions follow at least one of the two examples? If so, how will those same distributions embrace ZFS?
« Last Edit: June 03, 2016, 02:58:25 pm by ShadowAce »

Offline ShadowAce

  • Hero Member
  • *****
  • Posts: 157
Re: ZFS: Finding Its Way to a Linux Near You?
« Reply #1 on: June 03, 2016, 02:53:28 pm »
So--I'll use this opportunity to announce my TBR Tech Ping list.  Please let me know if you want on it.

Offline ShadowAce

  • Hero Member
  • *****
  • Posts: 157
Re: ZFS: Finding Its Way to a Linux Near You?
« Reply #2 on: June 03, 2016, 03:09:33 pm »

geronl

  • Guest
Re: ZFS: Finding Its Way to a Linux Near You?
« Reply #3 on: June 03, 2016, 05:12:20 pm »
Here's a ping

@BikkFire @geronl @Smokin Joe @roamer_1

They call them "mentions" here. It's just a pain to check them.

@AbaraXas New Mentions should appear at the top of the forum, In My Opinion.

Offline BikkFire

  • Hero Member
  • *****
  • Posts: 249
  • Gender: Male
Re: ZFS: Finding Its Way to a Linux Near You?
« Reply #4 on: June 04, 2016, 03:17:38 am »
From http://www.linuxjournal.com/content/zfs-finding-its-way-linux-near-you
Also in 2005, Sun Microsystems introduced OpenSolaris. Now a defunct project, OpenSolaris was a fully functional Solaris operating system built entirely from open source, which included ZFS, and all of which were re-licensed to the Common Development and Distribution License (CDDL), a weak copyleft license based on the Mozilla Public License (MPL). Although open source, ZFS and anything else under the CDDL was, and supposedly still is, incompatible with the GNU General Public License (GPL). This includes the Linux kernel and eventually would lead to the birth of Btrfs.

I while back, I wanted to try out OpenSolaris, but I couldn't find a workable copy :/ (defunct)
(and I do not like Ubuntu :p)

So far, I like Mint KDE ;^)  Installation is simple, but still gives the power to control all of your PC, from the kernal to the DE.

Thank you for having me on your pinglist ;^)

Forgot to 'ping' you :D
@ShadowAce
« Last Edit: June 04, 2016, 03:20:26 am by BikkFire »

geronl

  • Guest
Re: ZFS: Finding Its Way to a Linux Near You?
« Reply #5 on: June 04, 2016, 06:06:54 am »
I while back, I wanted to try out OpenSolaris, but I couldn't find a workable copy :/ (defunct)
(and I do not like Ubuntu :p)

Ubuntu is fine for ordinary users.

Offline Weird Tolkienish Figure

  • Technical
  • *****
  • Posts: 18,200
Re: ZFS: Finding Its Way to a Linux Near You?
« Reply #6 on: June 04, 2016, 06:55:14 am »
Spent all day at work trying to get R-studio and GUI's installed on Linux AWS images. Tried Suse and Redhat and had problems with both. Ubuntu server finally did the job. Linux is a mess IMO... too many different "managers" on too many platforms.

Does this filesystem murder your wife like ReiserFS?  :laugh:

Offline Blizzardnh

  • Hero Member
  • *****
  • Posts: 1,969
  • Gender: Male
Re: ZFS: Finding Its Way to a Linux Near You?
« Reply #7 on: June 04, 2016, 07:57:18 am »
So--I'll use this opportunity to announce my TBR Tech Ping list.  Please let me know if you want on it.
Add me please. Never missed them at the old site. goopo

Offline markomalley

  • Hero Member
  • *****
  • Posts: 393
Re: ZFS: Finding Its Way to a Linux Near You?
« Reply #8 on: June 04, 2016, 10:07:39 am »
So--I'll use this opportunity to announce my TBR Tech Ping list.  Please let me know if you want on it.
Feel free to add me...

Offline VarmintAl

  • Member
  • ***
  • Posts: 4
  • Gender: Male
    • Varmint Al's Hunting Page
Re: ZFS: Finding Its Way to a Linux Near You?
« Reply #9 on: June 05, 2016, 04:07:31 am »
So--I'll use this opportunity to announce my TBR Tech Ping list.  Please let me know if you want on it.

Please add me to the list. Thanks.
Good Hunting... from Varmint Al

geronl

  • Guest
Re: ZFS: Finding Its Way to a Linux Near You?
« Reply #10 on: June 05, 2016, 04:41:45 am »
I should be on it already.

Offline Doug Loss

  • Hero Member
  • *****
  • Posts: 1,360
  • Gender: Male
  • Proud Tennessean
Re: ZFS: Finding Its Way to a Linux Near You?
« Reply #11 on: June 05, 2016, 12:21:15 pm »
So--I'll use this opportunity to announce my TBR Tech Ping list.  Please let me know if you want on it.

Add me too, if you would.

@ShadowAce
My political philosophy:

1) I'm not bothering anybody.
2) It's none of your business.
3) Leave me alone!