ZFS with Proxmox and OMV

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • ZFS with Proxmox and OMV

      Hi,

      I've managed to get OMV (usul) and Proxmox (6.) running side by side using this as a guide:




      I have 4 WD Red 4TB drives in the PC, and when I installed proxmox I selected RAID10 as the installation option. This all worked fine, and it created the rpool (zpool status below). I cannot get OMV to recognize the existing pool (rpool). Is there a way I can configure this by hand? The GUI doesn't seem to want anything for ZFS other than empty disks. I'd really like to manage the datasets and snapshots on ZFS in OMV.

      Of note: I was not able to install openmediavault-omvextrasorg package. I did edit openmediaault-zfs_5.0.1_amd64.deb to not list this as a dependency. It didn't seem necessary in this case (but I could be wrong).

      Source Code

      1. # zpool status
      2. pool: rpool
      3. state: ONLINE
      4. scan: none requested
      5. config:
      6. NAME STATE READ WRITE CKSUM
      7. rpool ONLINE 0 0 0
      8. mirror-0 ONLINE 0 0 0
      9. ata-WDC_WD40EFRX-68N32N0_WD-WCC7K6NK187S-part3 ONLINE 0 0 0
      10. ata-WDC_WD40EFRX-68N32N0_WD-WCC7K2PLE05K-part3 ONLINE 0 0 0
      11. mirror-1 ONLINE 0 0 0
      12. sdc ONLINE 0 0 0
      13. sdd ONLINE 0 0 0
      Display All
    • I got confused. The zpool is a storage cfg in proxmox right? If so all you need is to create a volume in the guest assign size and that’s all. In omv you will format that volume in ext4 or
      Xfs. If you want to pass the whole storage and handle zfs in omv you need to pass the disks as hardware to the guests. You will loose smart monitoring in omv
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • soapee01 wrote:

      running side by side using this as a guide:


      weekly-geekly.github.io/articles/328048/index.html
      Terrible idea especially since editing and building the openmediavault package will just break as soon as it updates. There are quite a few conflicting settings as well.

      soapee01 wrote:

      Of note: I was not able to install openmediavault-omvextrasorg package. I did edit openmediaault-zfs_5.0.1_amd64.deb to not list this as a dependency. It didn't seem necessary in this case (but I could be wrong).
      Why would we put omv-extras in as a dependency if it didn't need it?? omv-extras doesn't do a lot for the plugin but it does pin the proper packages from backports. Otherwise, you get an old version of zfs. It would be better to just fix the problem with omv-extras not installing. What error did you get? How did you install it? Command line is better for most people.
      omv 5.0.10 usul | 64 bit | 5.0 proxmox kernel | omvextrasorg 5.1.1
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • New

      FYI, here are the errors when Installing openmediavault omvextrasorg.

      #dpkg -i openmediavault-omvextrasorg_latest_all5.deb

      (Reading database ... 82213 files and directories currently installed.)
      Preparing to unpack openmediavault-omvextrasorg_latest_all5.deb ...
      Unpacking openmediavault-omvextrasorg (5.1.1) ...
      dpkg: error processing archive openmediavault-omvextrasorg_latest_all5.deb (--install):
      trying to overwrite '/etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg', which is also in package proxmox-ve 6.0-2
      Processing triggers for openmediavault (5.0.11) ...
      Restarting engine daemon ...
      Errors were encountered while processing:
      openmediavault-omvextrasorg_latest_all5.deb


      I rebuilt the pkg moving the problem gpg file (since it's already on my system from proxmox). The right way would be to have the script check for the file and skip it if it's there, but I wanted to see if it'd install.

      cd /usr/src
      wget github.com/OpenMediaVault-Plug…rasorg/archive/master.zip
      unzip master.zip
      cd openmediavault-omvextrasorg-master/etc/apt/trusted.gpg.d/
      mv proxmox-ve-release-6.x.gpg proxmox-ve-release-6.x.gpg.bak
      cd /usr/src/openmediavault-omvextrasorg-master
      dpkg-checkbuilddeps
      dpkg-buildpackage -us -uc
      cd /usr/src
      dpkg -i openmediavault-omvextrasorg_5.1.1_all.deb

      log into gui
      go to system -> OMV-Extras
      Kernel Tab
      Proxmox -> Install Proxmox Kernel
      Click Start on the window.
      installed pve-headers-5.0.21-2.pve



      I still can't seem to add anything to the existing ZFS pool. Is there a way this could be manually added to the database?

      As an additional test, I created a proxmox guest OS with 5 drives. Installed proxmox to the first, and replicated everything. Decided to try OMV being in control of the pool instead of proxmox. It appears that OMV cannot handle raid10. If this isn't true, can anyone comment on how to make that happen?

      Ideally I'd just like OMV to see the pool (rpool from proxmox), and then create whatever datasets I need, and let proxmox handle the zfs volumes for virtual machines. Anyone have any pointers?

      Thanks!
    • New

      soapee01 wrote:

      The right way would be to have the script check for the file and skip it if it's there, but I wanted to see if it'd install.
      Nope. The right way is to use a supported install. The gpg files in the package are installed by the package. There is no logic to determine if it is already there from another package. And building your own package will just break as soon as a new omv-extras package is released.

      soapee01 wrote:

      t appears that OMV cannot handle raid10
      I have used raid 10 arrays on OMV since the beginning (OMV 0.2) and it still supports it in OMV 5.x. Hard to say what is wrong with your system when it is so hacked up.
      omv 5.0.10 usul | 64 bit | 5.0 proxmox kernel | omvextrasorg 5.1.1
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Users Online 1

      1 Guest