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

  • You can dd files too.


    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!

  • Hi David,


    thanks for the tip. Copied one 1080p-movie from my system ssd to the lz4-compressed filesystem and after that to the uncompressed filesystem with the following results:


    Code
    root@mediatank:/# dd if=/tmp/test.mkv of=/mediatank/videos/videos/test.mkv
    62896466+1 Datensätze ein
    62896466+1 Datensätze aus
    32202991065 Bytes (32 GB) kopiert, 356,293 s, 90,4 MB/s


    Code
    root@mediatank:/# dd if=/tmp/test.mkv of=/mediatank/videosc/test.mkv
    62896466+1 Datensätze ein
    62896466+1 Datensätze aus
    32202991065 Bytes (32 GB) kopiert, 351,629 s, 91,6 MB/s


    Copying the file to the lz4 compressed filesystem was a little bit faster. More testing is not necessary for me, because the performance is quite the same for such media files.


    Because of my test results and the fact that since freenas 9.2.1 lz4 compression is activated in the default configuration, I decided to activate lz4 compression for my entire pool.


    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 ().

  • Hi guys,


    another question. When I check my partitions with fdisk I get the following output:



    Is this correct for /dev/sdb-/dev/sdi?


    Code
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes


    In the first moment I thougt that I forgot the ashift=12 alignment while creating the pool, but its correct for 4k hdds:


    Code
    root@mediatank:~# zpool set cachefile=/tmp/zpool.cache mediatank
    root@mediatank:~# zdb -U /tmp/zpool.cache | grep ashift
    ashift: 12


    Shouldn't it be "Units: sectors of 1 * 4096 = 4096 bytes" after the ashift=12 alignment?


    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
    ---------------------------------------------------------------------------------------------------------------------------------------

  • hi guys,


    at the moment everthing works really flawless, but who can answer my question about the sector alignment?


    And I have another last question. ;) Under "Storage - File Systems" is listed one of my zfs filesystems. But I think this is not correct, because my other zfs filesystems also aren't specified there. Have a look at the screenshot. Can you explain the right way to remove it from this section?



    Greetings Hoppel

    Images

    ---------------------------------------------------------------------------------------------------------------
    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
    ---------------------------------------------------------------------------------------------------------------------------------------

  • Can a pool created in FreeNAS 9.10 to OMV? I've read in this same thread many post ago that ZoL didn't had all the flags needed, but that was 1 year ago.

  • If I remember right the new feature flags came up in freenas v9.3.


    But I am not absolutely sure... ;)

    ---------------------------------------------------------------------------------------------------------------
    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
    ---------------------------------------------------------------------------------------------------------------------------------------

  • Even if some of the features aren't supported, that doesn't mean that a pool cannot be imported. It really depends on which features you're using on your pool and which are supported (or how well) on ZoL. Use `zpool get all ${your pool}` to see which features you're using and then you can check the `zpool-features` man page to see which are supported. ZoL's man page in source form is available here https://github.com/zfsonlinux/…man/man5/zpool-features.5. On my system, it lists:


    async_destroy, empty_bpobj, filesystem_limits, lz4_compress, spacemap_histogram, extensible_dataset, bookmarks, enabled_txg, hole_birth, embedded_data, large blocks


    As always, backups are a great idea.

  • Thank you so much.


    Now I'm toying with ZFS in OMV and I'm finding that the GUI is lacking in a few options, but it does the work.


    If you ask about what options I wasn't able to find how to replace a disk in a RAID-Z or to set the autoexpand to yes without using the CLI.
    Also the "Edit Options" menu should give a list of available options to things like the Compression.

  • Also the "Edit Options" menu should give a list of available options to things like the Compression.


    I also missed that "dropdown menu". It is ok, if you know how to use google and the command line. :P

    ---------------------------------------------------------------------------------------------------------------
    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
    ---------------------------------------------------------------------------------------------------------------------------------------

  • Compression works, just have to write type of compression method and not expect a drop down.


    Or am I just lucky?


    Question to plug-in programmer: Possible to add scrub option of sunday night scrub every two/three/four weeks?

  • Compression works, just have to write type of compression method and not expect a drop down. Or am I just lucky?


    Yes, you are right, but a dropdown menu would be nice. ;)

    ---------------------------------------------------------------------------------------------------------------
    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
    ---------------------------------------------------------------------------------------------------------------------------------------

  • Is anybody working on compatibility to omv >3.0.13? Greetings

    ---------------------------------------------------------------------------------------------------------------
    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 ().

  • version 2.1.0 of ZFS shows in plugins list but everytime i try to install i get a status 1 error code. i have tried to purge the package and reinstall, but get the same thing. I have even downloaded .deb package to root and tried to dpkg install this way and get the same errors. Nothing i do works. please help.....

  • Post the error output.

    omv 6.0.5-2 Shaitan | 64 bit | 5.13 proxmox kernel | omvextrasorg 6.0.4 | kvm plugin 6.0
    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!

  • dpkg -i openmediavault-zfs_2.1.0_amd64.deb
    Reading database ... 59545 files and directories currently installed.)
    Preparing to replace openmediavault-zfs 2.1.0 (using openmediavault-zfs_2.1.0_amd64.deb) ...
    Unpacking replacement openmediavault-zfs ...
    Setting up openmediavault-zfs (2.1.0) ...
    update-rc.d: using dependency based boot sequencing
    FATAL: Module zfs not found.
    dpkg: error processing openmediavault-zfs (--install):
    subprocess installed post-installation script returned error exit status 1
    Processing triggers for openmediavault ...
    Restarting engine daemon ...
    Errors were encountered while processing:
    openmediavault-zfs



    i couldn't copy the output from the gui installer, but this is from SSH and it looks the same.

  • This also pops up when i try to hit the check box on update manager: not sure if related


    Failed to execute command 'export LANG=C; apt-get update 2>&1': Ign file: Release.gpg Ign file: Release Ign file: Translation-en Hit http://archive.zfsonlinux.org wheezy Release.gpg Hit http://download.mono-project.com wheezy Release.gpg Hit http://security.debian.org wheezy/updates Release.gpg Hit http://archive.zfsonlinux.org wheezy Release Hit http://download.mono-project.com wheezy Release Hit http://security.debian.org wheezy/updates Release Hit http://ppa.launchpad.net precise Release.gpg Hit http://packages.openmediavault.org stoneburner Release.gpg Ign http://dh2k.omv-extras.org stoneburner-miller Release.gpg Ign http://shell.ninthgate.se squeeze Release.gpg Hit http://packages.omv-extras.org stoneburner-backports Release.gpg Hit http://ppa.launchpad.net precise Release Hit http://ftp.us.debian.org wheezy Release.gpg Hit http://archive.zfsonlinux.org wheezy/main amd64 Packages Hit http://download.mono-project.com wheezy/main amd64 Packages Hit http://security.debian.org wheezy/updates/main Sources Hit http://ftp.us.debian.org wheezy-updates Release.gpg Ign http://dh2k.omv-extras.org stoneburner-miller-testing Release.gpg Get:1 https://dl.bintray.com wheezy Release.gpg [475 B] Hit https://dl.bintray.com wheezy Release.gpg [475 B] Ign http://shell.ninthgate.se squeeze Release Hit http://ftp.us.debian.org wheezy Release Hit http://security.debian.org wheezy/updates/contrib Sources Hit http://ppa.launchpad.net precise/main amd64 Packages Hit http://packages.omv-extras.org stoneburner Release.gpg Hit http://ftp.us.debian.org wheezy-updates Release Hit http://ftp.us.debian.org wheezy/main Sources Hit http://security.debian.org wheezy/updates/non-free Sources Hit http://dh2k.omv-extras.org stoneburner-miller Release Hit http://ftp.debian.org wheezy-backports Release.gpg Hit http://packages.openmediavault.org stoneburner-proposed Release.gpg Hit http://ftp.us.debian.org wheezy/main amd64 Packages Hit http://ppa.launchpad.net precise/main Translation-en Hit http://security.debian.org wheezy/updates/main amd64 Packages Hit http://ftp.us.debian.org wheezy/main Translation-en Hit http://packages.omv-extras.org stoneburner-testing Release.gpg Ign http://download.mono-project.com wheezy/main Translation-en Hit http://ftp.us.debian.org wheezy-updates/main Sources Hit http://security.debian.org wheezy/updates/contrib amd64 Packages Hit http://ftp.debian.org wheezy-backports Release Ign http://archive.zfsonlinux.org wheezy/main Translation-en Hit http://dh2k.omv-extras.org stoneburner-miller-testing Release Hit http://ftp.us.debian.org wheezy-updates/contrib Sources Hit http://security.debian.org wheezy/updates/non-free amd64 Packages Hit http://ftp.us.debian.org wheezy-updates/non-free Sources Hit http://packages.omv-extras.org stoneburner-mono Release.gpg Get:2 https://dl.bintray.com wheezy Release.gpg [475 B] Hit https://dl.bintray.com wheezy Release.gpg [475 B] Hit http://security.debian.org wheezy/updates/contrib Translation-en Hit http://ftp.us.debian.org wheezy-updates/main amd64 Packages/DiffIndex Hit http://ftp.debian.org wheezy-backports/main amd64 Packages/DiffIndex Hit http://ftp.us.debian.org wheezy-updates/contrib amd64 Packages Hit http://ftp.us.debian.org wheezy-updates/non-free amd64 Packages/DiffIndex Hit http://security.debian.org wheezy/updates/main Translation-en Ign http://dh2k.omv-extras.org stoneburner-miller/main amd64 Packages/DiffIndex Hit http://packages.openmediavault.org stoneburner Release Hit http://ftp.us.debian.org wheezy-updates/contrib Translation-en Hit http://packages.omv-extras.org stoneburner-mono-testing Release.gpg Hit http://security.debian.org wheezy/updates/non-free Translation-en Hit http://ftp.us.debian.org wheezy-updates/main Translation-en/DiffIndex Hit http://ftp.us.debian.org wheezy-updates/non-free Translation-en/DiffIndex Hit http://ftp.debian.org wheezy-backports/contrib amd64 Packages/DiffIndex Hit http://packages.omv-extras.org stoneburner-backports Release Get:3 https://dl.bintray.com wheezy Release [1124 B] Hit https://dl.bintray.com wheezy Release [1124 B] Ign http://dh2k.omv-extras.org stoneburner-miller-testing/main amd64 Packages/DiffIndex Hit http://ftp.debian.org wheezy-backports/non-free amd64 Packages/DiffIndex Hit http://packages.openmediavault.org stoneburner-proposed Release Hit http://packages.omv-extras.org stoneburner Release Hit http://ftp.debian.org wheezy-backports/contrib Translation-en/DiffIndex Hit http://packages.omv-extras.org stoneburner-testing Release Hit http://ftp.debian.org wheezy-backports/main Translation-en/DiffIndex Get:4 https://dl.bintray.com wheezy Release [1124 B] Hit https://dl.bintray.com wheezy Release [1124 B] Hit http://packages.omv-extras.org stoneburner-mono Release Hit http://packages.openmediavault.org stoneburner/main amd64 Packages Hit http://ftp.debian.org wheezy-backports/non-free Translation-en/DiffIndex Hit http://packages.omv-extras.org stoneburner-mono-testing Release Hit http://packages.openmediavault.org stoneburner/partner amd64 Packages Hit http://packages.omv-extras.org stoneburner-backports/main amd64 Packages Get:5 https://dl.bintray.com wheezy/main amd64 Packages [828 B] Hit https://dl.bintray.com wheezy/main amd64 Packages [828 B] Err http://shell.ninthgate.se squeeze/main amd64 Packages 404 Not Found Ign http://shell.ninthgate.se squeeze/main Translation-en Hit http://packages.omv-extras.org stoneburner/main amd64 Packages Hit http://packages.omv-extras.org stoneburner-testing/main amd64 Packages Get:6 https://dl.bintray.com wheezy/main amd64 Packages [1234 B] Hit https://dl.bintray.com wheezy/main amd64 Packages [1234 B] Hit http://packages.openmediavault.org stoneburner-proposed/main amd64 Packages Hit http://packages.omv-extras.org stoneburner-mono/main amd64 Packages Hit http://packages.omv-extras.org stoneburner-mono-testing/main amd64 Packages Hit http://dh2k.omv-extras.org stoneburner-miller/main amd64 Packages Ign http://dh2k.omv-extras.org stoneburner-miller/main Translation-en Hit http://dh2k.omv-extras.org stoneburner-miller-testing/main amd64 Packages Ign http://dh2k.omv-extras.org stoneburner-miller-testing/main Translation-en Ign https://dl.bintray.com wheezy/main Translation-en Ign https://dl.bintray.com wheezy/main Translation-en Ign http://packages.omv-extras.org stoneburner-backports/main Translation-en Ign http://packages.omv-extras.org stoneburner/main Translation-en Ign http://packages.openmediavault.org stoneburner/main Translation-en Ign http://packages.omv-extras.org stoneburner-testing/main Translation-en Ign http://packages.openmediavault.org stoneburner/partner Translation-en Ign http://packages.omv-extras.org stoneburner-mono/main Translation-en Ign http://packages.omv-extras.org stoneburner-mono-testing/main Translation-en Ign http://packages.openmediavault.org stoneburner-proposed/main Translation-en W: Failed to fetch http://shell.ninthgate.se/pack…ain/binary-amd64/Packages 404 Not Found E: Some index files failed to download. They have been ignored, or old ones used instead.

  • Hi,


    does anyone know a way to automatically create a zfs filesystem for each users home directory (during user creation) instead of a normal folder?

Participate now!

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