[HOWTO] Instal ZFS-Plugin & use ZFS on OMV

    • OMV 1.0

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

    • [HOWTO] Instal ZFS-Plugin & use ZFS on OMV

      My use of the ZFS plugin is for home use and I haven't noticed any instability so far. Having said that, I used the plugin initially and also use the terminal a lot. I like a GUI but also frequent the command line. You could use Webmin to create cron jobs if you prefer a GUI and smile sweetly at the devs to add this feature in the plugin ;)

      More on cron jobs with Webmin here: doxfer.webmin.com/Webmin/Scheduled_Cron_Jobs
      Server: ASRock X99 WS, Xeon E5-2695 V3, 32GB DDR4 Registered ECC | Drives: OS: Kingston V300 120GB SSD, Array: 8 x Seagate ST4000DM000's in RAIDZ2
      OS: OMV Stoneburner 2.1 on Debian 7, Backports 3.16 Kernel, OMV Extras | OMV Extras: ZFS Plug-in, Emby Plug-in
      [ Server Thread | Router Thread ]

    • [HOWTO] Instal ZFS-Plugin & use ZFS on OMV

      Easier? I couldn't say (having not used both). Nine times out of ten it's what you're used to. Whenever I've used a GUI for cron jobs I've always used Webmin. I didn't mean to insinuate that Webmin was an easier option, just 'an option'.
      Server: ASRock X99 WS, Xeon E5-2695 V3, 32GB DDR4 Registered ECC | Drives: OS: Kingston V300 120GB SSD, Array: 8 x Seagate ST4000DM000's in RAIDZ2
      OS: OMV Stoneburner 2.1 on Debian 7, Backports 3.16 Kernel, OMV Extras | OMV Extras: ZFS Plug-in, Emby Plug-in
      [ Server Thread | Router Thread ]

    • And webmin is no gui? :P

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • Hi,

      I am trying to install ZFS on a new install. Ive downloaded the latest from the site and installed it and all of the updates (my version goes from 1.9 to 1.16 during the update process??) Ive then installed OMV-extras and when ever I try to tick the ZFS and ZFS testing options and click 'save' the boxes uncheck themselves and nothing is installed. Ive also tried downloading the latest openmediavault-zfs.deb file but when I try to install that it tells me it requries debian-zfs which is not avaliable. Any ideas what Im doing wrong? Im sure that is what I did a couple of months ago.
      OMV 1.16 – ASUS ITX - G2020 2.9ghz - 8GB RAM - 40GB boot - 3x2tb in raid 5
    • There is another problem with the ZFS on 1.16 extra after installing the pluging (thanks for the bug fix):

      When I clicked ZFS on left column, I get a prompt about "Failed to load ZFS module stack.Load the module manually by running 'insmod /zfs.ko'" (not exact wording, because I fixed the problem later so I couldn't get back original message :P )

      Running "find / -name zfs.ko" returns nothing, trying to make ZFS myself under /usr/src/zfs-0.6.3 and I was warned that "This will break ZFS", ok....

      Trying to re-install zfs-dkms, I get the below error:

      Source Code

      1. unpacking replacement zfs-dkms ...
      2. Setting up zfs-dkms (0.6.3-1.3-2~wheezy) ...
      3. Loading new zfs-0.6.3 DKMS files...
      4. Building only for 3.16.0-0.bpo.4-amd64
      5. Building initial module for 3.16.0-0.bpo.4-amd64
      6. configure: error:
      7. *** Please make sure the kmod spl devel <kernel> package for your
      8. *** distribution is installed then try again. If that fails you
      9. *** can specify the location of the spl objects with the
      10. *** '--with-spl-obj=PATH' option.
      11. Error! Bad return status for module build on kernel: 3.16.0-0.bpo.4-amd64 (x86_64)
      12. Consult /var/lib/dkms/zfs/0.6.3/build/make.log for more information.
      Display All


      OK.....I checked that "spl-dkms" is also installed, weird.....

      Then I looked around on internet, I found something insteresting: Some people realized that spl-dkms has to be configured before zfs-dkms, so I tried following:

      Brainfuck Source Code

      1. root@openmediavault:~# dpkg-reconfigure spl-dkms
      2. ------------------------------
      3. Deleting module version: 0.6.3
      4. completely from the DKMS tree.
      5. ------------------------------
      6. Done.
      7. Loading new spl-0.6.3 DKMS files...
      8. Building only for 3.16.0-0.bpo.4-amd64
      9. Building initial module for 3.16.0-0.bpo.4-amd64
      10. Done.
      11. spl:
      12. Running module version sanity check.
      13. - Original module
      14. - No original module exists within this kernel
      15. - Installation
      16. - Installing to /lib/modules/3.16.0-0.bpo.4-amd64/updates/dkms/
      17. splat.ko:
      18. Running module version sanity check.
      19. - Original module
      20. - No original module exists within this kernel
      21. - Installation
      22. - Installing to /lib/modules/3.16.0-0.bpo.4-amd64/updates/dkms/
      23. Running the post_install script:
      24. depmod.........
      25. DKMS: install completed.
      26. root@openmediavault:~# dpkg-reconfigure zfs-dkms
      27. ------------------------------
      28. Deleting module version: 0.6.3
      29. completely from the DKMS tree.
      30. ------------------------------
      31. Done.
      32. Loading new zfs-0.6.3 DKMS files...
      33. Building only for 3.16.0-0.bpo.4-amd64
      34. Building initial module for 3.16.0-0.bpo.4-amd64
      35. Done.
      36. zavl:
      37. Running module version sanity check.
      38. - Original module
      39. - No original module exists within this kernel
      40. - Installation
      41. - Installing to /lib/modules/3.16.0-0.bpo.4-amd64/updates/dkms/
      42. zcommon.ko:
      43. Running module version sanity check.
      44. - Original module
      45. - No original module exists within this kernel
      46. - Installation
      47. - Installing to /lib/modules/3.16.0-0.bpo.4-amd64/updates/dkms/
      48. znvpair.ko:
      49. Running module version sanity check.
      50. - Original module
      51. - No original module exists within this kernel
      52. - Installation
      53. - Installing to /lib/modules/3.16.0-0.bpo.4-amd64/updates/dkms/
      54. zpios.ko:
      55. Running module version sanity check.
      56. - Original module
      57. - No original module exists within this kernel
      58. - Installation
      59. - Installing to /lib/modules/3.16.0-0.bpo.4-amd64/updates/dkms/
      60. zunicode.ko:
      61. Running module version sanity check.
      62. - Original module
      63. - No original module exists within this kernel
      64. - Installation
      65. - Installing to /lib/modules/3.16.0-0.bpo.4-amd64/updates/dkms/
      66. zfs.ko:
      67. Running module version sanity check.
      68. - Original module
      69. - No original module exists within this kernel
      70. - Installation
      71. - Installing to /lib/modules/3.16.0-0.bpo.4-amd64/updates/dkms/
      72. depmod....
      73. DKMS: install completed.
      Display All


      Looks promosing, to verify.....

      Source Code

      1. root@openmediavault:~# find / -name zfs.ko
      2. /var/lib/dkms/zfs/0.6.3/3.16.0-0.bpo.4-amd64/x86_64/module/zfs.ko
      3. /lib/modules/3.16.0-0.bpo.4-amd64/updates/dkms/zfs.ko


      Bravo! Now I won't get any error when clicking into ZFS in GUI.
      Will this be addressed in the installer?
    • It is an issue that only happens on select systems. Because we don't create the zfs packages, it is difficult to fix for every system.
      omv 4.0.5 arrakis | 64 bit | 4.12 backports kernel | omvextrasorg 4.0.2
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • Great work.

      After using Freenas (had problems with some plugins), Openmediavault and Xpenology i have reinstalled openmediavault.
      Due to a power outage my system chrashed under Xpenology.
      One drive stopped working and Xpenology didn't boot anymore.
      Tried to restore the SHR partition within Linux but
      Had problems repairing the SHR partition and also my backup drive was corrupted.
      So a lot of data loss. :(

      Due to the broken drive i am now using 3x 2TB drives.
      and 1 system drive with a backup partition for important files.
      I have formatted it to Raid 5 but prefer Raid-Z1.
      Is it wise and save to use, and will there be still support in the future?
    • [HOWTO] Instal ZFS-Plugin & use ZFS on OMV

      @thespeed I know that you're a drive down because of the issues you've had with Xpenology, but just some friendly input to stop you suffering further data loss -

      If you can, if/when you move to ZFS, choose RAIDZ2 as a minimum or just mirror the drives - this will of course mean a 50% space loss if mirrored, or indeed the same with 4 drives in a RAIDZ2 (and does rely on replacing the drive). However, RAIDZ1 only allows for 1 drive to fail for the array to still function. Whilst this might seem like it isn't an issue because you'd just shut the array down and replace the drive, it is not unheard of for the resilvering than takes place afterwards to kill a second drive (or even a third).

      This is obviously dependent on drive age and health, but being that you have suffered data loss already, unless you are backing up everything in the RAID on to another disk in its entirety, you need to be prepared that you may suffer more loss.

      Most of us who have used RAIDZ1 have learnt this the hard way and its a horrible horrible feeling.

      Also, you may want to take the time now to give your drives a full check over using SMART and a drive utility.

      Just my opinions. :)

      Sorry one last thing, even using RAIDZ2 or 3 is not fool proof. Backups are the key ;)
      Server: ASRock X99 WS, Xeon E5-2695 V3, 32GB DDR4 Registered ECC | Drives: OS: Kingston V300 120GB SSD, Array: 8 x Seagate ST4000DM000's in RAIDZ2
      OS: OMV Stoneburner 2.1 on Debian 7, Backports 3.16 Kernel, OMV Extras | OMV Extras: ZFS Plug-in, Emby Plug-in
      [ Server Thread | Router Thread ]