Error creating zpool in fresh install

  • So, I was getting this error before; then I did a fresh install, did updates, install OMV extras, the kernel (6) and zfs. Create the first and only pool:

    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; ls -la /dev/disk/by-id | grep 'sdb$'' with exit code '1':


    OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; ls -la /dev/disk/by-id | grep 'sdb$'' with exit code '1': in /usr/share/php/openmediavault/system/process.inc:220

    Stack trace:

    #0 /usr/share/omvzfs/Utils.php(441): OMV\System\Process->execute(Array, 1)

    #1 /usr/share/omvzfs/Utils.php(133): OMVModuleZFSUtil::exec('ls -la /dev/dis...', Array, 1)

    #2 /usr/share/openmediavault/engined/rpc/zfs.inc(179): OMVModuleZFSUtil::getDiskId('/dev/sdb')

    #3 [internal function]: OMVRpcServiceZFS->addPool(Array, Array)

    #4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)

    #5 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('addPool', Array, Array)

    #6 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Zfs', 'addPool', Array, Array, 1)

    #7 {main}


    How do I fix this?

    • Official Post

    the kernel (6)

    Does this mean the proxmox kernel?

    I am getting failures EVERYWHEWRE, on a FRESH install. Is the order I have been doing things in wrong?

    I don't think so. Did you ctrl-shift-R? What are the failures?

    omv 6.9.0-1 Shaitan | 64 bit | 6.2 proxmox kernel

    plugins :: omvextrasorg 6.3.1 | kvm 6.2.16 | compose 6.10.3 | cputemp 6.1.3 | mergerfs 6.3.7


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


    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!

  • Everywhere might be exadurated, but its really frustrating when 3, THREE fresh installs do the same thing!

    So, I was unable to install compose...

    So on this install, I installed, did NOT do updates, install kernel (Yes, proxmox), rebooted, installed ZFS. Create pool. FAILURE!

    And yes, I did search. Tells me to delete some duplicate entries in a file. Find the file, duplicate entries do not exist.

    In case it matters, thi is running in a VM for testing.


    MORE-

    Deleted all disks, rebooted, shut down. Added new disks with a different size, turned on. Same error.

    Wiped all drives (quick)

    Same error

    • Official Post

    First, stop reinstalling. That is not the problem. It is fine to update the system and reboot.

    Second, you need to give me more info. It is SOO hard to help when I literally know nothing other than the error message.

    Third, yes, it does matter that it is a VM. I need to know how the VM is setup. To start, VM on what?

    Finally, I never asked you to search.

    omv 6.9.0-1 Shaitan | 64 bit | 6.2 proxmox kernel

    plugins :: omvextrasorg 6.3.1 | kvm 6.2.16 | compose 6.10.3 | cputemp 6.1.3 | mergerfs 6.3.7


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


    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!

  • So, I don't know what other information to give you. I have you every step I took, in the order of taking them. The error message, and a screenshot of the error. I have tried to set up zraid1, and "basic". Both provided the same error. If you require additional information, such as an entry from the log file, I am happy to provide it, but not knowing what you need, I can't provide it.

    It is set up on Esxi 6.7. I have created 6 or so virtual hard disks, thin provisioned (As this is just for testing, speed doesn't matter) 50 GB in size.
    It has a 16 GB disk for the main install, 1 CPU, and 8 GB of RAM.


    So I have noticed, I am getting the same message when the proper kernel isn't installed. (I have already tried to reinstall, to do things in a different order. I will stop re-installing from this point on)

    The Proxmox kernel does appear on the Grub screen.

    I also realized I did not post a screenshot of the error I was getting in OMV, so it is attached as well.


    MORE--

    I have tried zpool list from a console, and it told me no pools were available, so that means, as far as I know, ZFS seems to be on and working.

    • Official Post

    So, I don't know what other information to give you

    well just try to remember that I can't see anything you are doing nor know anything about your setup. Knowing it is ESXi makes a difference. Your steps tell me the order but are very high level.


    What is the output of (please cut&paste instead of screenshots):

    dpkg -l | grep -E "openme|zfs"

    lsmod | grep zfs

    omv 6.9.0-1 Shaitan | 64 bit | 6.2 proxmox kernel

    plugins :: omvextrasorg 6.3.1 | kvm 6.2.16 | compose 6.10.3 | cputemp 6.1.3 | mergerfs 6.3.7


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


    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!

  • root@testomv:~# dpkg -l | grep -E "openme|zfs"

    ii libzfs4linux 2.1.11-1~bpo11+1 amd64 OpenZFS filesystem library for Linux - general support

    ii openmediavault 6.4.3-1 all openmediavault - The open network attached storage solution

    ii openmediavault-kernel 6.4.8 all kernel package

    ii openmediavault-keyring 1.0.2-2 all GnuPG archive keys of the openmediavault archive

    ii openmediavault-omvextrasorg 6.3.1 all OMV-Extras.org Package Repositories for OpenMediaVault

    ii openmediavault-zfs 6.0.12 amd64 OpenMediaVault plugin for ZFS

    ii zfs-dkms 2.1.11-1~bpo11+1 all OpenZFS filesystem kernel modules for Linux

    ii zfs-zed 2.1.11-1~bpo11+1 amd64 OpenZFS Event Daemon

    ii zfsutils-linux 2.1.11-1~bpo11+1 amd64 command-line tools to manage OpenZFS filesystems


    root@testomv:~# lsmod | grep zfs

    zfs 4288512 6

    zunicode 352256 1 zfs

    zzstd 684032 1 zfs

    zlua 204800 1 zfs

    zavl 24576 1 zfs

    icp 348160 1 zfs

    zcommon 118784 2 zfs,icp

    znvpair 131072 2 zfs,zcommon

    spl 126976 6 zfs,icp,zzstd,znvpair,zcommon,zavl


    So I will try to give you my steps in a bit of a lower level.

    I installed OMV by uploading the ISO to a folder on ESXI, and mounting the image in the created VM. Booted from it. No default settings were changed except the name, set to omvtest

    After it was done, it automatically unmounted the ISO, and asked me to reboot. I rebooted.

    I then logged in with the default username and password. This was done in the GIU

    I then changed the password, and the logout time to 1 day. This was done in the GUI

    I then did an update, but doing to the GUI, and hitting the little down arrow icon. I waited.

    The IP address changed. I logged into the new ip address.

    I loged in with SSH, and executed the following command: from root:

    wget -O - https://github.com/OpenMediaVa…ckages/raw/master/install | bash

    after this occurred, the GUI told me there were configuations changes. I click apply.

    I then used the GUI to download the Kernel addon

    I then used the GUI to download the Proxmox kernel (v6.whatever it was, only one v6 available)

    I was told to reboot the system to use the new kernel.

    I used the GUI to reboot the system

    I logged into the GUI, and used the GUI to install ZFS.

    I then used the GUI to create a pool.

    I received an error message at the bottom of the screen in a red box.


    I hope that clarifies what I did. I think that's about as simple as I get get it wouthout a screen recording.

    • Official Post

    I hope that clarifies what I did. I think that's about as simple as I get get it wouthout a screen recording.

    It does. I don't have time to watch screen recordings.


    Everything looks ok. Are you using paravirtual for scsi controller on the VM? What is the output of:


    ls -al /dev/

    ls -al /dev/disk/by-id | grep sdc

    sudo wipefs /dev/sdc # no, it won't wipe anything

    omv 6.9.0-1 Shaitan | 64 bit | 6.2 proxmox kernel

    plugins :: omvextrasorg 6.3.1 | kvm 6.2.16 | compose 6.10.3 | cputemp 6.1.3 | mergerfs 6.3.7


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


    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!

    • Official Post

    And I should know this since I wrote the automation to enable it at work... You need to enable disk UUIDs. So, add disk.EnableUUID to the VM's advanced properties while shutoff and then start again. This won't happen on kvm or physical devices.

    omv 6.9.0-1 Shaitan | 64 bit | 6.2 proxmox kernel

    plugins :: omvextrasorg 6.3.1 | kvm 6.2.16 | compose 6.10.3 | cputemp 6.1.3 | mergerfs 6.3.7


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


    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!

    • Official Post

    Or change the device alias to by path or none when creating the pool.

    omv 6.9.0-1 Shaitan | 64 bit | 6.2 proxmox kernel

    plugins :: omvextrasorg 6.3.1 | kvm 6.2.16 | compose 6.10.3 | cputemp 6.1.3 | mergerfs 6.3.7


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


    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!

  • Well, that was massively frustrating, but it looks like its solved.

    Don't beat yourself up. We all forget things. I do all the time. Works now, thats what matters.

    Now to see if that will resolve all my problems with compose, and manually installing portainer.. If not, I will be back for more help (new thread of course)

    • Official Post

    Don't beat yourself up. We all forget things. I do all the time. Works now, thats what matters.

    I don't use esxi at home anymore and don't use anything like zfs at work.

    Now to see if that will resolve all my problems with compose, and manually installing portainer..

    compose and portainer are not related to this in the least. No idea what problems you had there but that is strange if the guide was followed.

    omv 6.9.0-1 Shaitan | 64 bit | 6.2 proxmox kernel

    plugins :: omvextrasorg 6.3.1 | kvm 6.2.16 | compose 6.10.3 | cputemp 6.1.3 | mergerfs 6.3.7


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


    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!

Participate now!

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