Native ZFS on Linux

Once again I’m writing about ZFS, this time I’m trying the native ZFS port for Linux fromĀ

First thing needed is to install some packages.

sudo apt-get install build-essential gawk zlib1g-dev uuid-dev

The next step is to download and compile the ZFS source code, I got it fromĀ

Then unpack the tgz’s and use configure, make and make install like with any other source code distributed program.

Now it’s time to see weather the new ZFS kernel modules can be loaded. Use the following commands.

sudo modprobe splat
sudo splat -a
sudo modprobe zfs
lsmod |grep zfs

Hopefully the zfs module will be loaded and you’re ready to go.

You might have problems with a shared library not being found, then run this command to include /usr/local/lib in the LD_LIBRARY_PATH.

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

I created a zpool called testpool using raidz with four disks.

Another pool with two mirrored sets worked aswell.

Just for the fun of it I even made a quick test with bonnie++. Since I’m running this in a virtual machine it’s pretty much pointless, since the numbers doesn’t say anything about the performance… Ehm… When I wrote this bonnie++ seg faulted. Aw well, guess I didn’t run bonnie++ after all then.

So, is ZFS on Linux ready for production use? Probably not, I’d still stick to Solaris or possibly FreeBSD. The development seems to be progressing though, and hopefully we’ll see a stable version in the not-too-distant future.


One thought on “Native ZFS on Linux

  1. Jason

    The Indian company KQInfoTech did a more complete port that the the one you tried. In my hands, the KQ work is alot more complete and ready to go. You might want to try it.
    # git clone spl, zfs, and lzfs

    be sure to thoroughly uninstall the public linuxzfq junk first, it messed up my kq install for a while until I deleted /lib/modules/addons

    # build spl first
    # build zfs second, teling it where the spl sources are
    # build lzfs last, telling it where the spl and zfs sources are.
    for zfs: ./configure –with-spl=/home/jaten/pkg/zfs/kqinfotech/spl/
    for lzfs: ./configure –with-zfs=/home/jaten/pkg/zfs/kqinfotech/zfs –with-spl=/home/jaten/pkg/zfs/kqinfotech/spl

    let me know if that works better for you!


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>