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

    • OMV 4.x
    • Update

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • 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:
      bugs.debian.org/cgi-bin/bugreport.cgi?bug=897568
      tracker.debian.org/pkg/zfs-linux
      github.com/zfsonlinux/zfs/issues/7179

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

      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
    • vln0x wrote:

      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 4.1.12 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • If you want to build ZFS 0.7.9...

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

      Source Code

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

      Source Code

      1. root@home-server:~# cd /usr/local/src/
      2. root@home-server:/usr/local/src# wget https://github.com/zfsonlinux/zfs/releases/download/zfs-0.7.9/spl-0.7.9.tar.gz
      3. Sauvegarde en : « spl-0.7.9.tar.gz »
      4. spl-0.7.9.tar.gz 100%[=================================================>] 538,20K 641KB/s in 0,8s
      5. 2018-05-12 20:42:26 (641 KB/s) — « spl-0.7.9.tar.gz » sauvegardé [551115/551115]
      6. root@home-server:/usr/local/src# wget https://github.com/zfsonlinux/zfs/releases/download/zfs-0.7.9/zfs-0.7.9.tar.gz
      7. Sauvegarde en : « zfs-0.7.9.tar.gz »
      8. zfs-0.7.9.tar.gz 100%[=================================================>] 6,25M 3,48MB/s in 1,8s
      9. 2018-05-12 20:42:43 (3,48 MB/s) — « zfs-0.7.9.tar.gz » sauvegardé [6548649/6548649]
      10. root@home-server:/usr/local/src# tar -xzf spl-0.7.9.tar.gz
      11. root@home-server:/usr/local/src# tar -xzf zfs-0.7.9.tar.gz
      12. root@home-server:/usr/local/src# cd spl-0.7.9/
      13. root@home-server:/usr/local/src/spl-0.7.9# sh autogen.sh
      14. root@home-server:/usr/local/src/spl-0.7.9# ./configure
      15. root@home-server:/usr/local/src/spl-0.7.9# make -s -j$(nproc)
      16. Making all in include
      17. Making all in fs
      18. Making all in linux
      19. Making all in rpc
      20. Making all in sharefs
      21. Making all in sys
      22. Making all in fm
      23. Making all in fs
      24. Making all in util
      25. Making all in vm
      26. Making all in rpm
      27. Making all in generic
      28. Making all in redhat
      29. Making all in lib
      30. CC list.lo
      31. CCLD libcommon.la
      32. ar: `u' modifier ignored since `D' is the default (see `U')
      33. Making all in cmd
      34. Making all in splat
      35. CC splat.o
      36. CCLD splat
      37. Making all in splslab
      38. Making all in man
      39. Making all in man1
      40. Making all in man5
      41. Making all in scripts
      42. Making all in module
      43. root@home-server:/usr/local/src/spl-0.7.9# cd ../zfs-0.7.9
      44. root@home-server:/usr/local/src/zfs-0.7.9# sh autogen.sh
      45. root@home-server:/usr/local/src/zfs-0.7.9# ./configure
      46. root@home-server:/usr/local/src/zfs-0.7.9# make -s -j$(nproc)
      47. ...
      48. root@home-server:/usr/local/src/zfs-0.7.9# make deb
      49. ...
      50. root@home-server:/usr/local/src/zfs-0.7.9# ls -alrt
      51. total 40324
      52. ...
      53. -rwxr-xr-x 1 root root 112371 mai 12 21:07 config.status
      54. -rw-r--r-- 1 root root 53448 mai 12 21:07 Makefile
      55. drwxrwxr-x 3 57592 57592 4096 mai 12 21:07 udev
      56. drwxrwxr-x 7 57592 57592 4096 mai 12 21:07 etc
      57. drwxrwxr-x 5 57592 57592 4096 mai 12 21:07 man
      58. drwxrwxr-x 13 57592 57592 4096 mai 12 21:07 lib
      59. drwxrwxr-x 20 57592 57592 4096 mai 12 21:07 cmd
      60. drwxrwxr-x 5 57592 57592 4096 mai 12 21:07 contrib
      61. drwxrwxr-x 9 57592 57592 4096 mai 12 21:07 module
      62. drwxrwxr-x 4 57592 57592 4096 mai 12 21:07 include
      63. drwxrwxr-x 5 57592 57592 4096 mai 12 21:07 scripts
      64. drwxrwxr-x 5 57592 57592 4096 mai 12 21:07 tests
      65. drwxrwxr-x 4 57592 57592 4096 mai 12 21:07 rpm
      66. -rw-r--r-- 1 root root 4349 mai 12 21:07 zfs-script-config.sh
      67. -rw-r--r-- 1 root root 8 mai 12 21:07 zfs.release
      68. -rw-r--r-- 1 root root 27 mai 12 21:07 stamp-h1
      69. -rw-r--r-- 1 root root 16377 mai 12 21:07 zfs_config.h
      70. -rwxr-xr-x 1 root root 339390 mai 12 21:07 libtool
      71. -rw-r--r-- 1 root root 334140 mai 12 21:07 config.log
      72. -rw-r--r-- 1 root root 6797599 mai 12 21:08 zfs-kmod-0.7.9-1.src.rpm
      73. -rw-r--r-- 1 root root 793522 mai 12 21:15 kmod-zfs-4.14.0-0.bpo.3-amd64_0.7.9-1_amd64.deb
      74. -rw-r--r-- 1 root root 221306 mai 12 21:15 kmod-zfs-devel_0.7.9-1_amd64.deb
      75. -rw-r--r-- 1 root root 18180 mai 12 21:15 kmod-zfs-devel-4.14.0-0.bpo.3-amd64_0.7.9-1_amd64.deb
      76. -rw-r--r-- 1 root root 6791322 mai 12 21:15 zfs-dkms-0.7.9-1.src.rpm
      77. -rw-r--r-- 1 root root 4434484 mai 12 21:16 zfs-dkms_0.7.9-1_amd64.deb
      78. -rw-r--r-- 1 root root 6893132 mai 12 21:16 zfs-0.7.9.tar.gz
      79. -rw-r--r-- 1 root root 6794606 mai 12 21:16 zfs-0.7.9-1.src.rpm
      80. -rw-r--r-- 1 root root 899544 mai 12 21:19 zfs_0.7.9-1_amd64.deb
      81. -rw-r--r-- 1 root root 76474 mai 12 21:19 libnvpair1_0.7.9-1_amd64.deb
      82. -rw-r--r-- 1 root root 80766 mai 12 21:19 libuutil1_0.7.9-1_amd64.deb
      83. -rw-r--r-- 1 root root 383380 mai 12 21:19 libzfs2_0.7.9-1_amd64.deb
      84. -rw-r--r-- 1 root root 1844440 mai 12 21:19 libzpool2_0.7.9-1_amd64.deb
      85. -rw-r--r-- 1 root root 261054 mai 12 21:19 libzfs2-devel_0.7.9-1_amd64.deb
      86. -rw-r--r-- 1 root root 2573090 mai 12 21:20 zfs-test_0.7.9-1_amd64.deb
      87. -rw-r--r-- 1 root root 11352 mai 12 21:20 zfs-dracut_0.7.9-1_amd64.deb
      88. -rw-r--r-- 1 root root 13118 mai 12 21:20 zfs-initramfs_0.7.9-1_amd64.deb
      89. drwxrwxr-x 14 57592 57592 4096 mai 12 21:20 .
      Display All
      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 | Gigabyte GA-G33M-DS2R | Intel E8400@3,6Ghz | 6GB DDR2 RAM
      1x500MB SSD for System/Backup | 7x2To HDD with ZFS RAIDz2 for Datas/Snapshots
      Powered by OMV v4.1.7 / Kernel 4.16.x / ZFS 0.7.9

      The post was edited 1 time, 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 | Gigabyte GA-G33M-DS2R | Intel E8400@3,6Ghz | 6GB DDR2 RAM
      1x500MB SSD for System/Backup | 7x2To HDD with ZFS RAIDz2 for Datas/Snapshots
      Powered by OMV v4.1.7 / Kernel 4.16.x / ZFS 0.7.9
    • sbocquet wrote:

      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 :|
    • geramath wrote:

      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 | Gigabyte GA-G33M-DS2R | Intel E8400@3,6Ghz | 6GB DDR2 RAM
      1x500MB SSD for System/Backup | 7x2To HDD with ZFS RAIDz2 for Datas/Snapshots
      Powered by OMV v4.1.7 / Kernel 4.16.x / ZFS 0.7.9
    • 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 github.com/zfsonlinux/zfs/wiki/Building-ZFS

      Source Code

      1. root@home-server:~# cd /usr/local/src/
      2. root@home-server:/usr/local/src# wget https://github.com/zfsonlinux/zfs/releases/download/zfs-0.7.9/spl-0.7.9.tar.gz
      3. Sauvegarde en : « spl-0.7.9.tar.gz »
      4. spl-0.7.9.tar.gz 100%[=================================================>] 538,20K 641KB/s in 0,8s
      5. 2018-05-12 20:42:26 (641 KB/s) — « spl-0.7.9.tar.gz » sauvegardé [551115/551115]
      6. root@home-server:/usr/local/src# wget https://github.com/zfsonlinux/zfs/releases/download/zfs-0.7.9/zfs-0.7.9.tar.gz
      7. Sauvegarde en : « zfs-0.7.9.tar.gz »
      8. zfs-0.7.9.tar.gz 100%[=================================================>] 6,25M 3,48MB/s in 1,8s
      9. 2018-05-12 20:42:43 (3,48 MB/s) — « zfs-0.7.9.tar.gz » sauvegardé [6548649/6548649]
      10. root@home-server:/usr/local/src# tar -xzf spl-0.7.9.tar.gz
      11. root@home-server:/usr/local/src# tar -xzf zfs-0.7.9.tar.gz
      12. root@home-server:/usr/local/src# cd spl-0.7.9/
      13. root@home-server:/usr/local/src/spl-0.7.9# sh autogen.sh
      14. root@home-server:/usr/local/src/spl-0.7.9# ./configure
      15. root@home-server:/usr/local/src/spl-0.7.9# make -s -j$(nproc)
      16. Making all in include
      17. Making all in fs
      18. Making all in linux
      19. Making all in rpc
      20. Making all in sharefs
      21. Making all in sys
      22. Making all in fm
      23. Making all in fs
      24. Making all in util
      25. Making all in vm
      26. Making all in rpm
      27. Making all in generic
      28. Making all in redhat
      29. Making all in lib
      30. CC list.lo
      31. CCLD libcommon.la
      32. ar: `u' modifier ignored since `D' is the default (see `U')
      33. Making all in cmd
      34. Making all in splat
      35. CC splat.o
      36. CCLD splat
      37. Making all in splslab
      38. Making all in man
      39. Making all in man1
      40. Making all in man5
      41. Making all in scripts
      42. Making all in module
      43. root@home-server:/usr/local/src/spl-0.7.9# cd ../zfs-0.7.9
      44. root@home-server:/usr/local/src/zfs-0.7.9# sh autogen.sh
      45. root@home-server:/usr/local/src/zfs-0.7.9# ./configure
      46. root@home-server:/usr/local/src/zfs-0.7.9# make -s -j$(nproc)
      47. ...
      48. root@home-server:/usr/local/src/zfs-0.7.9# make deb
      Display All
      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 | Gigabyte GA-G33M-DS2R | Intel E8400@3,6Ghz | 6GB DDR2 RAM
      1x500MB SSD for System/Backup | 7x2To HDD with ZFS RAIDz2 for Datas/Snapshots
      Powered by OMV v4.1.7 / Kernel 4.16.x / ZFS 0.7.9
    • 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 4.1.12 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

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