Btrfs/ZFS support

  • file openmediavault-zfs is no longer available in the testing2 repository, and zfs option is also not available in the omv-extras tab ( omvextrasorg 1.6 )

  • I updated it but put it in the testing folder here

    If zfs doesn't show up, you must not be using a 64 bit system.


    @nicjo814, omv-extras has changed a lot :) No more secondary tab. Check it out.

    omv 5.6.5 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.1
    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!

  • zfs only works on amd64/intel64 architecture.

    omv 5.6.5 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.1
    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!

  • Created this post as howto for people stuck on omvextras 1.4 or dont see a zfs plugin (like me) ...



    STARTING SITUATION:


    1.5 Kralizec, Linux 3.16.0.bpo.2-amd64


    OMV extras:
    [X] enable zfs
    [X] omvextras 1.6 plugin installed


    ... on omvextras.org page still version 1.4


    ... no zfs


    SOLUTION:


    uninstall omvextras plugin
    load omvextras like described here: http://omv-extras.org/simple/i…install-omv-extras-plugin
    enable omvextras


    et voila ... omvextras now 1.6


    ... still no zfs plugin (disabled / enabled the repo)


    update manager .. start update (some updates, including omv 1.6)


    ... still no zfs


    Download zfs.deb from link rycon posted some posts above: http://omv-extras.org/testing/…ult-zfs_0.6.3.4_amd64.deb


    Upload downloaded file to plugins


    et voila ... zfs plugin is in the list


    enable zfs plugin


    Installation failed / Error:


    Failed to load ZFS module stack.
    Load the module manually by running 'insmod /zfs.ko' as root.


    Error #0:
    exception 'OMVModuleZFSException' with message 'Failed to load ZFS module stack.
    Load the module manually by running 'insmod <location>/zfs.ko' as root.' in /usr/share/omvzfs/Utils.php:538
    Stack trace:
    #0 /usr/share/omvzfs/OMVStorageZvol.php(459): OMVModuleZFSUtil::exec('zfs list -H -o ...', Array, 1)
    #1 /usr/share/php/openmediavault/system.inc(964): OMVFilesystemBackendZFS->enumerate()
    #2 /usr/share/openmediavault/engined/rpc/filesystemmgmt.inc(75): OMVFilesystems::enumerate()
    #3 [internal function]: OMVRpcServiceFileSystemMgmt->enumerateFilesystems(Array, Array)
    #4 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
    #5 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('enumerateFilesy...', Array, Array)
    #6 /usr/sbin/omv-engined(500): OMVRpc::exec('FileSystemMgmt', 'enumerateFilesy...', Array, Array, 1)
    #7 {main}



    tried the uninstall zfs, reinstall backports trick ... backports already on latest version


    rebooted


    zfs plugin is here


    just for peace of mind:


    uninstalled zfs plugin, reinstalled again ... this time without errors



    your mileage will vary, im sure there are some shortcuts but maybe this info will help some

    Tom


    ----


    HP N54L, 6GB, 5disc Raid5, SSD Boot with OMV Stone Burner
    HP N54L, 16GB, 4disc Raid5, SSD Boot with OMV Stone Burner

    Edited 13 times, last by tom_tav ().

  • Why would someone be stuck on omv-extras 1.4?


    zfs isn't in the repo because it hasn't been declared ready. That is why it isn't in the plugin list. The module happens usually because the proper kernel headers were not installed when it tried to compile the kernel module. I added the kernel headers as a dependency of the plugin.

    omv 5.6.5 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.1
    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!

  • why did i got stuck on 1.4???


    its a plain system, no custom mods, started with a kralizec beta and updated since....

    Tom


    ----


    HP N54L, 6GB, 5disc Raid5, SSD Boot with OMV Stone Burner
    HP N54L, 16GB, 4disc Raid5, SSD Boot with OMV Stone Burner

  • Created this post as howto for people stuck on omvextras 1.4


    You said this ^^. So, I was curious how someone would be stuck on 1.4.

    omv 5.6.5 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.1
    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!

  • I'll leave this in case someone for comparing features in zfs in different ports, this features might produce a fail to import pools from other systems.


    http://open-zfs.org/wiki/Features#Feature_Flags


    You are warned...check your flags/features before exporting from Freenas (especially 9.2, a little friend called com.delphix:hole_birth says hello!!)


    I see the differences ... but im unsure how to proceed. Convert? Source is a f...nas. Maybe you can push me in the right direction


    EDIT: seems there is no downgrade path for zfs ... Seems better to bite the bullet and just copy over

    Tom


    ----


    HP N54L, 6GB, 5disc Raid5, SSD Boot with OMV Stone Burner
    HP N54L, 16GB, 4disc Raid5, SSD Boot with OMV Stone Burner

    Edited once, last by tom_tav ().

  • 9.2.1.17 still on the bsd 9.2


    So this should apply:


    FreeBSD 9.2-RELEASE is the first FreeBSD version to use the new "feature flags" based implementation thus Pool version 5000


    But if im not mistaken ZFS on Linux should also be there:


    The current zpool version supported by ZFS on Linux is 5000


    If both is true it should work and i was mistaken by your original post regarding the feature comparsion (ja you should always ready carefully, i know) ... but u mentioned fn 9.2 so im puzzled now

    Tom


    ----


    HP N54L, 6GB, 5disc Raid5, SSD Boot with OMV Stone Burner
    HP N54L, 16GB, 4disc Raid5, SSD Boot with OMV Stone Burner

  • Didnt find a way to check for the enabled features on the pool. The system supports them, so i assume im out of luck:


    The following features are supported:


    FEAT DESCRIPTION
    -------------------------------------------------------------
    async_destroy (read-only compatible)
    Destroy filesystems asynchronously.
    empty_bpobj (read-only compatible)
    Snapshots use less space.
    lz4_compress
    LZ4 compression algorithm support.
    multi_vdev_crash_dump
    Crash dumps to multiple vdev pools.
    spacemap_histogram (read-only compatible)
    Spacemaps maintain space histograms.
    enabled_txg (read-only compatible)
    Record txg at which a feature is enabled
    hole_birth
    Retain hole birth txg for more precise zfs send
    extensible_dataset
    Enhanced dataset functionality, used by other features.
    bookmarks (read-only compatible)
    "zfs bookmark" command



    and from the creation (2014-06 ... also 9.2 already):


    zpool create -o cachefile=/data/zfs/zpool.cache -o failmode=continue -o autoexpand=on -O compression=lz4 -O aclmode=passthrough -O aclinherit=passthrough -f -m /INTERNAL -o altroot=/mnt INTERNAL raidz /dev/gptid/ed8b4d31-ff21-11e3-8c9a-38eaa7a6cf86 /dev/gptid/edee3942-ff21-11e3-8c9a-38eaa7a6cf86 /dev/gptid/ee4fdfd0-ff21-11e3-8c9a-38eaa7a6cf86 /dev/gptid/eeb05c07-ff21-11e3-8c9a-38eaa7a6cf86

    Tom


    ----


    HP N54L, 6GB, 5disc Raid5, SSD Boot with OMV Stone Burner
    HP N54L, 16GB, 4disc Raid5, SSD Boot with OMV Stone Burner

  • FreeNAS implementation of ZFS have actually know Featured Flags implementations that are not prensent on other ZFS implementation.


    all are v5000 but pools created on latest FreeNAS are not possible to mount on BSD 9.3 and on Nas4Free for example, and can't be mount en linux as i can see for your post.


    The feature that is not present on other V5000 implementations are:
    spacemap_histogram (read-only compatible)
    Spacemaps maintain space histograms.


    Please see http://forums.nas4free.org/viewtopic.php?f=56&t=6007&p=32891

  • I finally can install ZFS pluging on my test machine and cant test it from next days.


Participate now!

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