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

    • Offizieller Beitrag

    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 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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! Silent Wings 3 fans)
    ASRock Rack x470D4U | AMD Ryzen 5 3600 | Crucial 16GB DDR4 2666MHz ECC | Intel x550T2 10Gb NIC

    1 x ADATA 8200 Pro 256MB NVMe for System/Caches/Logs/Downloads
    5 x Western Digital 10To HDD in RAID 6 for Datas
    1 x Western Digital 2To HDD for Backups

    Powered by OMV v5.6.26 & Linux kernel 5.10.x

    Einmal editiert, zuletzt von 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! Silent Wings 3 fans)
    ASRock Rack x470D4U | AMD Ryzen 5 3600 | Crucial 16GB DDR4 2666MHz ECC | Intel x550T2 10Gb NIC

    1 x ADATA 8200 Pro 256MB NVMe for System/Caches/Logs/Downloads
    5 x Western Digital 10To HDD in RAID 6 for Datas
    1 x Western Digital 2To HDD for Backups

    Powered by OMV v5.6.26 & Linux kernel 5.10.x

  • 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

  • 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! Silent Wings 3 fans)
    ASRock Rack x470D4U | AMD Ryzen 5 3600 | Crucial 16GB DDR4 2666MHz ECC | Intel x550T2 10Gb NIC

    1 x ADATA 8200 Pro 256MB NVMe for System/Caches/Logs/Downloads
    5 x Western Digital 10To HDD in RAID 6 for Datas
    1 x Western Digital 2To HDD for Backups

    Powered by OMV v5.6.26 & Linux kernel 5.10.x

  • 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! Silent Wings 3 fans)
    ASRock Rack x470D4U | AMD Ryzen 5 3600 | Crucial 16GB DDR4 2666MHz ECC | Intel x550T2 10Gb NIC

    1 x ADATA 8200 Pro 256MB NVMe for System/Caches/Logs/Downloads
    5 x Western Digital 10To HDD in RAID 6 for Datas
    1 x Western Digital 2To HDD for Backups

    Powered by OMV v5.6.26 & Linux kernel 5.10.x

  • As mentioned, you can either build from git or if you want a 5 second fix you can just use OMV extras tab to select the previous kernel.


    This is on a phone, but you get the idea:




    Sent from my iPhone using Tapatalk

    • Offizieller Beitrag

    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 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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 ?

    • Offizieller Beitrag

    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 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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

    ----------------------------------------------------------------------------------
    openmediavault 6 | proxmox kernel | zfs | docker | kvm
    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

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!