From Segfault
Jump to navigation Jump to search


ZFS on Linux is a native Linux kernel port of the ZFS filesystem.

wget http://archive.zfsonlinux.org/downloads/zfsonlinux/{spl/spl,zfs/zfs}-$VER.tar.gz
wget http://archive.zfsonlinux.org/downloads/zfsonlinux/zfs/zfs-$VER.sha256.asc

Verify the checksums:

gpg --recv-keys 0xC6AF658B
gpg --verify zfs*.sha256.asc
sha256sum -c zfs*.sha256.asc


tar -xzf spl*tar.gz
tar -xzf zfs*tar.gz

Install prerequisites:

sudo apt-get install openssh-server autoconf automake gcc libtool linux-headers-amd64 make zlib1g-dev uuid-dev

First, the SPL (Solaris Porting Layer) is built:

cd spl*
./autogen.sh && ./configure --prefix=/opt/spl && make
sudo make install

Now the ZFS part (Native ZFS for Linux) can be built:

cd ../zfs*
./autogen.sh && ./configure --prefix=/opt/zfs --with-spl=$SPLDIR && make
sudo make install

We may want to extend our PATH too:

export PATH=$PATH:/opt/zfs/sbin:/opt/zfs/bin:/opt/spl/sbin

With that in place, ZFS should be usable now:

modprobe zfs
modprobe splat                            # Solaris Porting LAyer Tests

Run SPLAT tests via:

$ splat --all
------------------ Running SPLAT Tests ------------------------------
         kmem:kmem_alloc           Pass  
         kmem:kmem_zalloc          Pass  
         kmem:vmem_alloc           Pass  
         kmem:vmem_zalloc          Pass  

ZFS Fuse

ZFS on FUSE (Archive) was a project for Linux too, but development stalled around 2008 or so and the project seems to be dormant.