[zfs-discuss] ZFS package on Raspbian 9

mabi mabi at protonmail.ch
Mon Apr 9 14:49:37 EDT 2018

Well done! I have continued trying things out yesterday but somehow I messed up as I removed some packages, especially the linux kernel packages and had to reboot at some stage but my Pi never came back up and it's in a remote location :( so I just abandoned for now.

So if I understand correctly based on your step by step process you managed to install the SPL/ZFS packages from the backports of strech which installs the newer version of ZFS 0.7.6. Why did you have to use the stretch-backports? does the packages in stretch not work correctly? That would be then ZFS version

A year ago I compiled directly from git on Raspbian 8 and could use it as a test system without and big issues on two external USB SSD disks (mirror). You don't go over ~25 MB/s transfer rate but for my testing it's enough. Also a few ZFS module parameters need to be tuned but I can say that it runs stable enough for me. And now with the newer Pi model with better CPU and the newer ZFS version 0.7.6 I think I might not even need any tuning at all.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On April 9, 2018 2:56 PM, ray vantassle via zfs-discuss <zfs-discuss at list.zfsonlinux.org> wrote:

> "When a new kernel release is made, you will need the headers that match that kernel version. It can take several weeks for the repo to be updated to reflect the latest kernel version."
> After going round the mulberry bush, I got it inatalled.
> There's a bug in the configuration file of spl version, so it won't configure and therefore won't build on kernel 4.14.32-v7+. So the make fails.  Somewhere about checking "vfs_getattr".  Probably would work if you fixed the configure file.
> First tried downloading the latest deb files, zfs-dkms_0.7.6-1_all.deb and zfsutils-linux_0.7.6-1~bpo9+1_armhf.deb and installing them,  but installing one removes the other.
> Finally got it working.   What a PITA.
> 0) There is no "/boot/config-*" file, so it doesn't know what kernel(s) are installed.  Fix: sudo touch /boot/config-$(uname -r)
> 1) Add "deb http://ftp.de.debian.org/debian stretch-backports main contrib" to /etc/apt/sources.list
> 2) apt-get update.  But that will give you a key error, so
> 3) sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 7638D0442B90D010
> 4) but a program is missing, so first do:
> 5) sudo apt-get install dirmngr
> 6) Then:  sudo synaptic
> and select zfs-dkms and zfsutils-linux, but you have to force the _0.7.6-1~bpo9+1_armhf version. (You can probably convince apt-get to do this.)
> 7) Finally, let it install everything.  This takes a long time.
> 8) For some reason it doesn't automatically load zfs module, so I manually did "sudo /sbin/modprobe zfs"
> 9) Now:
> pi at raspberrypi:~$ zfs list ; zpool status
> no datasets available
> no pools available
> (I didn't bother to create any pools.)
> But I still think that zfsonlinux won't work very well on a PI.  zfs-fuse is a better bet.  I have zfs-fuse running on a pogoplug with 256 MB of memory.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.zfsonlinux.org/pipermail/zfs-discuss/attachments/20180409/cb3577ec/attachment.html>

More information about the zfs-discuss mailing list