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

    • OMV 1.0
    • ikogan wrote:

      Do you prefer me contributing straight to the main repo instead of issuing pull requests? I tend to prefer PRs as it's easier to discuss a batch of changes.

      I've looked at the code you wrote for the first PR and it's very good in my opinion. My problem is that I have extremely limited time for coding with three small children taking up most o my available time. With your code quality and my limited time I think it would be best if you just pushed the changes directly. You could also set up an account at bintray.com which will probably host most plugin .deb packages in the future, then you could also publish the changes you've made directly. I've used it with the Docker plugin as test and it's been successful so far. I plan on moving the ZFS repo there as well quite soon.

      ikogan wrote:

      I really want to fix the weirdness with that textbox (github.com/OpenMediaVault-Plug…enmediavault-zfs/issues/2). I spent about 30 minutes on it and gave up for the moment.

      Sometimes me and ExtJS are not the best of friends either... These small issues can really take a long time to fix :) I've pushed a change to github that I hope will correct this behavior with the textbox.
    • I just found out that there was a new release of ZoL on the 11:th. Among other things this release changes the upstart scripts, which breaks the install of the plugin. Currently the plugin uses an insserv override for zfs-mount, but this creates a loop with the new ZoL release. I tested to remove the override from debian/postinst and the plugin installed ok and all seems to work fine (even after reboot). I don't have much experience working with upstart/insserv so if someone could help me with making sure the plugin can be updated properly between ZoL 0.6.4.x and 0.6.5 I would be very thankful :)
    • The override was to ensure mounts occurred at single run level, this seems obvious since many services can require access to the mounts at RL2345.
      the default zfs mount did the job at the end of the boot sequence (I would say around the beep), which was ridiculous, even the zfs mount in the Debian FreeBSD kernel has that at level S.

      i did look at zfs github and I didn't see any change regarding the runlevel, just
      a dependancy of Xstartbefore was changed, the override will need to match begin and end tags from the new init and keep the start at S of course. Give that a try.
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • You should be able to remove (purge) the zfs plugin and then check which errors you get from dpkg. I've tested some today and it could be that there are some issues with the debian-zfs package or the zfsutils package. I had to manually run the commands insserv zfs-import and insserv zfs-mount and finally modprobe zfs to get zfs back on track. I have a fix ready for the plugin, but it's not added to the repo yet and I await some help regarding that part.
    • There seems to be something bad at the Debian postint files or the init script. Saw some issues at their github comments. I need to look more in detail at their files, but I can't find the postint files at their github for zfsutils
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • I removed anything I could find related to zfs. Then when using apt-get this is the output, maybe im missing something.

      Source Code

      1. ​root@openmediavault:~# apt-get install openmediavault-zfs
      2. Reading package lists... Done
      3. Building dependency tree
      4. Reading state information... Done
      5. The following extra packages will be installed:
      6. debian-zfs zfsutils
      7. Suggested packages:
      8. zfs-auto-snapshot zfs-initramfs
      9. Recommended packages:
      10. zfsonlinux
      11. The following NEW packages will be installed:
      12. debian-zfs openmediavault-zfs zfsutils
      13. 0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
      14. Need to get 458 kB/519 kB of archives.
      15. After this operation, 1,567 kB of additional disk space will be used.
      16. Do you want to continue [Y/n]? Y
      17. Get:1 http://archive.zfsonlinux.org/debian/ wheezy/main zfsutils amd64 0.6.5.1-1-wheezy [458 kB]
      18. Fetched 458 kB in 1s (267 kB/s)
      19. Preconfiguring packages ...
      20. Selecting previously unselected package zfsutils.
      21. (Reading database ... 84282 files and directories currently installed.)
      22. Unpacking zfsutils (from .../zfsutils_0.6.5.1-1-wheezy_amd64.deb) ...
      23. Selecting previously unselected package debian-zfs.
      24. Unpacking debian-zfs (from .../debian-zfs_7~wheezy_amd64.deb) ...
      25. Selecting previously unselected package openmediavault-zfs.
      26. Unpacking openmediavault-zfs (from .../openmediavault-zfs_0.6.4_amd64.deb) ...
      27. Processing triggers for initramfs-tools ...
      28. update-initramfs: Generating /boot/initrd.img-3.16.0-0.bpo.4-amd64
      29. W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
      30. W: mdadm: no arrays defined in configuration file.
      31. Processing triggers for man-db ...
      32. Processing triggers for openmediavault ...
      33. Restarting engine daemon ...
      34. Setting up zfsutils (0.6.5.1-1-wheezy) ...
      35. update-rc.d: warning: start runlevel arguments (S) do not match zfs-zed Default-Start values (2 3 4 5)
      36. insserv: Service zfs-mount has to be enabled to start service zfs-zed
      37. insserv: exiting now!
      38. update-rc.d: error: insserv rejected the script header
      39. dpkg: error processing zfsutils (--configure):
      40. subprocess installed post-installation script returned error exit status 1
      41. dpkg: dependency problems prevent configuration of debian-zfs:
      42. debian-zfs depends on zfsutils; however:
      43. Package zfsutils is not configured yet.
      44. dpkg: error processing debian-zfs (--configure):
      45. dependency problems - leaving unconfigured
      46. dpkg: dependency problems prevent configuration of openmediavault-zfs:
      47. openmediavault-zfs depends on debian-zfs; however:
      48. Package debian-zfs is not configured yet.
      49. dpkg: error processing openmediavault-zfs (--configure):
      50. dependency problems - leaving unconfigured
      51. Processing triggers for initramfs-tools ...
      52. update-initramfs: Generating /boot/initrd.img-3.16.0-0.bpo.4-amd64
      53. W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
      54. W: mdadm: no arrays defined in configuration file.
      55. Errors were encountered while processing:
      56. zfsutils
      57. debian-zfs
      58. openmediavault-zfs
      59. Creating index of upgradeable packages ...
      60. Creating index of openmediavault plugins ...
      61. E: Sub-process /usr/bin/dpkg returned an error code (1)
      Display All