ZFS on Linux 4.13 in Debian Jessie19 Jan 2016
The first question that comes to mind is why bother? The big reason, for me, is thunderbolt hot-plugging. Thunderbolt hot plugging made it into 3.17. Unfortunately, Debian Jessie ships with 3.16. Luckily, 4.12 and 4.13 are available from jessie-backports. If you want to use zfsonlinux, youʼll need to do quite a bit of extra work. zfsonlinux ships packages that depend on the 3.16 kernel. It’s also not as simple as just building the zfs package as they first create rpms and then convert them to debs. This is an issue because rpmbuild doesnʼt like the versioning scheme that is used for Debianʼs backported kernels.
To start with, youʼll need to download the source for the kernel to compile:
Then youʼll need to untar the source into a writable directory. i.e.
cd into the desired directory and run:
This next step is going to take quite a while, building the kernel. From the untared linux source directory:
You can feel free to change either
LOCALVERSION or the suffix to
KDEB_PKGVERSION just make sure that the values that you specify don’t contain a
Its much easier to do this without zfs already installed, so Iʼm just going to assume that is where you are at. Install the newly compiled kernel and reboot.
Now you have a custom kernel version running. The next step is to install zfs. This is mostly following zfsonlinux’s instructions on generic debs but, their instructions are missing a couple of steps. Youʼll need to download spl and zfs from zfsonlinux. I would suggest grabbing the latest release. You’ll also need a few build dependencies.
Now we need to compile spl and install the development packages which are required for building zfs.
Finally, we’re going to build and install zfs
Finally reboot, and you should be all set. While that is a bunch of steps, it really isnʼt too bad.