Errors (re)createing zfs pool on OMV Version 7.5.0-1

  • I attempt to recreate a ZFS pool

    1. I formatted all the SSD in the old one
    2. removed and reinstalled ZFS plugin
    3. Attempt to create a pool results in:

    (btw I cannot select my OMV version in the forum thread but it is what is listed on the System Information page)


    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LC_ALL=C.UTF-8; export LANGUAGE=; ls -la /dev/disk/by-id | grep 'sda$'' 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 LC_ALL=C.UTF-8; export LANGUAGE=; ls -la /dev/disk/by-id | grep 'sda$'' with exit code '1': in /usr/share/php/openmediavault/system/process.inc:247

    Stack trace:

    #0 /usr/share/omvzfs/Utils.php(450): OMV\System\Process->execute()

    #1 /usr/share/omvzfs/Utils.php(133): OMVModuleZFSUtil::exec()

    #2 /usr/share/openmediavault/engined/rpc/zfs.inc(204): OMVModuleZFSUtil::getDiskId()

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

    #4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array()

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

    #6 /usr/sbin/omv-engined(544): OMV\Rpc\Rpc::call()

    #7 {main}

  • I see one problem here:

    and

    Code
    $ ls -l /dev/disk/by-id
    total 0
    lrwxrwxrwx 1 root root  9 Jan 18 14:24 ata-SM2259AC-10-00821001__03_5526888-20080228 -> ../../sdc
    lrwxrwxrwx 1 root root 13 Jan 18 13:57 mmc-SC32G_0xc9710f77 -> ../../mmcblk0
    lrwxrwxrwx 1 root root 15 Jan 18 13:57 mmc-SC32G_0xc9710f77-part1 -> ../../mmcblk0p1
    lrwxrwxrwx 1 root root 15 Jan 18 13:57 mmc-SC32G_0xc9710f77-part2 -> ../../mmcblk0p2



    They are listed in /dev however:

    Code
    $ ls -l /dev/sd*
    brw-rw---- 1 root disk 8,  0 Jan 18 13:57 /dev/sda
    brw-rw---- 1 root disk 8, 16 Jan 18 13:57 /dev/sdb
    brw-rw---- 1 root disk 8, 32 Jan 18 14:29 /dev/sdc
    brw-rw---- 1 root disk 8, 48 Jan 18 13:57 /dev/sdd
  • I now see this has nothing to do with ZFS. If I shred /dev/sdd using the UI it starts shredding /dev/sdc.

    This seem quite a harmful glitch.


    I updated my question to reflect these new insights but wonder why raspbian not completely populates the /dev/disk folder even after a reboot.


    Doing a manual shred of all the remaining ssd

    • Official Post

    I had a pool installed did not do anything to the plugins removed the pool and wanted to create it again.

    I assume you have an RPi5 with a pcie to sata hat? Otherwise, usb is not support for raid including zfs. You do need to wipe the disks in order to create a new pool.


    I now see this has nothing to do with ZFS. If I shred /dev/sdd using the UI it starts shredding /dev/sdc.

    This seem quite a harmful glitch.

    How did you "shred" it? If if was from the Storage -> Disks tab, I would like to see a screenshot with the Device Symlinks column enabled.

    omv 7.7.10-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    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 shred it with the shred command. or with UI using the eraser icon. Like I said this was a hardware problem. After setup I shutdown and moved the NAS to its final location dislodging some connection.



    Code
    pool                                       alloc   free   read  write   read  write
    -----------------------------------------  -----  -----  -----  -----  -----  -----
    pool0                                       741G  13.8T      0      0      0      0
      raidz1-0                                  741G  13.8T      0      0      0      0
        ata-WD_Red_SA500_2.5_4TB_2446BMD00094      -      -      0      0      0      0
        ata-WD_Red_SA500_2.5_4TB_2446BMD00135      -      -      0      0      0      0
        ata-WD_Red_SA500_2.5_4TB_2446BMD00017      -      -      0      0      0      0
        ata-WD_Red_SA500_2.5_4TB_2446BMD00538      -      -      0      0      0      0
    -----------------------------------------  -----  -----  -----  -----  -----  -----
                                                 capacity     operations     bandwidth

Participate now!

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