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

  • 2016.11.09 actualization: please read this post first before to install: Error trying to install ZFS-Plugin


    2018.09.08 actualization: Good video of HOW to Install from @Technodadlife.



    Well This post is intendent to show how to start to work with ZFS & ZFS Plugin in OMV, Is usefull for beginers & Users that come from BSD ( FreeNAs & Nas4Free) World to understand certain diferrences between ZFS and ZFS on Linux.


    Some usefull links:


    Issues in ZFS-Plugins: https://github.com/OpenMediaVa…openmediavault-zfs/issues
    Name conventions when creating pools: http://zfsonlinux.org/faq.html…uldIUseWhenCreatingMyPool
    ZFS-HandBook: http://www.allanjude.com/zfs_handbook/zfs-zpool.html
    Info About Performance: http://open-zfs.org/wiki/Performance_tuning
    Article about ZED: http://louwrentius.com/category/zfs.html


    Requeriments:


    To Use ZFS you need at least OMV 1.12 & OMV_Extras 1.10


    If you have an updated OMV, go to step 2


    1 -
    If start from actual OMV.ISO: http://www.openmediavault.org/download.html


    your first screen is:


    So you nee to update to letas version and install all updates:

    Finally you can have OMV 1.12 or up:

    Now you nee to install OMV-Extras: OMV-Extras.org Plugin


    once done you have OMV-Extras 1.10 or up




    2 -


    Now you are ready to instal ZFS-Plugin.


    Select ZFS Testing Repo:


    Update system:


    Install ZFS (0.6.3.6 when writting this guide):

  • If all works fine & expected, you must see your ZFS icon:


    Now you have 2 possible paths,


    1- Import your existing Pool ( use option in ZFS menu) ; remember that latest FreeNAS pools (9.3 and up) can't be imported due a Feature Flag not still implemented on ZFS for Linux (9.2 and down can be imported without problem), So please revise what feature Flags have your pool beforo to try to import on OMV
    2 - Create a new Pool.


    If you want to create a pool your disk must be clean, to be sure use wipe from menu:



    Now you are ready to create pools, some examples:





    Now a more complicated pool: a 4x3TB vdev + other 4+3TB vdev in one big pool.


    You need to create in 2 steps


    First you need to create a pool using only 4 disk (first vdev), in my case I select to use ashift=12 = 4K disk


    Once created, use Grow icon to add 4 more disk in raidZ1



    This second vdev is added to first vdev so finally you have the pool taht you want , and in future, you can grow RPoll in the same way


    Now time to create some filesystems to share it:

  • Import is really easy, only go to button import and import your previsoly exported/created pool.


    DISCLAIMER: Actual ZFS version on linux DO not import latest FreeNAS pool because FreeNAS use some featured Flags NOT supported by actual ZFS version of ZFSonLinux.




    I test a scrub too, previously I corrupt some files:






    A lot of CPU & RAM is used when scrub is initiated:




  • Some captures of file transfer (Videos , avi, and mkv):




  • documentation, ZFS Evil tunning guide: http://www.solarisinternals.co…php/ZFS_Evil_Tuning_Guide


    Some tunning that you can use in function of your RAM


    Please read: http://wiki.gentoo.org/wiki/ZFS
    http://arstechnica.com/informa…-gen-filesystem-on-linux/


    in my case I use:

    Code
    echo "options zfs zfs_arc_max=6312427520" >> /etc/modprobe.d/zfs.conf
    echo "options zfs zfs_arc_min=6312427520" >> /etc/modprobe.d/zfs.conf


    and then reboot NAS so next time use new zfs_arc_max & min values



    other good option is for 4GB:


    Code
    echo "options zfs zfs_arc_max=3221225472" >> /etc/modprobe.d/zfs.conf
    echo "options zfs zfs_arc_min=3221225472" >> /etc/modprobe.d/zfs.conf



    I use values that experience recommended on BSD= Nas4Free if you search for a good tunning tool called ZFSKerntune and analize, you can see that only fixes zfs_arc_max and zfs_arc_min to desirables values.



    Matrix of desirables values is:


  • I followed your guide, i have most recent versions installed: omv 1.12 and omv-extras 1.11


    When i try to setup omv-extras my settings windows looks very different than yours:



    I can't find ZFS plugin anywhere in the plugin list, too. i installed definietly omv-extras 1.11

  • ARM?


    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.

  • I have lots of arm boards and used to have a bananapi. I assume you have it running with fuse? I would hate to see dedup try and run on an arm board.


    The repo we get the zfs debian packages from is amd64 only. So, that will be the only supported arch for the plugin. The plugin code is here if you want to experiment with it on arm.

    omv 5.5.2 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.3
    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!

  • This is interesting ;)


    On a reboot my ZFS pool isn't mounted. The pool isn't listed in the ZFS plugin panel... I try to reimport and I get:



    Hrm... 'zpool status Media' gives me:



    It appears that this is because the drives were originally: sdd, sde, and sdf. They now appear to have been reassigned sdb, sdc, and and sdd.


    This could be a failing on my part, I expect I should have selected 'By ID' not 'By Path' but the "Specifies which device alias should be used. Don't change unless needed." made me leave it alone... surely it should always be by ID and this should be the default? Anyway, fixed with:


    Code
    zpool export Media


    then imported the pool again. :)


    By importing the pool again, it appears that the drives have now been imported by ID:



    Thus preventing this from occuring again.


    Is it possible to have the default option for 'Device alias' changed to 'By ID'? - especially if the user is warned not to touch it.

  • DISCLAIMER: Actual ZFS version on linux DO not import latest FreeNAS pool because FreeNAS use some featured Flags NOT supported by actual ZFS version of ZFSonLinux.


    Is there anyway to solve this problem?

  • really , both are version 5000 to be more complex, only diference between latest FreeNAS pools and the rest is the use of feature flags:

    Quote

    Actual ZFS version on linux DO not import latest FreeNAS pool because FreeNAS use some featured Flags NOT supported by actual ZFS version of ZFSonLinux.

  • Hi,


    Is ZFS considered stable or still in development on omv? Also, does it require a cron job for a monthly scrub or is that part of the plugin?


    thanks


    OMV 1.14 - MSI ITX - 8GB RAM - 16GB SSD Boot - 3x2tb in RAID 5

  • In my opinion, zfs is stable but I'm not using it for production. The plugin may also be missing features. The plugin does not add a cron job for scrubbing.

    omv 5.5.2 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.3
    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!

Participate now!

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