WARNING: Do NOT ubgrade to Kernel 4.16 if you use ZFS

  • Hello
    The current ZFS version provided by openmediavault-zfs and zfsutils-linux is 0.7.6.
    This version is not compatible with the Linux kernel version 4.16 and fails to build.
    ZFS will be unusable until ZoL 0.7.8 or above is released in the Debian repository.
    The release of 0.7.8 is still pending.



    Sources:
    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=897568
    https://tracker.debian.org/pkg/zfs-linux
    https://github.com/zfsonlinux/zfs/issues/7179


    Greetings
    Vincent

  • Yeah unfortunately using ZFS with Debian isn’t as easy as Ubuntu, for example, where everything is provided in a “will just work” fashion, even when blindly upgrading the kernel. It would be great if Debian would just bite the bullet and do the same as Canonical (or better still Oracle release ZFS from it’s CDDL chains) but I think we have more of a chance of pigs flying.


    One could argue though, that anyone using ZFS should probably have some command line skills anyway, and more than likely enough experience to revert a kernel in 5 seconds. As long as you spot the build errors before any reboot, you shouldn’t suffer unplanned downtime of your pool(s).



    Sent from my iPhone using Tapatalk

  • The current ZFS version provided by openmediavault-zfs and zfsutils-linux is 0.7.6.
    This version is not compatible with the Linux kernel version 4.16 and fails to build.
    ZFS will be unusable until ZoL 0.7.8 or above is released in the Debian repository.
    The release of 0.7.8 is still pending.

    I did post this in the big zfs thread as well. Is ZFS supported in Kernel 4.13-4.15?

    omv 5.5.12 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • If you want to build ZFS 0.7.9...


    From https://github.com/zfsonlinux/zfs/wiki/Building-ZFS


    Code
    root@home-server:~# apt-get install build-essential autoconf libtool gawk alien fakeroot linux-headers-$(uname -r)
    root@home-server:~# apt-get install zlib1g-dev uuid-dev libattr1-dev libblkid-dev libselinux-dev libudev-dev libssl-dev libelf-dev
    root@home-server:~# apt-get install parted lsscsi ksh

    Then you need to install this version on your 4.14 kernel, and then upgraded the kernel to 4.16 I think... I haven't done it and will probably try on a VM before running it on my NAS.


    Cheers,

    Lian Li PC-V354 with Be Quiet! fans | ASRock Rack x470D4U | AMD Ryzen 5 3600 | 1xCrucial 16GB DDR4 2666MHz ECC
    1xADATA 8200 Pro 256MB NVMe for System/Caches/Logs/Downloads | 4xWD 10To HDD in RAID 6 for Datas
    Powered by OMV v5.5.11 / Linux kernel 5.7.0

    Edited once, last by sbocquet ().

  • Once you have compiled all the stuff, and "make deb" in both the SPL and ZFS dir, you will have some *-dkms.deb package to install (spl-dkms_0.7.9-1_amd64.deb and zfs-dkms_0.7.9-1_amd64.deb like the normal install from repository). At the moment, I can't find the new zfsutils-linux package...


    The only thing is that ZFS 0.7.6 don't work with kernel 4.16 and ZFS 0.7.9 don't work with kernel 4.14... so what to upgrade first ??? Kernel you loose your pool (temporary?), ZFS you cannot since you don't have upgraded your kernel...


    Maybe someone better than me could help...

    Lian Li PC-V354 with Be Quiet! fans | ASRock Rack x470D4U | AMD Ryzen 5 3600 | 1xCrucial 16GB DDR4 2666MHz ECC
    1xADATA 8200 Pro 256MB NVMe for System/Caches/Logs/Downloads | 4xWD 10To HDD in RAID 6 for Datas
    Powered by OMV v5.5.11 / Linux kernel 5.7.0

  • Once you have compiled all the stuff, and "make deb" in both the SPL and ZFS dir, you will have some *-dkms.deb package to install (spl-dkms_0.7.9-1_amd64.deb and zfs-dkms_0.7.9-1_amd64.deb like the normal install from repository). At the moment, I can't find the new zfsutils-linux package...


    The only thing is that ZFS 0.7.6 don't work with kernel 4.16 and ZFS 0.7.9 don't work with kernel 4.14... so what to upgrade first ??? Kernel you loose your pool (temporary?), ZFS you cannot since you don't have upgraded your kernel...


    Maybe someone better than me could help...

    hopefully the devs over at debian fix this anytime soon so the "normal" user doesn't have to deal with this :|

  • je suis arrive au même conclusions. ZFS 0.7.6 ne fonctionne pas avec kernel 4.14.


    erreur de compilation ZFS 0.7.9 avec kernel 4.14
    je vais faire des essais avec kernel 4.15

    ZFS 0.7.6 works with kernel 4.14... (see my signature) but not with 4.16.
    ZFS 0.7.9 need kernel 4.16...

    Lian Li PC-V354 with Be Quiet! fans | ASRock Rack x470D4U | AMD Ryzen 5 3600 | 1xCrucial 16GB DDR4 2666MHz ECC
    1xADATA 8200 Pro 256MB NVMe for System/Caches/Logs/Downloads | 4xWD 10To HDD in RAID 6 for Datas
    Powered by OMV v5.5.11 / Linux kernel 5.7.0

  • oh damn..... i just upgraded and see this thread...


    root@nas:/onepool# systemctl status zfs-mount.service
    ● zfs-mount.service - Mount ZFS filesystems
    Loaded: loaded (/lib/systemd/system/zfs-mount.service; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Thu 2018-05-17 17:46:28 CEST; 3h 39min ago
    Docs: man:zfs(8)
    Main PID: 598 (code=exited, status=1/FAILURE)
    CPU: 14ms



    May 17 17:46:28 nas systemd[1]: Starting Mount ZFS filesystems...
    May 17 17:46:28 nas zfs[598]: The ZFS modules are not loaded.
    May 17 17:46:28 nas zfs[598]: Try running '/sbin/modprobe zfs' as root to load them.
    May 17 17:46:28 nas systemd[1]: zfs-mount.service: Main process exited, code=exited, status=1/FAILURE
    May 17 17:46:28 nas systemd[1]: Failed to start Mount ZFS filesystems.
    May 17 17:46:28 nas systemd[1]: zfs-mount.service: Unit entered failed state.
    May 17 17:46:28 nas systemd[1]: zfs-mount.service: Failed with result 'exit-code'.
    root@nas:/onepool# /sbin/modprobe zfs
    modprobe: FATAL: Module zfs not found in directory /lib/modules/4.16.0-0.bpo.1-amd64


    How should i go back, how can i fix this?

  • If you want to build ZFS 0.7.9...



    From https://github.com/zfsonlinux/zfs/wiki/Building-ZFS


    Revert to your previous kernel should work.


    Else, try to compil the 0.7.9 ZFS version...

    Lian Li PC-V354 with Be Quiet! fans | ASRock Rack x470D4U | AMD Ryzen 5 3600 | 1xCrucial 16GB DDR4 2666MHz ECC
    1xADATA 8200 Pro 256MB NVMe for System/Caches/Logs/Downloads | 4xWD 10To HDD in RAID 6 for Datas
    Powered by OMV v5.5.11 / Linux kernel 5.7.0

  • I just built the zfs 0.7.9 packages from debian sid and uploaded to omv-extras 4.x testing repos. These are working on my test VM with the 4.16 kernel. I didn't test against the 4.14 or 4.15 kernel though.

    omv 5.5.12 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • Damn had a power failure and run into a boot on kernel 4.18.0.0 :-(


    root@nas:~# zfs list
    The ZFS modules are not loaded.
    Try running '/sbin/modprobe zfs' as root to load them.
    root@nas:~# /sbin/modprobe zfs
    modprobe: FATAL: Module zfs not found in directory /lib/modules/4.18.0-0.bpo.1-amd64


    Any updates expected or better to go back to 4.17 ?

  • Any updates expected or better to go back to 4.17 ?

    The zfs module compiles just fine on the 4.18 kernel. Either dpkg-reconfigure zfs-dkms or switch to the proxmox kernel.

    omv 5.5.12 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • Hi, in the following thread I described that my zfs works with kernel 4.18:


    Upgrade Kernel 4.17: ZFS: Unable to set "noop" scheduler for /dev/sdd1 (sdd): 256


    I didn’t recognize any errors since the kernel upgrade.


    Regards Hoppel

    ---------------------------------------------------------------------------------------------------------------
    frontend software - tvos | android tv | libreelec | win10 | kodi krypton
    frontend hardware - appletv 4k | nvidia shield tv | odroid c2 | yamaha rx-a1020 | quadral chromium style 5.1 | samsung le40-a789r2
    -------------------------------------------
    backend software - debian | openmediavault | latest backport kernel | zfs raid-z2 | docker | emby | unifi | vdr | tvheadend | fhem
    backend hardware - supermicro x11ssh-ctf | xeon E3-1240L-v5 | 64gb ecc | 8x10tb wd red | digital devices max s8
    ---------------------------------------------------------------------------------------------------------------------------------------

  • You should really consider holding the kernel too once you’re all sorted and up and running again. Either use the GUI modifications that ryecoaaron added to the apt tool plugin or:


    Code
    apt-mark hold linux-image-amd64 linux-headers-amd64


    Then the kernel won’t upgrade until you unhold it.



    Sent from my iPhone using Tapatalk

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!