ZFS Plugin (ZoL upgrade possible?)

  • Hey guys,
    the ZFS plugin seems to uses the ZoL version 0.6.5.9-2 ("modinfo zfs"). Because of this bug it is not possible to do a scrub on my pool, because the pool was originally created under a freebsd system (freenas). So as you can see the bug is fixed in 0.6.5.11, but our version is far away from this. Even the Debian stretch version is just using the 0.6.5.9-5 version. You can find the versions used in Debian here.


    However, the latest version is 0.7.1... but I would be totally satisfied with 0.6.5.11. ;)


    I think an upgrade from the lasted sources is not a good idea if I still want to use the further ZFS Plugin- or at least the apt-get - updates?! Sadly I dont even know how to do that. Maybe its possible to use a backport from Debian Buster (0.6.5.11-1)?


    The last possibility would be to destroy and rebuild the entire pool with ZoL. But even if I do that, I'd love to have a more up-to-date version...


    I hope you guys can help me!


    Greetings
    74m

  • You would have to compile ZFS yourself and also compile a newer Linux Kernel since 0.7.x doesn't work with 4.9. TBH it is not worth the trouble.

    OMV 4 - Ryzen 7 1700 (8 Cores / 16 Threads 65W TDP) - 32 GB DDR4 ECC
    128 GB OS SSD - 256 GB Plex SSD - 32 TB RAIDZ2 (6x8TB HGST NAS)

    • Offizieller Beitrag

    compile a newer Linux Kernel since 0.7.x doesn't work with 4.9

    Are you sure Sharonator?

    0.6.5.11 (from stretch backports) works on stretch with the 4.9 kernel
    0.6.5.11 works on buster with the 4.11 kernel.
    I also just followed these instructions and had no problems building spl-0.7.0.12/zfs-0.7.0.25 on an OMV 3.x VM with the 4.9 kernel. (I don't recommend using it because it might break something).

    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!

    Einmal editiert, zuletzt von ryecoaaron ()

  • Okay, thanks for you feedback ryecoaaron.
    In the meantime I've chosen the second possibility by using the sloppy backports. You can find the different versions of ZoL in debian here.


    But it is good to know that it is also possible to upgrade so easy the very latest version like you did. I hope that im not running in trouble with the ZFS Plugin for omv...


    Thank you so far! :)

    • Offizieller Beitrag

    In the meantime I've chosen the second possibility by using the sloppy backports.

    I don't think you will have problems with sloppy backports but I don't use zfs.

    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!

  • Hmmm... Are you sure Sharonator?
    Because in the official release notes of ZoL (v. 0.7.1) you can read this: "Compatible with 2.6.32 - 4.12 Linux kernels."

    Oh I was wrong. They wrote always "Compatible with 4.12rc3" for example and I though this would be only compatible with 4.12x but they've change this part.



    I also just followed these instructions and had no problems building spl-0.7.0.12/zfs-0.7.0.25 on an OMV 3.x VM with the 4.9 kernel. (I don't recommend using it because it might break something).

    Just did that and I got SPL compiled via make deb and now I've those deb files: kmod-spl-4.9.0-0.bpo.3-amd64_0.7.1-1_amd64.deb kmod-spl-devel-4.9.0-0.bpo.3-amd64_0.7.1-1_amd64.deb kmod-spl-devel_0.7.1-1_amd64.deb spl_0.7.1-1_amd64.deb


    How I'm supposed to update the dkms modul? If I install those deb files with dpkg -i *.deb it would update spl but not spl-dkms. Looks like this hasn't been implemented yet? https://github.com/zfsonlinux/zfs/issues/6044

    OMV 4 - Ryzen 7 1700 (8 Cores / 16 Threads 65W TDP) - 32 GB DDR4 ECC
    128 GB OS SSD - 256 GB Plex SSD - 32 TB RAIDZ2 (6x8TB HGST NAS)

    • Offizieller Beitrag

    How I'm supposed to update the dkms modul? If I install those deb files with dpkg -i *.deb it would update spl but not spl-dkms. Looks like this hasn't been implemented yet? github.com/zfsonlinux/zfs/issues/6044

    I don't use zfs so not much help there. I guess you will have to wait.

    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!

  • I don't use zfs so not much help there. I guess you will have to wait.

    The problem is that my NAS just crash every few days and I assum it is due to the old Kernel. 4.9 should work with Ryzen but the real Ryzen Kernel is 4.10 which required a newer ZFS version. Maybe I consider to give FreeNAS a try.


    Thanks Anyway

    OMV 4 - Ryzen 7 1700 (8 Cores / 16 Threads 65W TDP) - 32 GB DDR4 ECC
    128 GB OS SSD - 256 GB Plex SSD - 32 TB RAIDZ2 (6x8TB HGST NAS)

    • Offizieller Beitrag

    The problem is that my NAS just crash every few days and I assum it is due to the old Kernel. 4.9 should work with Ryzen but the real Ryzen Kernel is 4.10 which required a newer ZFS version. Maybe I consider to give FreeNAS a try.

    You can probably build the 4.11 kernel and 0.6.5.11 packages from Debian buster on your system. I doubt you will have better luck with FreeNAS due to the bleeding edge cpu. Linux is normally ahead of FreeBSD in hardware support.

    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!

  • @ryecoaaron
    Yup just googled a bit and saw that Ryzen doesn't work at all on FreeNAS and I'd rather stick with linux than switching to anything else.


    With buster you mean doing something like this here: https://linuxaria.com/howto/ho…ian-sid-or-debian-testing and then installing the newer ZFS version https://packages.debian.org/testing/zfs-dkms

    OMV 4 - Ryzen 7 1700 (8 Cores / 16 Threads 65W TDP) - 32 GB DDR4 ECC
    128 GB OS SSD - 256 GB Plex SSD - 32 TB RAIDZ2 (6x8TB HGST NAS)

    • Offizieller Beitrag

    That is kind of how you do it but it is always risky due to too many non-Jessie packages. The kernel is easy to install but the headers have too many dependencies. You can't skip the headers because zfs needs them. I will look a bit more into this but it isn't looking good (or easy).

    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!

    • Offizieller Beitrag

    Using the Ubuntu HWE 4.11 kernel and headers is the best option I can find right now. It seems to work well on my OMV 3.x VM and the zfs 0.6.5.9 seems to work with this kernel.


    Simple to install with:
    wget http://us.archive.ubuntu.com/ubuntu/pool/main/l/linux-hwe-edge/linux-image-4.11.0-14-generic_4.11.0-14.20~16.04.1_amd64.deb
    wget http://us.archive.ubuntu.com/ubuntu/pool/main/l/linux-hwe-edge/linux-image-extra-4.11.0-14-generic_4.11.0-14.20~16.04.1_amd64.deb
    wget http://us.archive.ubuntu.com/ubuntu/pool/main/l/linux-hwe-edge/linux-headers-4.11.0-14-generic_4.11.0-14.20~16.04.1_amd64.deb
    wget http://us.archive.ubuntu.com/ubuntu/pool/main/l/linux-hwe-edge/linux-headers-4.11.0-14_4.11.0-14.20~16.04.1_all.deb
    dpkg -i linux-image*
    reboot
    dpkg -i linux-headers*

    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!

    Einmal editiert, zuletzt von ryecoaaron ()

  • Thanks @ryecoaaron for your effort but I got a error with spl and zfs when installing the headers:


    And both logs just say that there are no config file for make?

    Code
    root@OMV-NAS:~# tail /var/lib/dkms/spl/0.6.5.9/build/make.log
    DKMS make.log for spl-0.6.5.9 for kernel 4.11.0-14-generic (x86_64)
    Sa 19. Aug 20:13:33 CEST 2017
    make: *** Keine Targets angegeben und keine »make«-Steuerdatei gefunden.  Schluss.
    root@OMV-NAS:~# tail /var/lib/dkms/zfs/0.6.5.9/build/make.log
    DKMS make.log for zfs-0.6.5.9 for kernel 4.11.0-14-generic (x86_64)
    Sa 19. Aug 20:17:21 CEST 2017
    make: *** Keine Targets angegeben und keine »make«-Steuerdatei gefunden.  Schluss.
    root@OMV-NAS:~#

    OMV 4 - Ryzen 7 1700 (8 Cores / 16 Threads 65W TDP) - 32 GB DDR4 ECC
    128 GB OS SSD - 256 GB Plex SSD - 32 TB RAIDZ2 (6x8TB HGST NAS)

    Einmal editiert, zuletzt von Skaronator ()

    • Offizieller Beitrag

    I will have to try to recreate what I did since I don't see zfs-dkms installed but it is a dependency of the plugin.


    Code
    # dpkg -l | grep zfs
    ii  libzfs2linux                            0.6.5.9-2~bpo8+1                 amd64        OpenZFS filesystem library for Linux
    ii  openmediavault-zfs                      3.0.18                           amd64        OpenMediaVault plugin for ZFS
    ii  zfs-zed                                 0.6.5.9-2~bpo8+1                 amd64        OpenZFS Event Daemon
    ii  zfsutils-linux                          0.6.5.9-2~bpo8+1                 amd64        command-line tools to manage OpenZFS filesystems
    Code
    # lsmod | grep zfs
    zfs                  2711552  4
    zunicode              331776  1 zfs
    zavl                   16384  1 zfs
    zcommon                49152  1 zfs
    znvpair                77824  2 zcommon,zfs
    spl                    98304  3 znvpair,zcommon,zfs
    Code
    # uname -a
    Linux omv3master 4.11.0-14-generic #20~16.04.1-Ubuntu SMP Wed Aug 9 09:06:22 UTC 2017 x86_64 GNU/Linux
    Code
    # zfs list
    NAME     USED  AVAIL  REFER  MOUNTPOINT
    ubuntu    61K  15.4G    19K  /ubuntu

    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!

    • Offizieller Beitrag

    I just recreated the install and can confirm it doesn't install zfs-dkms. Looks like the ubuntu header package satisfies that dependency:



    So, I would guess you need to remove zfs-dkms. Made a video of the install here - https://github.com/OpenMediaVa…ob/master/zfs_install.gif

    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!

  • Okay got it working, thanks!


    Hope the system is now stable.

    OMV 4 - Ryzen 7 1700 (8 Cores / 16 Threads 65W TDP) - 32 GB DDR4 ECC
    128 GB OS SSD - 256 GB Plex SSD - 32 TB RAIDZ2 (6x8TB HGST NAS)

    • Offizieller Beitrag

    Okay got it working, thanks!


    Hope the system is now stable.

    Good to hear. Only issue is that there are no auto updates for the kernel. They will have to be manually downloaded and installed.

    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!

  • Only wondering why there are no spl and both spl and zfs dkms packages installed. Are they both in the Kernel included?

    OMV 4 - Ryzen 7 1700 (8 Cores / 16 Threads 65W TDP) - 32 GB DDR4 ECC
    128 GB OS SSD - 256 GB Plex SSD - 32 TB RAIDZ2 (6x8TB HGST NAS)

    • Offizieller Beitrag

    Are they both in the Kernel included?

    A prebuilt module is probably included in the kernel package.

    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!

Jetzt mitmachen!

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