David E.
2012-Apr-18 02:57 UTC
[zfs-discuss] Aaron Toponce: Install ZFS on Debian GNU/Linux
fyi Sent to you by David E. via Google Reader: Aaron Toponce: Install ZFS on Debian GNU/Linux via Planet Ubuntu on 4/17/12 Quick post on installing ZFS as a kernel module, not FUSE, on Debian GNU/Linux. The documents already exist for getting this going, I?m just hoping to spread this to a larger audience, in case you are unaware that it exists. First, the Lawrence Livermore National Laboratory has been working on porting the native Solaris ZFS source to the Linux kernel as a kernel module. So long as the project remains under contract by the Department of Defense in the United States, I?m confident there will be continuous updates. You can track the progress of that porting at http://zfsonlinux.org. Now, download the SPL and ZFS sources. I?m running the latest RC, which seems to be quite stable: $ mkdir ~/src/{spl,zfs} $ cd ~/src/spl $ wget http://github.com/downloads/zfsonlinux/spl/spl-0.6.0-rc8.tar.gz $ cd ~/src/zfs $ wget http://github.com/downloads/zfsonlinux/zfs/zfs-0.6.0-rc8.tar.gz At this point, you will need to install the dependencies for SPL, then go ahead and compile and make the necessary .deb files: $ sudo aptitude install build-essential gawk alien fakeroot linux-headers-$(uname -r) $ cd ~/src/spl $ tar -xf spl-0.6.0-rc8.tar.gz $ cd spl-0.6.0-rc8 $ ./configure $ make deb Now do the same for ZFS: $ sudo aptitude install zlib1g-dev uuid-dev libblkid-dev libselinux-dev parted lsscsi $ cd ~/src/zfs $ tar -xf zfs-0.6.0-rc8.tar.gz $ cd zfs-0.6.0-rc8 $ ./configure $ make deb You should have built both the SPL and ZFS Debian packages, at which point you can install: $ sudo dpkg -i ~/src/{spl,zfs}/*.deb If you?re running Ubuntu, which I know most of you are, you can install the packages from the Launchpad PPA https://launchpad.net/~zfs-native. A word of note: the manpages get installed to /share/man/. I found this troubling. You can modify your $MANPATH variable to include /share/man/man8/, or by creating symlinks, which is the approach I took: # cd /usr/share/man/man8/ # ln -s /share/man/man8/zdb.8 zdb.8 # ln -s /share/man/man8/zfs.8 zfs.8 # ln -s /share/man/man8/zpool.8 zpool.8 Now, make your zpool, and start playing: $ sudo zpool create test raidz sdd sde sdf sdg sdh sdi It is stable enough to run a ZFS root filesystem on a GNU/Linux installation for your workstation as something to play around with. It is copy-on-write, supports compression, deduplication, file atomicity, off-disk caching, encryption, and much more. At this point, unfortunately, I?m convinced that ZFS as a Linux kernel module will become ?stable? long before Btrfs will be stable in the mainline kernel. Either way, it doesn?t matter to me. Both are Free Software, and both provide the long needed features we?ve needed with today?s storage needs. Competition is healthy, and I love having choice. Right now, that choice might just be ZFS. Things you can do from here: - Subscribe to Planet Ubuntu using Google Reader - Get started using Google Reader to easily keep up with all your favorite sites -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20120418/f6725ba0/attachment.html>
Jim Klimov
2012-Apr-18 11:43 UTC
[zfs-discuss] Aaron Toponce: Install ZFS on Debian GNU/Linux
2012-04-18 6:57, David E. wrote:> Now, make your zpool, and start playing: > > $ sudo zpool create test raidz sdd sde sdf sdg sdh sdi > > It is stable enough to run a ZFS root filesystem on a GNU/Linux > installation for your workstation as something to play around with. It > is copy-on-write, supports compression, deduplication, file atomicity, > off-disk caching, encryption, and much more.Hmmm, how come they have encryption and we don''t? Can it be backported to illumos from Linux (maybe via BSD), or do the license incompatibilities forbid that? ;) Can GNU/Linux boot off raidz roots? Overall - impressive and interesting, //Jim
Fajar A. Nugraha
2012-Apr-18 12:09 UTC
[zfs-discuss] Aaron Toponce: Install ZFS on Debian GNU/Linux
On Wed, Apr 18, 2012 at 6:43 PM, Jim Klimov <jimklimov at cos.ru> wrote:> Hmmm, how come they have encryption and we don''t?Cause the author doesn''t really try it :) If he did, he would''ve known that encryption doesn''t work (unless you encrypt the underlying storage with luks, which doesn''t count). And that Ubuntu ppa is also usable on debian, so that he didn''t have to compile from source or worry about misplaced manpages.> Can GNU/Linux boot off raidz roots?"boot" as in "root (/) located on raidz", yes. "boot" as in "the whole disk including /boot is on raidz", no, due to grub2 limitation. /boot still needs to be on a separate ext2/3/4 partiition (recommended), or on a non-raidz pool (possibly with some additional hacks). -- Fajar
Cindy Swearingen
2012-Apr-18 14:54 UTC
[zfs-discuss] Aaron Toponce: Install ZFS on Debian GNU/Linux
>Hmmm, how come they have encryption and we don''t?As in Solaris releases, or some other "we"? http://docs.oracle.com/cd/E23824_01/html/821-1448/gkkih.html https://blogs.oracle.com/darren/entry/my_11_favourite_solaris_11 Thanks, Cindy On 04/18/12 05:43, Jim Klimov wrote:> 2012-04-18 6:57, David E. wrote: >> Now, make your zpool, and start playing: >> >> $ sudo zpool create test raidz sdd sde sdf sdg sdh sdi >> >> It is stable enough to run a ZFS root filesystem on a GNU/Linux >> installation for your workstation as something to play around with. It >> is copy-on-write, supports compression, deduplication, file atomicity, >> off-disk caching, encryption, and much more. > > > Hmmm, how come they have encryption and we don''t? > Can it be backported to illumos from Linux (maybe via BSD), > or do the license incompatibilities forbid that? ;) > > Can GNU/Linux boot off raidz roots? > > Overall - impressive and interesting, > //Jim > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Freddie Cash
2012-Apr-18 15:11 UTC
[zfs-discuss] Aaron Toponce: Install ZFS on Debian GNU/Linux
On Wed, Apr 18, 2012 at 7:54 AM, Cindy Swearingen <cindy.swearingen at oracle.com> wrote:>>Hmmm, how come they have encryption and we don''t? > > As in Solaris releases, or some other "we"?I would guess he means Illumos, since it''s mentioned in the very next sentence. :) "Hmmm, how come they have encryption and we don''t? Can it be backported to illumos ..." It''s too bad Oracle hasn''t followed through (yet?) with their promise to open-source the ZFS (and other CDDL-licensed?) code in Solaris 11. :( -- Freddie Cash fjwcash at gmail.com
Tim Cook
2012-Apr-18 15:20 UTC
[zfs-discuss] Aaron Toponce: Install ZFS on Debian GNU/Linux
Oracle never promised anything. A leaked internal memo does not signify an official company policy or statement. On Apr 18, 2012 11:13 AM, "Freddie Cash" <fjwcash at gmail.com> wrote:> On Wed, Apr 18, 2012 at 7:54 AM, Cindy Swearingen > <cindy.swearingen at oracle.com> wrote: > >>Hmmm, how come they have encryption and we don''t? > > > > As in Solaris releases, or some other "we"? > > I would guess he means Illumos, since it''s mentioned in the very next > sentence. :) > > "Hmmm, how come they have encryption and we don''t? > Can it be backported to illumos ..." > > It''s too bad Oracle hasn''t followed through (yet?) with their promise > to open-source the ZFS (and other CDDL-licensed?) code in Solaris 11. > :( > -- > Freddie Cash > fjwcash at gmail.com > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20120418/05df8ca4/attachment.html>
Jim Klimov
2012-Apr-18 16:28 UTC
[zfs-discuss] Aaron Toponce: Install ZFS on Debian GNU/Linux
2012-04-18 18:54, Cindy Swearingen wrote:>>Hmmm, how come they have encryption and we don''t? > As in Solaris releases, or some other "we"?With all due respect, I did not mean to start a flame war, so I''ll frantically try to stomp out the sparks ;) Still, this is a "zfs" "discuss" list at "open""solaris"."org" It is here to discuss ZFS, a technology available in a number of operating systems, as you do know too well, including open systems as the domain name implies. Since all of these use ZFS code based on the one that the "opensolaris.org" project provided at some time, and most of other systems (including Solaris 10 AFAIK) got stuck at ZFSv28 or older, the generic "we" at the *open*-solaris derivate systems don''t have some features that Oracle completed in its own fork into closed proprietary code ;) In the beginning it was my wishful thinking that encryption code and maybe some other newbies got legally leaked into Linux, and if they were there, then they might be legally included into other ZFS source code projects. I hope this subject is closed for now ;( without personal gripes ;) //Jim
Bob Friesenhahn
2012-Apr-18 22:20 UTC
[zfs-discuss] Aaron Toponce: Install ZFS on Debian GNU/Linux
On Wed, 18 Apr 2012, Jim Klimov wrote:> Since all of these use ZFS code based on the one that the > "opensolaris.org" project provided at some time, and most > of other systems (including Solaris 10 AFAIK) got stuck at > ZFSv28 or older, the generic "we" at the *open*-solarisAgree with all you said except that Solaris 10 has support for pool version 29. Bob -- Bob Friesenhahn bfriesen at simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Darren J Moffat
2012-Apr-19 08:56 UTC
[zfs-discuss] Aaron Toponce: Install ZFS on Debian GNU/Linux
On 04/18/12 17:28, Jim Klimov wrote:> In the beginning it was my wishful thinking that encryption > code and maybe some other newbies got legally leaked into > Linux, and if they were there, then they might be legally > included into other ZFS source code projects.Not Linux per say but there is another (readonly) implementation of ZFS encryption: http://bazaar.launchpad.net/~vcs-imports/grub/grub2-bzr/view/head:/grub-core/fs/zfs/zfscrypt.c -- Darren J Moffat