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

  • I guess this statement on github says it all:



    Offical ZFS on Linux [url='https://en.wikipedia.org/wiki/Dynamic_Kernel_Module_Support']DKMS[/url] style packages are available from the [url='https://tracker.debian.org/pkg/zfs-linux']Debian GNU/Linux repository[/url] for the following configurations. The packages previously hosted at archive.zfsonlinux.org will not be updated and are not recommended for new installations.


    Since there are no zfs packages in Debian's wheezy repo, support for wheezy is done. This means zfs users should move to OMV 3.x.

    omv 5.6.13 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.2 | kvm plugin 5.1.6
    omv-extras.org plugins source code and issue tracker - github


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


  • Well, that seems pretty cut and dry. Thank you for your help.


    Sent from my Nexus 6P using Tapatalk

  • Info gathered in zol channel, there was never support for wheezy, packages where created by a maintainer that used wheezy. They were not recommended apparently.
    People installing 2.0 won't have zfs to install , people with current setups in 2.0 wont have any more drivers updates. Time to move to omv3

  • Time to mark omv3 with "stable". ;)

    ---------------------------------------------------------------------------------------------------------------
    frontend software - tvos | android tv | libreelec | win10 | kodi krypton
    frontend hardware - appletv 4k | nvidia shield tv | odroid c2 | yamaha rx-a1020 | quadral chromium style 5.1 | samsung le40-a789r2
    -------------------------------------------
    backend software - debian | openmediavault | latest backport kernel | zfs raid-z2 | docker | emby | unifi | vdr | tvheadend | fhem
    backend hardware - supermicro x11ssh-ctf | xeon E3-1240L-v5 | 64gb ecc | 8x10tb wd red | digital devices max s8
    ---------------------------------------------------------------------------------------------------------------------------------------

  • I use omv3 since round about 9 months.


    Except the big code change from omv3.0.13 to omv3.0.14 I never had a problem. In this phase I stopped updating omv3 and waited until luxflow ported the zfs-plugin. At the moment I only miss the emby plugin. But it's not a priority thing for me, because it's possible to use the debian packages without the plugin.


    Uff..., it's offtopic here. ;)


    Greetings Hoppel

    ---------------------------------------------------------------------------------------------------------------
    frontend software - tvos | android tv | libreelec | win10 | kodi krypton
    frontend hardware - appletv 4k | nvidia shield tv | odroid c2 | yamaha rx-a1020 | quadral chromium style 5.1 | samsung le40-a789r2
    -------------------------------------------
    backend software - debian | openmediavault | latest backport kernel | zfs raid-z2 | docker | emby | unifi | vdr | tvheadend | fhem
    backend hardware - supermicro x11ssh-ctf | xeon E3-1240L-v5 | 64gb ecc | 8x10tb wd red | digital devices max s8
    ---------------------------------------------------------------------------------------------------------------------------------------

  • omv-zfs 3.0.6 is released. you can upgrade as soon as @ryecoaaron upload it


    whats new?

    • Fix snapshot creating
    • Add snapshot rollback
    • Add force pool import option
    • Add zfs zed notificationomv-zfs

    zed is zfs event daemon utility. more detail is here
    so, you can just enable it by clicking omv -> notification -> notifications -> ZFS ZED button


    Unfortunately there is bug currently zfs-zed (not omv-zfs, and it will be fixed soon I think)
    so after install omv-zfs,

    Code
    ln -s /usr/sbin/zed /sbin/zed
    systemctl restart zfs-zed

    OMV3 on Proxmox
    Intel E3-1245 v5 | 32GB ECC RAM | 4x3TB RAID10 HDD
    omv-zfs | omv-nginx | omv-letsencrypt | omv-openvpn
    Click link for more details

    Edited 3 times, last by luxflow ().

  • omv-zfs 3.0.6 is released. you can upgrade as soon as @ryecoaaron upload it

    In repo now.


    change /sbin/zed to /usr/sbin/zed

    Couldn't you just symlink this?

    omv 5.6.13 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.2 | kvm plugin 5.1.6
    omv-extras.org plugins source code and issue tracker - github


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

  • Hello @luxflow


    today I made the update to "openmediavault-zfs 3.0.6". But I can see that some packages didn't install.


    "apt-get upgrade" did the following:


    http://pastebin.com/DaXb37Qh


    A second "apt-get update && apt-get upgrade" brought up that the following packages were held back:


    Code
    root@omv:~# apt-get upgrade
    Paketlisten werden gelesen... Fertig
    Abhängigkeitsbaum wird aufgebaut.
    Statusinformationen werden eingelesen.... Fertig
    Paketaktualisierung (Upgrade) wird berechnet... Fertig
    Die folgenden Pakete sind zurückgehalten worden:
    linux-headers-amd64 linux-image-amd64 openmediavault-zfs
    0 aktualisiert, 0 neu installiert, 0 zu entfernen und 3 nicht aktualisiert.


    If I have a look at omv webui "update management" I still see the following:




    Is there a dependency between omv-zfs 3.0.6 and kernel 4.8?


    Until now I use the 4.4 lts proxmox kernel. Isn't this possible anymore?



    Code
    root@omv:~# uname -a
    Linux omv 4.4.19-1-pve #1 SMP Wed Sep 14 14:33:50 CEST 2016 x86_64 GNU/Linux


    Thanks and greetings Hoppel

    ---------------------------------------------------------------------------------------------------------------
    frontend software - tvos | android tv | libreelec | win10 | kodi krypton
    frontend hardware - appletv 4k | nvidia shield tv | odroid c2 | yamaha rx-a1020 | quadral chromium style 5.1 | samsung le40-a789r2
    -------------------------------------------
    backend software - debian | openmediavault | latest backport kernel | zfs raid-z2 | docker | emby | unifi | vdr | tvheadend | fhem
    backend hardware - supermicro x11ssh-ctf | xeon E3-1240L-v5 | 64gb ecc | 8x10tb wd red | digital devices max s8
    ---------------------------------------------------------------------------------------------------------------------------------------

    Edited once, last by hoppel118 ().

  • @hoppel118
    For me, clean install omv3+proxmox 4.4.35+zfs plugins works
    (omv3 install -> install omvextras and enable zfs-testing repo only -> proxmox 4.4.35 install -> boot to proxmox 4.435 kernel -> install zfs plugins)


    try upgrade 4.4.35 and reinstall omv-zfs

    OMV3 on Proxmox
    Intel E3-1245 v5 | 32GB ECC RAM | 4x3TB RAID10 HDD
    omv-zfs | omv-nginx | omv-letsencrypt | omv-openvpn
    Click link for more details

  • @luxflow


    OK, upgraded my kernel to the latest proxmox and rebootet the machine. The update procedure was fine:


    Code
    root@omv:~# uname -r
    4.4.35-1-pve




    Thanks again to @ryecoaaron for the nice button under "OMV-Extras - Kernel - Install Proxmox Kernel". This works like a charme!



    It's not possible to enable "zfs testing repo" anymore after the last changes from @ryecoaaron according to zfs.



    So I deinstalled the omv-zfs plugin and still see all the kernel 4.8 packages.





    Where do this packages come from? I don't use any backport kernel (besides proxmox kernel).


    "apt-get uprade" gives me the following output now:


    Code
    root@omv:~# apt-get upgrade
    Paketlisten werden gelesen... Fertig
    Abhängigkeitsbaum wird aufgebaut.
    Statusinformationen werden eingelesen.... Fertig
    Paketaktualisierung (Upgrade) wird berechnet... Fertig
    Die folgenden Pakete sind zurückgehalten worden:
    linux-headers-amd64 linux-image-amd64
    0 aktualisiert, 0 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.

    Tried to install the omv-zfs per omv web ui and ended in an error. But zfs is working again now.


    I deinstalled the openmediavault-zfs plugin per omv web ui again without any errors. After that I rebooted the omv machine and tried to install it per "apt-get install openmediavault-zfs":


    After this error ZFS works, but what is the problem with: "zfs-zed_0.6.5.8-2~bpo8+1_amd64.deb"?



    "apt-get -f install" ends with the same error:


    "apt-get autoremove" ends with the following error:


    Code
    root@omv:~# apt-get autoremove
    Paketlisten werden gelesen... Fertig
    Abhängigkeitsbaum wird aufgebaut.
    Statusinformationen werden eingelesen.... Fertig
    Probieren Sie »apt-get -f install«, um dies zu korrigieren.
    Die folgenden Pakete haben unerfüllte Abhängigkeiten:
    openmediavault-zfs : Hängt ab von: zfs-zed ist aber nicht installiert
    E: Unerfüllte Abhängigkeiten. Versuchen Sie, -f zu benutzen.

    "apt-get install zfs-zed" ends with the unmet dependencies:




    Greetings Hoppel

    ---------------------------------------------------------------------------------------------------------------
    frontend software - tvos | android tv | libreelec | win10 | kodi krypton
    frontend hardware - appletv 4k | nvidia shield tv | odroid c2 | yamaha rx-a1020 | quadral chromium style 5.1 | samsung le40-a789r2
    -------------------------------------------
    backend software - debian | openmediavault | latest backport kernel | zfs raid-z2 | docker | emby | unifi | vdr | tvheadend | fhem
    backend hardware - supermicro x11ssh-ctf | xeon E3-1240L-v5 | 64gb ecc | 8x10tb wd red | digital devices max s8
    ---------------------------------------------------------------------------------------------------------------------------------------

    Edited 3 times, last by hoppel118 ().

  • @hoppel118
    hmm I think there are package collisions between zfsonlinux repo and debian repo
    I can see collision in your logs (sorry below is translated one)


    Code
    Unpacking zfsutils-linux (0.6.5.8-2 ~ bpo8 + 1) ...
    Dpkg: Error editing archive /var/cache/apt/archives/zfsutils-linux_0.6.5.8-2~bpo8+1_amd64.deb (--unpack):
    Try to override /sbin/mount.zfs, which is also in package zfsutils 0.6.5.7-8-jessie
    ...
    Dpkg: Error editing archive /var/cache/apt/archives/zfs-zed_0.6.5.8-2~bpo8+1_amd64.deb (--unpack):
    Attempt to override /lib/systemd/system/zfs-zed.service, which is also included in package zfsutils 0.6.5.7-8-jessie


    So there are collisions between zfsutils in zfsonlinux and zfs-zed, zfsutils-linux in debian official repo



    It's not possible to enable "zfs testing repo" anymore after the last changes from @ryecoaaron according to zfs.

    I'm not sure why you can't do this, can you point what change was made?
    (also try enable testing omv-extras)


    Suggested my solution is

    Code
    # clean ZoL already installed packages
    apt-get autoremove debian-zfs libnvpair1 libuutil1 libzfs2 libzpool2 zfsutils spl-dkms zfs-dkms openmediavault-zfs
    # reinstall omv-zfs
    apt-get install openmediavault-zfs


    By the way, @ryecoaaron I think it is good to remove zfsonlinux in ZFS stable repo in omv-extras plugin
    Since backport zfs package is compatible with debian, proxmox, debian-backports kernel


    Sometimes debian-backports kernel doesn't support zfs due to backports kernel update
    Then we have options such as debian, proxmox kernel

    OMV3 on Proxmox
    Intel E3-1245 v5 | 32GB ECC RAM | 4x3TB RAID10 HDD
    omv-zfs | omv-nginx | omv-letsencrypt | omv-openvpn
    Click link for more details

  • I think it is good to remove zfsonlinux in ZFS stable repo in omv-extras plugin
    Since backport zfs package is compatible with debian, proxmox, debian-backports kernel

    I did remove both zfs repos from omv-extras. So, everyone should be getting their zfs packages from the debian repos unless they haven't updated omv-extras.

    omv 5.6.13 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.2 | kvm plugin 5.1.6
    omv-extras.org plugins source code and issue tracker - github


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

  • The changes made by @ryecoaaron were discussed on the last page of this thread. I am going to try your suggestion later this week. I am on a business trip now.


    I did remove both zfs repos from omv-extras. So, everyone should be getting their zfs packages from the debian repos unless they haven't updated omv-extras.


    Yes, I can't see the both repos (zfs repo and zfs testing repo) anymore.


    Greetings Hoppel

    ---------------------------------------------------------------------------------------------------------------
    frontend software - tvos | android tv | libreelec | win10 | kodi krypton
    frontend hardware - appletv 4k | nvidia shield tv | odroid c2 | yamaha rx-a1020 | quadral chromium style 5.1 | samsung le40-a789r2
    -------------------------------------------
    backend software - debian | openmediavault | latest backport kernel | zfs raid-z2 | docker | emby | unifi | vdr | tvheadend | fhem
    backend hardware - supermicro x11ssh-ctf | xeon E3-1240L-v5 | 64gb ecc | 8x10tb wd red | digital devices max s8
    ---------------------------------------------------------------------------------------------------------------------------------------

  • The 4.8 packages you're seeing may be a result of OMV 3.0.59 and has nothing to do with ZFS in all likelihood:


    Code
    openmediavault (3.0.59) stable; urgency=low
    * Update locales.
    * Various improvements.
    * Use kernel/firmware backports by default.
    -- Volker Theile <volker.theile@openmediavault.org> Wed, 28 Dec 2016 22:37:50 +0100

    So, if 3.0.59 is using Debian Backports by default now, you'll see 4.8 as the current kernel.

  • The 4.8 packages you're seeing may be a result of OMV 3.0.59 and has nothing to do with ZFS in all likelihood:


    Code
    openmediavault (3.0.59) stable; urgency=low
    * Update locales.
    * Various improvements.
    * Use kernel/firmware backports by default.
    -- Volker Theile <volker.theile@openmediavault.org> Wed, 28 Dec 2016 22:37:50 +0100

    So, if 3.0.59 is using Debian Backports by default now, you'll see 4.8 as the current kernel.


    Ok, thanks for this information.


    @ryecoaaron If this is the truth, we shouldn't have the ability to use the proxmox 4.4 lts kernel from omv-extras anymore. What do you think about this? It's a poor situation, because the solution with the proxmox kernel is great! But if the new way of omv3 is to use the backports kernel, I am also fine with the situation. Even if it would be better to use the latest lts kernel instead of latest bpo kernel in my opinion. Sadly the latest lts is not available in debian repos (stable and backport).


    Greetings Hoppel

    ---------------------------------------------------------------------------------------------------------------
    frontend software - tvos | android tv | libreelec | win10 | kodi krypton
    frontend hardware - appletv 4k | nvidia shield tv | odroid c2 | yamaha rx-a1020 | quadral chromium style 5.1 | samsung le40-a789r2
    -------------------------------------------
    backend software - debian | openmediavault | latest backport kernel | zfs raid-z2 | docker | emby | unifi | vdr | tvheadend | fhem
    backend hardware - supermicro x11ssh-ctf | xeon E3-1240L-v5 | 64gb ecc | 8x10tb wd red | digital devices max s8
    ---------------------------------------------------------------------------------------------------------------------------------------

  • If this is the truth, we shouldn't have the ability to use the proxmox 4.4 lts kernel from omv-extras anymore.

    Why? The proxmox kernel should be fine regardless of the changes. It may not default to the current boot kernel due to the fact that it is an older kernel

    omv 5.6.13 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.2 | kvm plugin 5.1.6
    omv-extras.org plugins source code and issue tracker - github


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

  • @ryecoaaron Yes, but in the actual situation I have unmet dependencies to kernel 4.8. In the medium term view omv3 always uses a more current kernel (bpo) as the guys like me using the proxmox kernel (lts) under omv3. I think this can lead into other issues. Hm..., maybe I understand something wrong here.


    Greetings Hoppel

    ---------------------------------------------------------------------------------------------------------------
    frontend software - tvos | android tv | libreelec | win10 | kodi krypton
    frontend hardware - appletv 4k | nvidia shield tv | odroid c2 | yamaha rx-a1020 | quadral chromium style 5.1 | samsung le40-a789r2
    -------------------------------------------
    backend software - debian | openmediavault | latest backport kernel | zfs raid-z2 | docker | emby | unifi | vdr | tvheadend | fhem
    backend hardware - supermicro x11ssh-ctf | xeon E3-1240L-v5 | 64gb ecc | 8x10tb wd red | digital devices max s8
    ---------------------------------------------------------------------------------------------------------------------------------------

    Edited 4 times, last by hoppel118 ().

  • Sorry but I lost a bit the conversation, the kernel 4.8 is compatible with the latest zfs packages (0.6.5.8-2)?

    yes


    @hoppel118 I think, you can override default behavior not to uses bpo kernel by editing /etc/default/openmediavault
    OMV_APT_USE_KERNEL_BACKPORTS=no and omv-mkconf apt


    here is code

    OMV3 on Proxmox
    Intel E3-1245 v5 | 32GB ECC RAM | 4x3TB RAID10 HDD
    omv-zfs | omv-nginx | omv-letsencrypt | omv-openvpn
    Click link for more details

    Edited once, last by luxflow ().

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!