OMV 7 ZFS

  • I've encountered challenges with ZFS in OMV7, specifically with formatting disks using the web interface and recognition of ZFS partitions. It fails using the webgui however I can formatby cli along with a dataset creation but I'm unable to get it to be recognized by omv. They are labeled 'missing' under file systems. The issue is present with a fresh install of OMV7 and also with an upgrade from OMV6 to 7. It works fine in OMV6 but upon upgrade any ZFS filesystems show up as missing. When I click anything related to adding/creating a toast RPC 500 message appears.


    It appears to be an issue with php according to the system logs.

    2023-12-23T03:58:33-0500  omv-engined[178797]: PHP Fatal error: Uncaught ValueError: bccomp(): Argument #1 ($num1) is not well-formed in /usr/share/php/openmediavault/functions.inc:709

    2023-12-23T03:58:33-0500  omv-engined[178797]: Stack trace:

    2023-12-23T03:58:33-0500  omv-engined[178797]: #0 /usr/share/php/openmediavault/functions.inc(709): bccomp()

    2023-12-23T03:58:33-0500  omv-engined[178797]: #1 /usr/share/php/openmediavault/system/filesystem/filesystemzfs.inc(358): binary_format()

    2023-12-23T03:58:33-0500  omv-engined[178797]: #2 /usr/share/openmediavault/engined/rpc/sharemgmt.inc(112): OMV\System\Filesystem\FilesystemZfs->getDescription()

    2023-12-23T03:58:33-0500  omv-engined[178797]: #3 [internal function]: Engined\Rpc\ShareMgmt->getCandidates()

    2023-12-23T03:58:33-0500  omv-engined[178797]: #4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(122): call_user_func_array()

    2023-12-23T03:58:33-0500 omv-engined[178797]: #5 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod()

    2023-12-23T03:58:33-0500 omv-engined[178797]: #6 /usr/sbin/omv-engined(535): OMV\Rpc\Rpc::call()

    2023-12-23T03:58:33-0500 omv-engined[178797]: #7 {main}

    My output of php versions is as follows.

  • chente

    Hat das Thema freigeschaltet.
    • Offizieller Beitrag

    I will look into this. It is probably something caused by the php7.4 (omv 6.x) to php 8.2 (omv 7.x) change.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    So, the zfs plugin uses core OMV raid functions. Not only did these get separated out to a separate plugin, they changed names. I will need to add these to the zfs plugin.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    7.0.2 is in the repo now.

  • Oh wow that was a quick turn around. I tried with a freshly install and formatted drives. The ZFS plugin appears to be working fine now but the filesystem/shared folder tab still produces a RPC 500 error along with the missing label.

    • Offizieller Beitrag

    I'm not getting any errors on my dev system but it isn't very complex. I will need you to put the system in debug mode to get a better error message.


    sudo monit stop omv-engined

    sudo omv-engined -df


    then nagivate to the filesystems tab.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    For some reason, it is getting empty lists back from the zfs backend. Can you post the output of:

    sudo zfs list

    df -h

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Yeah I was noticing that. It is recognizing disks and allowing modifications from the ZFS section at least now.

    • Offizieller Beitrag

    I was able to verify that the size of your array is not causing the problem. Can you get the debug output when viewing the Filesystems tab? And the output of zfs list -p -H -r as well.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • The debug output looks the same as the previous. No issues when following the same creation steps in omv6. Should I use a proxmox kernel?

    • Offizieller Beitrag

    No issues when following the same creation steps in omv6.

    All I can think is that it is a php issue. If I could recreate it, that would be really helpful.


    Should I use a proxmox kernel?

    It shouldn't make a difference but it also can't hurt to try. I use the proxmox kernel on all of my amd64 systems even without zfs.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    If you could add the following line to /usr/share/php/openmediavault/system/filesystem/filesystemzfs.inc and then post the debug output going to the filesystems tab, that would be helpful.


    print_r($statistics);


    after line 352:


    Code
    public function getDescription()
    {
        $statistics = $this->getStatistics();

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Yeah I assume you're having difficulties recreating it on your end.

    • Offizieller Beitrag

    [size] => 1.0654267956265E+14 [used] => 2831155.2 [available] => 1.0654267673149E+14

    Here is the problem. The size of your array is causing the problem since php is changing the sizes of the array to exponential. Let me see where this needs to be changed to handle this.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    Can you replace line 708 in /usr/share/php/openmediavault/functions.inc?


    From this:

    $number = strval($number);


    To:

    $number = number_format(strval($number), 0, '', '');


    You will have to restart omv-engined or put in debug mode again.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    Was there a breaking change in php v8?

    Nope. The size of your array found a bug. I will send Volker a pull request.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!